Functions | |
def | MinDistance |
Get minimum distance between two objects. More... | |
def | GetMinDistance |
Get measure structure specifying minimum distance data between two objects. More... | |
def | BoundingBox |
Get bounding box of the specified object(s) More... | |
def | GetBoundingBox |
Get measure structure specifying bounding box data of the specified object(s) More... | |
def | GetLength |
Get sum of lengths of all 1D elements in the mesh object. More... | |
def | GetArea |
Get sum of areas of all 2D elements in the mesh object. More... | |
def | GetVolume |
Get sum of volumes of all 3D elements in the mesh object. More... | |
def | GetFreeBorders |
Verify whether a 2D mesh element has free edges (edges connected to one face only) Return a list of special structures (borders). More... | |
def | MinDistance |
Get minimum distance between two nodes, elements or distance to the origin. More... | |
def | GetMinDistance |
Get measure structure specifying minimum distance data between two objects. More... | |
def | BoundingBox |
Get bounding box of the specified object(s) More... | |
def | GetBoundingBox |
Get measure structure specifying bounding box data of the specified object(s) More... | |
def | FunctorValue |
Return value of a functor for a given element. More... | |
def | GetLength |
Get length of 1D element or sum of lengths of all 1D mesh elements. More... | |
def | GetArea |
Get area of 2D element or sum of areas of all 2D mesh elements. More... | |
def | GetVolume |
Get volume of 3D element or sum of volumes of all 3D mesh elements. More... | |
def | GetMaxElementLength |
Get maximum element length. More... | |
def | GetAspectRatio |
Get aspect ratio of 2D or 3D element. More... | |
def | GetWarping |
Get warping angle of 2D element. More... | |
def | GetMinimumAngle |
Get minimum angle of 2D element. More... | |
def | GetTaper |
Get taper of 2D element. More... | |
def | GetSkew |
Get skew of 2D element. More... | |
def | GetMinMax |
Return minimal and maximal value of a given functor. More... | |
def MinDistance | ( | self, | |
src1, | |||
src2 = None , |
|||
id1 = 0 , |
|||
id2 = 0 , |
|||
isElem1 = False , |
|||
isElem2 = False |
|||
) |
Get minimum distance between two objects.
If src2 is None, and id2 = 0, distance from src1 / id1 to the origin is computed. If src2 is None, and id2 != 0, it is assumed that both id1 and id2 belong to src1.
src1 | first source object |
src2 | second source object |
id1 | node/element id from the first source |
id2 | node/element id from the second (or first) source |
isElem1 | True if id1 is element id, False if it is node id |
isElem2 | True if id2 is element id, False if it is node id |
References smeshBuilder.GetMinDistance().
def GetMinDistance | ( | self, | |
src1, | |||
src2 = None , |
|||
id1 = 0 , |
|||
id2 = 0 , |
|||
isElem1 = False , |
|||
isElem2 = False |
|||
) |
Get measure structure specifying minimum distance data between two objects.
If src2 is None, and id2 = 0, distance from src1 / id1 to the origin is computed. If src2 is None, and id2 != 0, it is assumed that both id1 and id2 belong to src1.
src1 | first source object |
src2 | second source object |
id1 | node/element id from the first source |
id2 | node/element id from the second (or first) source |
isElem1 | True if id1 is element id, False if it is node id |
isElem2 | True if id2 is element id, False if it is node id |
def BoundingBox | ( | self, | |
objects | |||
) |
Get bounding box of the specified object(s)
objects | single source object or list of source objects |
References smeshBuilder.GetBoundingBox().
def GetBoundingBox | ( | self, | |
objects | |||
) |
Get measure structure specifying bounding box data of the specified object(s)
objects | single source object or list of source objects |
def GetLength | ( | self, | |
obj | |||
) |
Get sum of lengths of all 1D elements in the mesh object.
obj | mesh, submesh or group |
def GetArea | ( | self, | |
obj | |||
) |
Get sum of areas of all 2D elements in the mesh object.
obj | mesh, submesh or group |
def GetVolume | ( | self, | |
obj | |||
) |
Get sum of volumes of all 3D elements in the mesh object.
obj | mesh, submesh or group |
def GetFreeBorders | ( | self | ) |
Verify whether a 2D mesh element has free edges (edges connected to one face only)
Return a list of special structures (borders).
References Mesh.mesh.
def MinDistance | ( | self, | |
id1, | |||
id2 = 0 , |
|||
isElem1 = False , |
|||
isElem2 = False |
|||
) |
Get minimum distance between two nodes, elements or distance to the origin.
id1 | first node/element id |
id2 | second node/element id (if 0, distance from id1 to the origin is computed) |
isElem1 | True if id1 is element id, False if it is node id |
isElem2 | True if id2 is element id, False if it is node id |
References smeshBuilder.GetMinDistance(), and Mesh.GetMinDistance().
def GetMinDistance | ( | self, | |
id1, | |||
id2 = 0 , |
|||
isElem1 = False , |
|||
isElem2 = False |
|||
) |
Get measure structure specifying minimum distance data between two objects.
id1 | first node/element id |
id2 | second node/element id (if 0, distance from id1 to the origin is computed) |
isElem1 | True if id1 is element id, False if it is node id |
isElem2 | True if id2 is element id, False if it is node id |
def BoundingBox | ( | self, | |
objects = None , |
|||
isElem = False |
|||
) |
Get bounding box of the specified object(s)
objects | single source object or list of source objects or list of nodes/elements IDs |
isElem | if objects is a list of IDs, True value in this parameters specifies that objects are elements, False specifies that objects are nodes |
References smeshBuilder.GetBoundingBox(), and Mesh.GetBoundingBox().
def GetBoundingBox | ( | self, | |
IDs = None , |
|||
isElem = False |
|||
) |
Get measure structure specifying bounding box data of the specified object(s)
IDs | single source object or list of source objects or list of nodes/elements IDs |
isElem | if IDs is a list of IDs, True value in this parameters specifies that objects are elements, False specifies that objects are nodes |
References Mesh.mesh.
def FunctorValue | ( | self, | |
funcType, | |||
elemId, | |||
isElem = True |
|||
) |
Return value of a functor for a given element.
funcType | an item of SMESH.FunctorType enum Type "SMESH.FunctorType._items" in the Python Console to see all items. |
elemId | element or node ID |
isElem | elemId is ID of element or node |
References Mesh._getFunctor(), and Mesh.GetElementType().
def GetLength | ( | self, | |
elemId = None |
|||
) |
Get length of 1D element or sum of lengths of all 1D mesh elements.
elemId | mesh element ID (if not defined - sum of length of all 1D elements will be calculated) |
References Mesh.FunctorValue().
def GetArea | ( | self, | |
elemId = None |
|||
) |
Get area of 2D element or sum of areas of all 2D mesh elements.
elemId | mesh element ID (if not defined - sum of areas of all 2D elements will be calculated) |
References Mesh.FunctorValue().
def GetVolume | ( | self, | |
elemId = None |
|||
) |
Get volume of 3D element or sum of volumes of all 3D mesh elements.
elemId | mesh element ID (if not defined - sum of volumes of all 3D elements will be calculated) |
References Mesh.FunctorValue().
def GetMaxElementLength | ( | self, | |
elemId | |||
) |
Get maximum element length.
elemId | mesh element ID |
References Mesh.FunctorValue(), and Mesh.GetElementType().
def GetAspectRatio | ( | self, | |
elemId | |||
) |
Get aspect ratio of 2D or 3D element.
elemId | mesh element ID |
References Mesh.FunctorValue(), and Mesh.GetElementType().
def GetWarping | ( | self, | |
elemId | |||
) |
Get warping angle of 2D element.
elemId | mesh element ID |
References Mesh.FunctorValue().
def GetMinimumAngle | ( | self, | |
elemId | |||
) |
Get minimum angle of 2D element.
elemId | mesh element ID |
References Mesh.FunctorValue().
def GetTaper | ( | self, | |
elemId | |||
) |
Get taper of 2D element.
elemId | mesh element ID |
References Mesh.FunctorValue().
def GetSkew | ( | self, | |
elemId | |||
) |
Get skew of 2D element.
elemId | mesh element ID |
References Mesh.FunctorValue().
def GetMinMax | ( | self, | |
funType, | |||
meshPart = None |
|||
) |
Return minimal and maximal value of a given functor.
funType | a functor type, an item of SMESH.FunctorType enum (one of SMESH.FunctorType._items) |
meshPart | a part of mesh (group, sub-mesh) to treat |
References Mesh._getFunctor(), Mesh.GetIDSource(), and Mesh.mesh.