Forum archiveIssue archiveOther usage issues

Archived discussion

about Geom_Curve

Other usage issuesThu, 12/22/2005 - 11:533 replies

Browse this forum
QuestionAuthor

Hi everybody,

Handle(Geom_Curve) curve = BRep_Tool::Curve(Edge,First,Last);

if Edge is not null,but curve is null.
what is the problem?

Best Regards,
Author

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

Your edge might be a 2d edge only (curve on surface), so that's why you can't extract 3d curve information from it. But if you really want to know what's the problem, use your debugger and step into the BRep_Tool:Curve method to see what is happenning.

Good Luck,
Francois.

02Author

Thanks a lot,

If the edge doesn't have 3d curve information,can we make the reference to it?

Best Regards,
Author

03Commenter-2

Hi, I have the "edge" on the "face". I'd like to make another edge "edge1" that is the same as the "edge", but OCC doesn't work. Do you have a good idea?

Handle(Geom_Surface) gsrf=BRep_Tool::Surface(face);
Handle(Geom2d_Curve) aC2D = BRep_Tool::CurveOnSurface(edge,face,aFirst,aLast);
TopoDS_Edge edge1=BRepBuilderAPI_MakeEdge(aC2D,face1);