Salome HOME
Make circle with radius 0 not crashed: check validity before execution
[modules/shaper.git] / src / Model / Model_ResultConstruction.cpp
1 // File:        ModelAPI_ResultConstruction.cpp
2 // Created:     07 Jul 2014
3 // Author:      Mikhail PONIKAROV
4
5 #include <Model_ResultConstruction.h>
6
7 void Model_ResultConstruction::setShape(boost::shared_ptr<GeomAPI_Shape> theShape)
8 {
9   myShape = theShape;
10 }
11
12 boost::shared_ptr<GeomAPI_Shape>& Model_ResultConstruction::shape()
13 {
14   return myShape;
15 }
16
17 Model_ResultConstruction::Model_ResultConstruction()
18 {
19   myIsInHistory = true;
20 }
21
22 void Model_ResultConstruction::setIsInHistory(const bool isInHistory)
23 {
24   myIsInHistory = isInHistory;
25 }