]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PythonAPI/model/construction/point.py
Salome HOME
Improve PythonAPI documentstion.
[modules/shaper.git] / src / PythonAPI / model / construction / point.py
index fa81fcf1f3042200462d4d43859b3e95d606a1c8..d2448bc67610f3da9989f45e976a6cf036c192c0 100644 (file)
@@ -16,17 +16,16 @@ def addPoint(part, *args):
 
 
 class Point(Interface):
-    """Interface on an Point feature."""
+    """Interface class for Point feature.
 
-    def __init__(self, feature, *args):
-        """Initialize an Point feature with given parameters.
-
-        Expected arguments for all modes:
-        feature -- a Point feature
+    Point(feature) -> feature interface without initialization
+    Point(feature, x, y, z) ->
+        feature interface initialized from arguments:
+        - x, y, z -- coordinates for the point
+    """
 
-        Expected arguments for initializing the feature:
-        x, y, z -- x, y, z coordinates for the point.
-        """
+    def __init__(self, feature, *args):
+        """x.__init__(...) initializes x; see x.__class__.__doc__ for signature"""
         Interface.__init__(self, feature)
         assert(self._feature.getKind() == "Point")