SALOME documentation central

Mesh Information

Functions

def GetMeshInfo
 Gets the mesh stattistic.
def GetMeshInfo
 Gets the mesh stattistic.
def NbNodes
 Returns the number of nodes in the mesh.
def NbElements
 Returns the number of elements in the mesh.
def Nb0DElements
 Returns the number of 0d elements in the mesh.
def NbEdges
 Returns the number of edges in the mesh.
def NbEdgesOfOrder
 Returns the number of edges with the given order in the mesh.
def NbFaces
 Returns the number of faces in the mesh.
def NbFacesOfOrder
 Returns the number of faces with the given order in the mesh.
def NbTriangles
 Returns the number of triangles in the mesh.
def NbTrianglesOfOrder
 Returns the number of triangles with the given order in the mesh.
def NbQuadrangles
 Returns the number of quadrangles in the mesh.
def NbQuadranglesOfOrder
 Returns the number of quadrangles with the given order in the mesh.
def NbPolygons
 Returns the number of polygons in the mesh.
def NbVolumes
 Returns the number of volumes in the mesh.
def NbVolumesOfOrder
 Returns the number of volumes with the given order in the mesh.
def NbTetras
 Returns the number of tetrahedrons in the mesh.
def NbTetrasOfOrder
 Returns the number of tetrahedrons with the given order in the mesh.
def NbHexas
 Returns the number of hexahedrons in the mesh.
def NbHexasOfOrder
 Returns the number of hexahedrons with the given order in the mesh.
def NbPyramids
 Returns the number of pyramids in the mesh.
def NbPyramidsOfOrder
 Returns the number of pyramids with the given order in the mesh.
def NbPrisms
 Returns the number of prisms in the mesh.
def NbPrismsOfOrder
 Returns the number of prisms with the given order in the mesh.
def NbPolyhedrons
 Returns the number of polyhedrons in the mesh.
def NbSubMesh
 Returns the number of submeshes in the mesh.
def GetElementsId
 Returns the list of mesh elements IDs.
def GetElementsByType
 Returns the list of IDs of mesh elements with the given type.
def GetNodesId
 Returns the list of mesh nodes IDs.
def GetElementType
 Returns the type of mesh element.
def GetSubMeshElementsId
 Returns the list of submesh elements IDs.
def GetSubMeshNodesId
 Returns the list of submesh nodes IDs.
def GetSubMeshElementType
 Returns type of elements on given shape.
def Dump
 Gets the mesh description.
def GetNodeXYZ
 Gets XYZ coordinates of a node
If there is no nodes for the given ID - returns an empty list.
def GetNodeInverseElements
 Returns list of IDs of inverse elements for the given node
If there is no node for the given ID - returns an empty list.
def GetNodePosition
 Returns the position of a node on the shape.
def GetShapeID
 If the given element is a node, returns the ID of shape
If there is no node for the given ID - returns -1.
def GetShapeIDForElem
 Returns the ID of the result shape after FindShape() from SMESH_MeshEditor for the given element
If there is no element for the given ID - returns -1.
def GetElemNbNodes
 Returns the number of nodes for the given element
If there is no element for the given ID - returns -1.
def GetElemNode
 Returns the node ID the given index for the given element
If there is no element for the given ID - returns -1
If there is no node for the given index - returns -2.
def GetElemNodes
 Returns the IDs of nodes of the given element.
def IsMediumNode
 Returns true if the given node is the medium node in the given quadratic element.
def IsMediumNodeOfAnyElem
 Returns true if the given node is the medium node in one of quadratic elements.
def ElemNbEdges
 Returns the number of edges for the given element.
def ElemNbFaces
 Returns the number of faces for the given element.
def IsPoly
 Returns true if the given element is a polygon.
def IsQuadratic
 Returns true if the given element is quadratic.
def BaryCenter
 Returns XYZ coordinates of the barycenter of the given element
If there is no element for the given ID - returns an empty list.

Function Documentation

def GetMeshInfo (   self,
  obj 
) [inherited]

Gets the mesh stattistic.

Returns:
dictionary type element - count of elements
def GetMeshInfo (   self,
  obj = None 
) [inherited]

Gets the mesh stattistic.

Returns:
dictionary type element - count of elements
def NbNodes (   self  )  [inherited]

Returns the number of nodes in the mesh.

Returns:
an integer value
def NbElements (   self  )  [inherited]

Returns the number of elements in the mesh.

Returns:
an integer value
def Nb0DElements (   self  )  [inherited]

Returns the number of 0d elements in the mesh.

Returns:
an integer value
def NbEdges (   self  )  [inherited]

Returns the number of edges in the mesh.

Returns:
an integer value
def NbEdgesOfOrder (   self,
  elementOrder 
) [inherited]

Returns the number of edges with the given order in the mesh.

Parameters:
elementOrder the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC
Returns:
an integer value
def NbFaces (   self  )  [inherited]

Returns the number of faces in the mesh.

Returns:
an integer value
def NbFacesOfOrder (   self,
  elementOrder 
) [inherited]

Returns the number of faces with the given order in the mesh.

Parameters:
elementOrder the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC
Returns:
an integer value
def NbTriangles (   self  )  [inherited]

Returns the number of triangles in the mesh.

Returns:
an integer value
def NbTrianglesOfOrder (   self,
  elementOrder 
) [inherited]

Returns the number of triangles with the given order in the mesh.

Parameters:
elementOrder is the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC
Returns:
an integer value
def NbQuadrangles (   self  )  [inherited]

Returns the number of quadrangles in the mesh.

Returns:
an integer value
def NbQuadranglesOfOrder (   self,
  elementOrder 
) [inherited]

Returns the number of quadrangles with the given order in the mesh.

