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

Trimming of TopoDS_Wire


I am trying to extract a sub curve from the given wire. Assume wire contains more than one edge. i am trying to extract the edges between two params say start and end.

TopoDS_Wire edge = TopoDS::Wire(*curve);
BRepAdaptor_CompCurve wireAdaptor(edge);
Handle_Adaptor3d_HCurve ccurve = wireAdaptor.Trim(startParam, endParam, Utility::LinearTolerance);
BRepAdaptor_HCompCurve acurve = dynamic_cast(*ccurve);
BRepAdaptor_CompCurve cc = acurve.ChangeCurve();

but when i try to access the wire from cc it gives full untrimmed wire rather than trimmed wire.
i do not know what and where i am going wrong.

Request the team support to get the solution.

Thnx n Rgds