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的句柄再提取

posted @ 2020-03-02 21:54  宁默  阅读(1492)  评论(0)    收藏  举报