OpenCasCade取TopoDS_Edge的首尾端点
TopoDS_Edge Edge1 = BRepBuilderAPI_MakeEdge(gp_Pnt(0,0,0), gp_Pnt(1,1,1));
Standard_Real first, last;
Handle(Geom_Curve) aCurve = BRep_Tool::Curve(Edge1, first, last);
gp_Pnt StrPnt = aCurve->Value(first);
gp_Pnt EndPnt = aCurve->Value(last);
tips:转成Geom_Curve的句柄再提取

浙公网安备 33010602011771号