]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/SketchPlugin_ResultValidators.cpp
Salome HOME
Debug of sketcher debug validators
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ResultValidators.cpp
index b611a9970867576cf09b66c48216afefb5f2bf12..e40022f7cdc1cf10529424c8e6dbbfb9b8b1ee4d 100644 (file)
@@ -29,17 +29,6 @@ bool SketchPlugin_ResultLineValidator::isValid(const ObjectPtr theObject) const
     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