For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Operations with polygon vertices

codex's picture
Forums: 

Hello, I have a polygon object and I want to change vertex coordinates, add and remove vertices.
How to do this? And how to drag vertex by mouse?

BRepBuilderAPI_MakePolygon MP;
MP.Add(p1);
MP.Add(p2);
MP.Add(p3);
Handle(AIS_Shape) ais_poly = new AIS_Shape(MP);
myContext->Display(ais_poly);