Adding a polygon to mesh

Adding a polygon to mesh

Anonymous
Not applicable
723 Views
5 Replies
Message 1 of 6

Adding a polygon to mesh

Anonymous
Not applicable

I'm trying to add a polygon to a mesh, where only one edge of the polygon is exist in the mesh (only 2 points of the polygon are already exist in the mesh). I tried to use the "addPolygon" function, but it didn't worked because the mesh doesn't contain all the points of the polygon.
Does anyone know how to add such a polygon to the mesh?

0 Likes
724 Views
5 Replies
Replies (5)
Message 2 of 6

J450NP13
Advisor
Advisor

You could just create the polygon with a plane and then combine it and merge the vertices you need to be merged.

 

🤷‍♂️

0 Likes
Message 3 of 6

Anonymous
Not applicable

but how can I combine the plane with the mesh (what functions combine them together)?

Message 4 of 6

J450NP13
Advisor
Advisor

Select both objects and then goto Mesh>Combine.

 

Then select the vertices and go to Mesh Edit>Merge

0 Likes
Message 5 of 6

Anonymous
Not applicable

The mesh is represented as a MFnMesh object in cpp code and the polygon is represented as an array of MPoint objects in cpp code too , and I'm trying to merge them in code. Do you know how can I do that?

0 Likes
Message 6 of 6

J450NP13
Advisor
Advisor

No I don’t off hand.

0 Likes