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

Related pages

Discretize a TopoDS_Wire

Dashan Wang's picture


I have a problem to Discretize a TopoDS_Wire into a vector of vertices(x,y,z point).

I have used the code below and successfully discretize a Edge:

                   TopoDS_Edge CurrentEdge = TopoDS::Edge(Shape);

                   BRepAdaptor_Curve curve_adaptator(CurrentEdge);

                   GCPnts_UniformAbscissa discretizer;

                   discretizer.Initialize(curve_adaptator, params.abscissa);

But the function BRepAdaptor_Curve and GCPnts_UniformAbscissa only support TopoDS_Edge. I am trying to find a way to discretize a TopoDS_Wire.

Is there anyone have done this before?????  I really appreciate your time for this answer.