Parameters:
elementOrder the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC
Returns:
an integer value
def NbPolygons (   self  )  [inherited]

Returns the number of polygons in the mesh.

Returns:
an integer value
def NbVolumes (   self  )  [inherited]

Returns the number of volumes in the mesh.

Returns:
an integer value
def NbVolumesOfOrder (   self,
  elementOrder 
) [inherited]

Returns the number of volumes with the given order in the mesh.

Parameters:
elementOrder the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC
Returns:
an integer value
def NbTetras (   self  )  [inherited]

Returns the number of tetrahedrons in the mesh.

Returns:
an integer value
def NbTetrasOfOrder (   self,
  elementOrder 
) [inherited]

Returns the number of tetrahedrons with the given order in the mesh.

Parameters:
elementOrder the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC
Returns:
an integer value
def NbHexas (   self  )  [inherited]

Returns the number of hexahedrons in the mesh.

Returns:
an integer value
def NbHexasOfOrder (   self,
  elementOrder 
) [inherited]

Returns the number of hexahedrons with the given order in the mesh.

Parameters:
elementOrder the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC
Returns:
an integer value
def NbPyramids (   self  )  [inherited]

Returns the number of pyramids in the mesh.

Returns:
an integer value
def NbPyramidsOfOrder (   self,
  elementOrder 
) [inherited]

Returns the number of pyramids with the given order in the mesh.

Parameters:
elementOrder the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC
Returns:
an integer value
def NbPrisms (   self  )  [inherited]

Returns the number of prisms in the mesh.

Returns:
an integer value
def NbPrismsOfOrder (   self,
  elementOrder 
) [inherited]

Returns the number of prisms with the given order in the mesh.

Parameters:
elementOrder the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC
Returns:
an integer value
def NbPolyhedrons (   self  )  [inherited]

Returns the number of polyhedrons in the mesh.

Returns:
an integer value
def NbSubMesh (   self  )  [inherited]

Returns the number of submeshes in the mesh.

Returns:
an integer value
def GetElementsId (   self  )  [inherited]

Returns the list of mesh elements IDs.

Returns:
the list of integer values
def GetElementsByType (   self,
  elementType 
) [inherited]

Returns the list of IDs of mesh elements with the given type.

Parameters:
elementType the required type of elements
Returns:
list of integer values
def GetNodesId (   self  )  [inherited]

Returns the list of mesh nodes IDs.

Returns:
the list of integer values
def GetElementType (   self,
  id,
  iselem 
) [inherited]

Returns the type of mesh element.

Returns:
the value from SMESH.ElementType enumeration
def GetSubMeshElementsId (   self,
  Shape 
) [inherited]

Returns the list of submesh elements IDs.

Parameters:
Shape a geom object(subshape) IOR Shape must be the subshape of a ShapeToMesh()
Returns:
the list of integer values
def GetSubMeshNodesId (   self,
  Shape,
  all 
) [inherited]

Returns the list of submesh nodes IDs.

Parameters:
Shape a geom object(subshape) IOR Shape must be the subshape of a ShapeToMesh()
all If true, gives all nodes of submesh elements, otherwise gives only submesh nodes
Returns:
the list of integer values
def GetSubMeshElementType (   self,
  Shape 
) [inherited]

Returns type of elements on given shape.

Parameters:
Shape a geom object(subshape) IOR Shape must be a subshape of a ShapeToMesh()
Returns:
element type
def Dump (   self  )  [inherited]

Gets the mesh description.

Returns:
string value
def GetNodeXYZ (   self,
  id 
) [inherited]

Gets XYZ coordinates of a node
If there is no nodes for the given ID - returns an empty list.

Returns:
a list of double precision values
def GetNodeInverseElements (   self,
  id 
) [inherited]

Returns list of IDs of inverse elements for the given node
If there is no node for the given ID - returns an empty list.

Returns:
a list of integer values
def GetNodePosition (   self,
  NodeID 
) [inherited]

Returns the position of a node on the shape.

Returns:
SMESH.NodePosition
def GetShapeID (   self,
  id 
) [inherited]

If the given element is a node, returns the ID of shape
If there is no node for the given ID - returns -1.

Returns:
an integer value
def GetShapeIDForElem (   self,
  id 
) [inherited]

Returns the ID of the result shape after FindShape() from SMESH_MeshEditor for the given element
If there is no element for the given ID - returns -1.

Returns:
an integer value
def GetElemNbNodes (   self,
  id 
) [inherited]

Returns the number of nodes for the given element
If there is no element for the given ID - returns -1.

Returns:
an integer value
def GetElemNode (   self,
  id,
  index 
) [inherited]

Returns the node ID the given index for the given element
If there is no element for the given ID - returns -1
If there is no node for the given index - returns -2.

Returns:
an integer value
def GetElemNodes (   self,
  id 
) [inherited]

Returns the IDs of nodes of the given element.

Returns:
a list of integer values
def IsMediumNode (   self,
  elementID,
  nodeID 
) [inherited]

Returns true if the given node is the medium node in the given quadratic element.

def IsMediumNodeOfAnyElem (   self,
  nodeID,
  elementType 
) [inherited]

Returns true if the given node is the medium node in one of quadratic elements.

def ElemNbEdges (   self,
  id 
) [inherited]

Returns the number of edges for the given element.

def ElemNbFaces (   self,
  id 
) [inherited]

Returns the number of faces for the given element.

def IsPoly (   self,
  id 
) [inherited]

Returns true if the given element is a polygon.

def IsQuadratic (   self,
  id 
) [inherited]

Returns true if the given element is quadratic.

def BaryCenter (   self,
  id 
) [inherited]

Returns XYZ coordinates of the barycenter of the given element
If there is no element for the given ID - returns an empty list.

Returns:
a list of three double values
 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS