-std::shared_ptr<GeomAPI_Pnt2d> getProjectionPoint(
- const std::shared_ptr<SketchPlugin_Line>& theLine,
- const std::shared_ptr<GeomAPI_Pnt2d>& thePoint)
-{
- std::shared_ptr<ModelAPI_Data> aData = theLine->data();
- std::shared_ptr<GeomDataAPI_Point2D> aPoint1 = std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
- aData->attribute(SketchPlugin_Line::START_ID()));
- std::shared_ptr<GeomDataAPI_Point2D> aPoint2 = std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
- aData->attribute(SketchPlugin_Line::END_ID()));
-
- GeomAPI_Lin2d aLin2d(aPoint1->x(), aPoint1->y(), aPoint2->x(), aPoint2->y());
- return aLin2d.project(thePoint);
-}
+//std::shared_ptr<GeomAPI_Pnt2d> getProjectionPoint(
+// const std::shared_ptr<SketchPlugin_Line>& theLine,
+// const std::shared_ptr<GeomAPI_Pnt2d>& thePoint)
+//{
+// std::shared_ptr<ModelAPI_Data> aData = theLine->data();
+// std::shared_ptr<GeomDataAPI_Point2D> aPoint1 = std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
+// aData->attribute(SketchPlugin_Line::START_ID()));
+// std::shared_ptr<GeomDataAPI_Point2D> aPoint2 = std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
+// aData->attribute(SketchPlugin_Line::END_ID()));
+//
+// GeomAPI_Lin2d aLin2d(aPoint1->x(), aPoint1->y(), aPoint2->x(), aPoint2->y());
+// return aLin2d.project(thePoint);
+//}