jianbaoxia
CAD master
Hi Bros, I'm JianBaoxia.
Today I get a wire, and try to transform the wire to be a bspline curve.
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?
Today I get a wire, and try to transform the wire to be a bspline curve.
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?