return false;
boost::shared_ptr<GeomAPI_Shape> aShape = ModelAPI_Tools::shape(aResult);
return aShape && aShape->isEdge() && GeomAPI_Curve(aShape).isLine();
-
- /*
- if (aShape.ShapeType() == TopAbs_EDGE) {
- TopoDS_Edge aEdge = TopoDS::Edge(aShape);
- Standard_Real aStart, aEnd;
- Handle(Geom_Curve) aCurve = BRep_Tool::Curve(aEdge, aStart, aEnd);
- GeomAdaptor_Curve aAdaptor(aCurve);
- return aAdaptor.GetType() == GeomAbs_Line;
- }
- return false;
- */
}
bool SketchPlugin_ResultArcValidator::isValid(const ObjectPtr theObject) const