How to get the u bound of an edge?

jianbaoxia

CAD master
Hi Bros, I'm JianBaoxia.
Today I get a wire, and try to transform the wire to be a bspline curve.
1667707978975.jpeg
First I call to mind is "GeomAPI_PointsToBSpline (const TColgp_Array1OfPnt &Points, const Standard_Integer DegMin=3, const Standard_Integer DegMax=8, const GeomAbs_Shape Continuity=GeomAbs_C2, const Standard_Real Tol3D=1.0e-3)".

First I need to do is sample some points from the wire, and the wire consist of several edges.
So I try to get the uMin and uMax of every edge, and then get the point.
We can use "BRepTools::UVBounds" for a face, however, I don't find a suitable tool for an edge.

May I get suggestion from you, or it's there other better ways to transform a wire to a bspline curve? o_O
 

Attachments

  • awire.step
    7.2 KB · Views: 0

jianbaoxia

CAD master
Sorry, Bros. I find it in Geom_Curve::FirstParameter() and Geom_Curve::LastParameter(),
sorry for the junior question o_O .
 
Top