1 // Name : SketchAPI_IntersectionPoint.cpp
5 // 16/06/16 - Sergey POKHODENKO - Creation of the file
7 //--------------------------------------------------------------------------------------
8 #include "SketchAPI_IntersectionPoint.h"
9 //--------------------------------------------------------------------------------------
10 #include <GeomAPI_Pnt2d.h>
11 //--------------------------------------------------------------------------------------
12 #include <ModelHighAPI_Selection.h>
13 #include <ModelHighAPI_Tools.h>
14 //--------------------------------------------------------------------------------------
15 SketchAPI_IntersectionPoint::SketchAPI_IntersectionPoint(
16 const std::shared_ptr<ModelAPI_Feature> & theFeature)
17 : SketchAPI_SketchEntity(theFeature)
22 SketchAPI_IntersectionPoint::SketchAPI_IntersectionPoint(
23 const std::shared_ptr<ModelAPI_Feature> & theFeature,
24 const ModelHighAPI_Selection & theExternal )
25 : SketchAPI_SketchEntity(theFeature)
28 setByExternalLine(theExternal);
32 SketchAPI_IntersectionPoint::SketchAPI_IntersectionPoint(
33 const std::shared_ptr<ModelAPI_Feature> & theFeature,
34 const std::string & theExternalName )
35 : SketchAPI_SketchEntity(theFeature)
38 setByExternalLineName(theExternalName);
42 SketchAPI_IntersectionPoint::~SketchAPI_IntersectionPoint()
47 //--------------------------------------------------------------------------------------
48 void SketchAPI_IntersectionPoint::setByExternalLine(const ModelHighAPI_Selection & theExternalLine)
50 fillAttribute(theExternalLine, externalLine());
55 void SketchAPI_IntersectionPoint::setByExternalLineName(const std::string & theExternalLineName)
57 fillAttribute(ModelHighAPI_Selection("EDGE", theExternalLineName), externalLine());
62 //--------------------------------------------------------------------------------------