Convert TopoDS_Edge

Hi,
I use the following code to select a TopoDS_Edge, and now
I want to convert it to a Geom_Curve, but I dont find any
function to do it.
Is there any way to do it?
Thanks for your help in advance!
j.Maekawa

TopoDS_Edge selectedEdge;
selectedEdge=TopoDS::Edge(myAISContext->SelectedShape());

Markus Moos's picture

Hi

You can use BRep_Tool::Curve.

Example:
double first, last;
Handle(Geom_Curve) curve = 0;
TopoDS_Edge edge = wireExplorer.Current();
curve = BRep_Tool::Curve(edge, first, last);