#include <SketchPlugin_Line.h>
#include <SketchPlugin_Circle.h>
+#include <SketchPlugin_Point.h>
#include <SketchAPI_Line.h>
#include <SketchAPI_Circle.h>
#include <SketchAPI_Arc.h>
+#include <SketchAPI_Point.h>
#include <ModelHighAPI_Dumper.h>
#include <ModelHighAPI_Selection.h>
return anEntity;
}
- aProjectedFeature->getKind() == SketchPlugin_Line::ID() ?
- anEntity.reset(new SketchAPI_Line(aProjectedFeature)) :
- aProjectedFeature->getKind() == SketchPlugin_Circle::ID() ?
- anEntity.reset(new SketchAPI_Circle(aProjectedFeature)) :
- anEntity.reset(new SketchAPI_Arc(aProjectedFeature));
+ if (aProjectedFeature->getKind() == SketchPlugin_Line::ID())
+ anEntity.reset(new SketchAPI_Line(aProjectedFeature));
+ else if (aProjectedFeature->getKind() == SketchPlugin_Circle::ID())
+ anEntity.reset(new SketchAPI_Circle(aProjectedFeature));
+ else if (aProjectedFeature->getKind() == SketchPlugin_Arc::ID())
+ anEntity.reset(new SketchAPI_Arc(aProjectedFeature));
+ else if (aProjectedFeature->getKind() == SketchPlugin_Point::ID())
+ anEntity.reset(new SketchAPI_Point(aProjectedFeature));
return anEntity;
}