Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
IGES实体126具有属性或标志3值0 = rational or 1 = polynomial。将实体转换为 TopoDS_Edge 后,如何检索标志值?或者,如果可能的话,你如何检查 bspline 曲线是否给我们一条直线?
0 = rational or 1 = polynomial
这对我有用,我找到了这个IsRational()功能。我希望这是正确的用法:
IsRational()
TopoDS_Edge edge = TopoDS::Edge(shape); BRepAdaptor_Curve curve = BRepAdaptor_Curve(edge); bool isrational = curve.IsRational();
仍然欢迎更好的解决方案。:)