Functions | |
def | GetMeshInfo |
Gets the mesh statistic. | |
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 | NbBiQuadQuadrangles |
Returns the number of biquadratic quadrangles 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 | NbTriQuadraticHexas |
Returns the number of triquadratic hexahedrons 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 | NbHexagonalPrisms |
Returns the number of hexagonal prisms 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 | GetElementGeomType |
Returns the geometric 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 | GetElemFaceNodes |
Returns nodes of given face (counted from zero) for given volumic element. | |
def | FindElementByNodes |
Returns an element based on all given nodes. | |
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. |
def smesh.GetMeshInfo | ( | self, | |
obj | |||
) |
Gets the mesh statistic.
def GetMeshInfo | ( | self, | |
obj = None |
|||
) |
def NbNodes | ( | self | ) |
Returns the number of nodes in the mesh.
def NbElements | ( | self | ) |
Returns the number of elements in the mesh.
def Nb0DElements | ( | self | ) |
Returns the number of 0d elements in the mesh.
def NbEdges | ( | self | ) |
Returns the number of edges in the mesh.
def NbEdgesOfOrder | ( | self, | |
elementOrder | |||
) |
Returns the number of edges with the given order in the mesh.
elementOrder | the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC |
def NbFaces | ( | self | ) |
Returns the number of faces in the mesh.
def NbFacesOfOrder | ( | self, | |
elementOrder | |||
) |
Returns the number of faces with the given order in the mesh.
elementOrder | the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC |
def NbTriangles | ( | self | ) |
Returns the number of triangles in the mesh.
def NbTrianglesOfOrder | ( | self, | |
elementOrder | |||
) |
Returns the number of triangles with the given order in the mesh.
elementOrder | is the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC |
def NbQuadrangles | ( | self | ) |
Returns the number of quadrangles in the mesh.
def NbQuadranglesOfOrder | ( | self, | |
elementOrder | |||
) |
Returns the number of quadrangles with the given order in the mesh.
elementOrder | the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC |
def NbBiQuadQuadrangles | ( | self | ) |
Returns the number of biquadratic quadrangles in the mesh.
def NbPolygons | ( | self | ) |
Returns the number of polygons in the mesh.
def NbVolumes | ( | self | ) |
Returns the number of volumes in the mesh.
def NbVolumesOfOrder | ( | self, | |
elementOrder | |||
) |
Returns the number of volumes with the given order in the mesh.
elementOrder | the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC |
def NbTetras | ( | self | ) |
Returns the number of tetrahedrons in the mesh.
def NbTetrasOfOrder | ( | self, | |
elementOrder | |||
) |
Returns the number of tetrahedrons with the given order in the mesh.
elementOrder | the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC |
def NbHexas | ( | self | ) |
Returns the number of hexahedrons in the mesh.
def NbHexasOfOrder | ( | self, | |
elementOrder | |||
) |
Returns the number of hexahedrons with the given order in the mesh.
elementOrder | the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC |
def NbTriQuadraticHexas | ( | self | ) |
Returns the number of triquadratic hexahedrons in the mesh.
def NbPyramids | ( | self | ) |
Returns the number of pyramids in the mesh.
def NbPyramidsOfOrder | ( | self, | |
elementOrder | |||
) |
Returns the number of pyramids with the given order in the mesh.
elementOrder | the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC |
def NbPrisms | ( | self | ) |
Returns the number of prisms in the mesh.
def NbPrismsOfOrder | ( | self, | |
elementOrder | |||
) |
Returns the number of prisms with the given order in the mesh.
elementOrder | the order of elements: ORDER_ANY, ORDER_LINEAR or ORDER_QUADRATIC |
def NbHexagonalPrisms | ( | self | ) |
Returns the number of hexagonal prisms in the mesh.
def NbPolyhedrons | ( | self | ) |
Returns the number of polyhedrons in the mesh.
def NbSubMesh | ( | self | ) |
Returns the number of submeshes in the mesh.
def GetElementsId | ( | self | ) |
Returns the list of mesh elements IDs.
def GetElementsByType | ( | self, | |
elementType | |||
) |
Returns the list of IDs of mesh elements with the given type.
elementType | the required type of elements (SMESH.NODE, SMESH.EDGE, SMESH.FACE or SMESH.VOLUME) |
def GetNodesId | ( | self | ) |
Returns the list of mesh nodes IDs.
def GetElementType | ( | self, | |
id, | |||
iselem | |||
) |
Returns the type of mesh element.
def GetElementGeomType | ( | self, | |
id | |||
) |
Returns the geometric type of mesh element.
def GetSubMeshElementsId | ( | self, | |
Shape | |||
) |
Returns the list of submesh elements IDs.
Shape | a geom object(sub-shape) IOR Shape must be the sub-shape of a ShapeToMesh() |
def GetSubMeshNodesId | ( | self, | |
Shape, | |||
all | |||
) |
Returns the list of submesh nodes IDs.
Shape | a geom object(sub-shape) IOR Shape must be the sub-shape of a ShapeToMesh() |
all | If true, gives all nodes of submesh elements, otherwise gives only submesh nodes |
def GetSubMeshElementType | ( | self, | |
Shape | |||
) |
Returns type of elements on given shape.
Shape | a geom object(sub-shape) IOR Shape must be a sub-shape of a ShapeToMesh() |
def Dump | ( | self | ) |
Gets the mesh description.
def GetNodeXYZ | ( | self, | |
id | |||
) |
Gets XYZ coordinates of a node
If there is no nodes for the given ID - returns an empty list.
def GetNodeInverseElements | ( | self, | |
id | |||
) |
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 | ( | self, | |
NodeID | |||
) |
Returns the position of a node on the shape.
def GetShapeID | ( | self, | |
id | |||
) |
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 | ( | self, | |
id | |||
) |
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 | ( | self, | |
id | |||
) |
Returns the number of nodes for the given element
If there is no element for the given ID - returns -1.
def GetElemNode | ( | self, | |
id, | |||
index | |||
) |
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 | ( | self, | |
id | |||
) |
Returns the IDs of nodes of the given element.
def IsMediumNode | ( | self, | |
elementID, | |||
nodeID | |||
) |
Returns true if the given node is the medium node in the given quadratic element.
def IsMediumNodeOfAnyElem | ( | self, | |
nodeID, | |||
elementType | |||
) |
Returns true if the given node is the medium node in one of quadratic elements.
def ElemNbEdges | ( | self, | |
id | |||
) |
Returns the number of edges for the given element.
def ElemNbFaces | ( | self, | |
id | |||
) |
Returns the number of faces for the given element.
def GetElemFaceNodes | ( | self, | |
elemId, | |||
faceIndex | |||
) |
Returns nodes of given face (counted from zero) for given volumic element.
def FindElementByNodes | ( | self, | |
nodes | |||
) |
Returns an element based on all given nodes.
def IsPoly | ( | self, | |
id | |||
) |
Returns true if the given element is a polygon.
def IsQuadratic | ( | self, | |
id | |||
) |
Returns true if the given element is quadratic.
def BaryCenter | ( | self, | |
id | |||
) |
Returns XYZ coordinates of the barycenter of the given element
If there is no element for the given ID - returns an empty list.