Salome HOME
Fix the point by XYZ coordinates python export/dump
[modules/shaper.git] / src / ConstructionAPI / ConstructionAPI_Point.cpp
index 7d536c9fd01ae0d093a4ed35dbabb837c6e41afe..7dcca33b67b9938706c226b5c0b2ba9cc292e9f2 100644 (file)
@@ -139,6 +139,7 @@ void ConstructionAPI_Point::setByXYZ(const ModelHighAPI_Double& theX,
   //fillAttribute(theZ, myz);
 
   fillAttribute(ConstructionPlugin_Point::CREATION_METHOD_BY_XYZ(), mycreationMethod);
+  fillAttribute(theX, theY, theZ, mypoint);
 
   execute(false);
 }
@@ -265,7 +266,7 @@ void ConstructionAPI_Point::dump(ModelHighAPI_Dumper& theDumper) const
 
   if (aMeth == "" || // default is XYZ
       aMeth == ConstructionPlugin_Point::CREATION_METHOD_BY_XYZ()) {
-    theDumper << point() << ")" << std::endl;
+    theDumper << point();
   } else if (aMeth == ConstructionPlugin_Point::CREATION_METHOD_BY_INTERSECTION()) {
     const std::string anIntersectionType = intersectionType()->value();
     if (anIntersectionType == ConstructionPlugin_Point::INTERSECTION_TYPE_BY_LINES())