Salome HOME
Issue #555: Infinite boolean state is stored in Result construction.
[modules/shaper.git] / src / Model / Model_ResultConstruction.cpp
index 2a8893a7ea0de836b78b73d151bd5fb529094ae5..41e1a9b166a43771fac03ba55775eae2b17f9c5c 100644 (file)
@@ -46,6 +46,7 @@ Model_ResultConstruction::Model_ResultConstruction()
 {
   myIsDisabled = true; // by default it is not initialized and false to be after created
   myIsInHistory = true;
+  myIsInfinite = false;
   myFacesUpToDate = false;
   setIsConcealed(false);
 }
@@ -80,3 +81,13 @@ std::shared_ptr<GeomAPI_Face> Model_ResultConstruction::face(const int theIndex)
 {
   return myFaces[theIndex];
 }
+
+bool Model_ResultConstruction::isInfinite()
+{
+  return myIsInfinite;
+}
+
+void Model_ResultConstruction::setInfinite(const bool theInfinite)
+{
+  myIsInfinite = theInfinite;
+}