]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomData/GeomData_Point.cpp
Salome HOME
Added the system of reinitialization of attributes instead of re-creation of them...
[modules/shaper.git] / src / GeomData / GeomData_Point.cpp
index f6becd98da1e7c418eecb0e0b61df4396371cb88..9ceced262ea3fa533b192dd00e79dee5471b0732 100644 (file)
@@ -20,6 +20,15 @@ GeomData_Point::GeomData_Point()
   myIsInitialized = false;
 }
 
+void GeomData_Point::reinit()
+{
+  myIsInitialized = true;
+  for (int aComponent = 0; aComponent < NUM_COMPONENTS; ++aComponent) {
+    myExpression[aComponent]->reinit();
+    myIsInitialized = myIsInitialized && myExpression[aComponent]->isInitialized();
+  }
+}
+
 void GeomData_Point::setCalculatedValue(const double theX, const double theY, const double theZ)
 {
   if (!myIsInitialized || x() != theX || y() != theY || z() != theZ) {