Salome HOME
PAL17694 (New Tool About Hexahedral Meshing)
authoreap <eap@opencascade.com>
Thu, 15 Nov 2007 14:29:56 +0000 (14:29 +0000)
committereap <eap@opencascade.com>
Thu, 15 Nov 2007 14:29:56 +0000 (14:29 +0000)
+  /*!
+   * Node location on a shape
+   */
+  struct NodePosition {
+    long             shapeID;
+    GEOM::shape_type shapeType;
+    double_array     params; // [U] on EDGE, [U,V] on FACE, [] on the rest shapes
+  };
+     * \brief Return position of a node on shape
+     */
+    NodePosition GetNodePosition(in long NodeID);
+
+    /*!

idl/SMESH_Mesh.idl

index 52f4da0be8ef9fac5ec6f59cce629ca3db671236..698e4139f35bae92b4641dd51b7ae3571a1bd876 100644 (file)
@@ -93,6 +93,14 @@ module SMESH
                       double vy;
                       double vz; } ;
 
+  /*!
+   * Node location on a shape
+   */
+  struct NodePosition {
+    long             shapeID;
+    GEOM::shape_type shapeType;
+    double_array     params; // [U] on EDGE, [U,V] on FACE, [] on the rest shapes
+  };
 
   /*!
    * Enumeration for element type, like in SMDS
@@ -523,6 +531,11 @@ module SMESH
      */
     long_array GetNodeInverseElements(in long id);
 
+    /*!
+     * \brief Return position of a node on shape
+     */
+    NodePosition GetNodePosition(in long NodeID);
+
     /*!
      * If given element is node returns IDs of shape from position
      * If there is not node for given ID - returns -1