finding intersection segments between a face and a curve (lying on the face (i.e. surface))

Hi all,

I see that GeomAPI_IntCS provides exactly what I want but it does it for a curve and a SURFACE, whereas I need the number of intersection segments between a FACE and a curve (we know that the curve lies wholly on the face). IntCurvesFace_ShapeIntersector does provide a way to intersect a curve and a face but it ends up providing only the points of intersections and not intervals - ccan somebody please help me out with this one.


Mauro Mariotti's picture

I understand the curve lies on the (untrimmed) surface, and you need to pieces which are inside the face.
I would try with a projection algorithm:
create an edge from the curve and call BRepAlgo_NormalProjection or BRepOffsetAPI_NormalProjection.


Kapil's picture

Thanks for helping, will try that.