OCC.SMESH module¶
No docstring provided.
-
class
SMESH_ElementSearcher(*args, **kwargs)¶ Bases:
object-
FindElementsByPoint()¶ Parameters: Return type:
-
thisown¶ The membership flag
-
-
class
SMESH_Exception(*args)¶ Bases:
objectParameters: - text (char *) –
- fileName (char *) – default value is 0
- lineNumber (unsigned int) – default value is 0
- ex (SMESH_Exception &) –
Return type: Return type: -
thisown¶ The membership flag
-
what()¶ :param : :type : void :rtype: char *
-
class
SMESH_Gen(*args)¶ Bases:
objectReturn type: None -
Compute()¶ - /*! * rief Computes aMesh on aShape * param anUpward - compute from vertices up to more complex shape (internal usage) * param aDim - upper level dimension of the mesh computation * param aShapesId - list of shapes with computed mesh entities (elements or nodes) * etval bool - true if none submesh failed to compute */
Parameters: - aMesh (SMESH_Mesh &) –
- aShape (TopoDS_Shape &) –
- anUpward (bool) – default value is false
- aDim (MeshDimension) – default value is MeshDim_3D
- aShapesId (TSetOfInt *) – default value is 0
Return type:
-
Evaluate()¶ - /*! * rief evaluates size of prospective mesh on a shape * param aMesh - the mesh * param aShape - the shape * param aResMap - map for prospective numbers of elements * etval bool - is a success */
Parameters: - aMesh (SMESH_Mesh &) –
- aShape (TopoDS_Shape &) –
- aResMap (MapShapeNbElems &) –
- anUpward (bool) – default value is false
- aShapesId (TSetOfInt *) – default value is 0
Return type:
-
GetAlgo()¶ Parameters: - aMesh (SMESH_Mesh &) –
- aShape (TopoDS_Shape &) –
- assignedTo (TopoDS_Shape *) – default value is 0
Return type: SMESH_Algo *
-
GetAlgoState()¶ Parameters: - aMesh (SMESH_Mesh &) –
- aShape (TopoDS_Shape &) –
- theErrors (std::list< SMESH_Gen::TAlgoStateError> &) –
Return type:
-
static
GetShapeDim(*args) → int¶ Parameters: - aShapeType (TopAbs_ShapeEnum &) –
- aShape (TopoDS_Shape &) –
Return type: Return type:
-
static
IsGlobalHypothesis(*args) → bool¶ Parameters: - theHyp (SMESH_Hypothesis *) –
- aMesh (SMESH_Mesh &) –
Return type:
-
SetBoundaryBoxSegmentation()¶ - /*! * rief Sets number of segments per diagonal of boundary box of geometry by which * default segment length of appropriate 1D hypotheses is defined */
Parameters: theNbSegments (int) – Return type: None
-
thisown¶ The membership flag
-
-
SMESH_Gen_GetShapeDim(*args) → int¶ Parameters: - aShapeType (TopAbs_ShapeEnum &) –
- aShape (TopoDS_Shape &) –
Return type: Return type:
-
SMESH_Gen_IsGlobalHypothesis(*args) → bool¶ Parameters: - theHyp (SMESH_Hypothesis *) –
- aMesh (SMESH_Mesh &) –
Return type:
-
class
SMESH_Group(*args)¶ Bases:
objectParameters: - theID (int) –
- theMesh (SMESH_Mesh *) –
- theType (SMDSAbs_ElementType) –
- theName (char *) –
- theShape (TopoDS_Shape &) – default value is TopoDS_Shape()
Return type: -
GetGroupDS()¶ Return type: SMESHDS_GroupBase *
-
GetName()¶ Return type: char *
-
thisown¶ The membership flag
-
class
SMESH_Hypothesis(*args, **kwargs)¶ Bases:
object-
GetLastParameters()¶ Return type: char *
-
GetLibName()¶ Return type: char *
-
GetParameters()¶ Return type: char *
-
HYP_ALREADY_EXIST= 9¶
-
HYP_BAD_DIM= 10¶
-
HYP_BAD_GEOMETRY= 12¶
-
HYP_BAD_PARAMETER= 3¶
-
HYP_BAD_SUBSHAPE= 11¶
-
HYP_CONCURENT= 2¶
-
HYP_HIDDEN_ALGO= 4¶
-
HYP_HIDING_ALGO= 5¶
-
HYP_INCOMPATIBLE= 7¶
-
HYP_MISSING= 1¶
-
HYP_NEED_SHAPE= 13¶
-
HYP_NOTCONFORM= 8¶
-
HYP_OK= 0¶
-
HYP_UNKNOWN_FATAL= 6¶
-
IsAuxiliary()¶ - /*! * rief Return true if me is an auxiliary hypothesis * etval bool - auxiliary or not * * An auxiliary hypothesis is optional, i.e. an algorithm * can work without it and another hypothesis of the same * dimention can be assigned to the shape */
Return type: bool
-
SetParametersByDefaults()¶ - /*! * rief Initialize my parameter values by default parameters. * etval bool - true if parameter values have been successfully defined */
Parameters: - dflts (SMESH_0D_Algo::TDefaults &) –
- theMesh (SMESH_Mesh *) – default value is 0
Return type:
-
SetParametersByMesh()¶ - /*! * rief Initialize my parameter values by the mesh built on the geometry * param theMesh - the built mesh * param theShape - the geometry of interest * etval bool - true if parameter values have been successfully defined */
Parameters: - theMesh (SMESH_Mesh *) –
- theShape (TopoDS_Shape &) –
Return type:
-
thisown¶ The membership flag
-
-
class
SMESH_Mesh(*args)¶ Bases:
objectParameters: Return type: -
AddGroup()¶ Parameters: - theType (SMDSAbs_ElementType) –
- theName (char *) –
- theId (int &) –
- theShape (TopoDS_Shape &) – default value is TopoDS_Shape()
Return type: SMESH_Group *
-
AddHypothesis()¶ Parameters: - aSubShape (TopoDS_Shape &) –
- anHypId (int) –
Return type: SMESH_Hypothesis::Hypothesis_Status
-
Dump()¶ Parameters: save (ostream &) – Return type: ostream
-
ExportMED()¶ Parameters: Return type:
-
GetAncestorMap()¶ Return type: TopTools_IndexedDataMapOfShapeListOfShape
-
GetAncestors()¶ - /*! * rief Return list of ancestors of theSubShape in the order * that lower dimention shapes come first */
Parameters: theSubShape (TopoDS_Shape &) – Return type: TopTools_ListOfShape
-
GetGen()¶ Return type: SMESH_Gen *
-
GetGroupIds()¶ Return type: std::list<int>
-
GetGroupSubMeshesContaining()¶ -
Parameters: shape (TopoDS_Shape &) – Return type: std::list<SMESH_subMesh *>
-
GetHypotheses()¶ Parameters: Return type:
-
GetHypothesis()¶ Parameters: - aSubShape (TopoDS_Shape &) –
- aFilter (SMESH_HypoFilter &) –
- andAncestors (bool) –
- assignedTo (TopoDS_Shape *) – default value is 0
Return type: SMESH_Hypothesis *
-
GetHypothesisList()¶ Parameters: aSubShape (TopoDS_Shape &) – Return type: std::list< SMESHDS_Hypothesis *>
-
GetMeshDS()¶ Return type: SMESHDS_Mesh *
-
static
GetShapeDiagonalSize()¶ -
Return type: double Parameters: aShape (TopoDS_Shape &) – Return type: double
-
GetShapeToMesh()¶ -
Return type: TopoDS_Shape
-
GetSubMesh()¶ Parameters: aSubShape (TopoDS_Shape &) – Return type: SMESH_subMesh *
-
GetSubMeshContaining()¶ Parameters: - aSubShape (TopoDS_Shape &) –
- aShapeID (int) –
Return type: SMESH_subMesh *
Return type: SMESH_subMesh *
-
GetSubMeshUsingHypothesis()¶ Parameters: anHyp (SMESHDS_Hypothesis *) – Return type: std::list< SMESH_subMesh *>
-
HasDuplicatedGroupNamesMED()¶ - /*! * rief Check group names for duplications. * Consider maximum group name length stored in MED file */
Return type: bool
-
IsUsedHypothesis()¶ -
Parameters: - anHyp (SMESHDS_Hypothesis *) –
- aSubMesh (SMESH_subMesh *) –
Return type:
-
MEDToMesh()¶ -
Parameters: - theFileName (char *) –
- theMeshName (char *) –
Return type:
-
NbQuadrangles()¶ Parameters: order (SMDSAbs_ElementOrder) – default value is ORDER_ANY Return type: int
-
NotifySubMeshesHypothesisModification()¶ -
Parameters: theChangedHyp (SMESH_Hypothesis *) – Return type: None
-
static
PseudoShape()¶ - /*! * rief Return a solid which is returned by GetShapeToMesh() if * a real geometry to be meshed was not set */
Return type: TopoDS_Solid
-
RemoveHypothesis()¶ Parameters: - aSubShape (TopoDS_Shape &) –
- anHypId (int) –
Return type: SMESH_Hypothesis::Hypothesis_Status
-
thisown¶ The membership flag
-
-
class
SMESH_MeshEditor(*args)¶ Bases:
objectParameters: theMesh (SMESH_Mesh *) – Return type: None -
AddElement()¶ -
Parameters: Return type: SMDS_MeshElement *
Parameters: Return type: SMDS_MeshElement *
-
static
AddToSameGroups()¶ Parameters: - elemToAdd (SMDS_MeshElement *) –
- elemInGroups (SMDS_MeshElement *) –
- aMesh (SMESHDS_Mesh *) –
Return type: void
-
BestSplit()¶ - /*! * rief Find better diagonal for splitting. * param theQuad - The face to find better splitting of. * param theCriterion - Is used to choose a diagonal for splitting. * etval int - 1 for 1-3 diagonal, 2 for 2-4, -1 - for errors. */
Parameters: - theQuad (SMDS_MeshElement *) –
- theCriterion (SMESH::Controls::NumericalFunctorPtr) –
Return type:
-
CENTROIDAL= 1¶
-
static
CheckFreeBorderNodes(*args) → bool¶ Parameters: - theNode1 (SMDS_MeshNode *) –
- theNode2 (SMDS_MeshNode *) –
- theNode3 (SMDS_MeshNode *) – default value is 0
Return type:
-
CreateNode()¶ -
Parameters: - x (double) –
- y (double) –
- z (double) –
- tolnode (double) –
- aNodes (SMESH_SequenceOfNode &) –
Return type: SMDS_MeshNode *
-
DeleteDiag()¶ Parameters: - theNode1 (SMDS_MeshNode *) –
- theNode2 (SMDS_MeshNode *) –
Return type:
-
DoubleNodes()¶ Parameters: - theListOfNodes (std::list< int> &) –
- theListOfModifiedElems (std::list< int> &) –
- theElems (TIDSortedElemSet &) –
- theNodesNot (TIDSortedElemSet &) –
- theAffectedElems (TIDSortedElemSet &) –
Return type: Return type:
-
DoubleNodesInRegion()¶ Parameters: - theElems (TIDSortedElemSet &) –
- theNodesNot (TIDSortedElemSet &) –
- theShape (TopoDS_Shape &) –
Return type:
-
EXTRUSION_FLAG_BOUNDARY= 1¶
-
EXTRUSION_FLAG_SEW= 2¶
-
EXTR_BAD_ANGLES_NUMBER= 5¶
-
EXTR_BAD_PATH_SHAPE= 3¶
-
EXTR_BAD_STARTING_NODE= 4¶
-
EXTR_CANT_GET_TANGENT= 6¶
-
EXTR_NO_ELEMENTS= 1¶
-
EXTR_OK= 0¶
-
EXTR_PATH_NOT_EDGE= 2¶
-
ExtrusionAlongTrack()¶ Parameters: - theElements (TIDSortedElemSet &) –
- theTrackPattern (SMESH_Mesh *) –
- theNodeStart (SMDS_MeshNode *) –
- theHasAngles (bool) –
- theAngles (std::list<double> &) –
- theLinearVariation (bool) –
- theHasRefPoint (bool) –
- theRefPoint (gp_Pnt) –
- theMakeGroups (bool) –
- theElements –
- theTrackPattern –
- theNodeStart –
- theHasAngles –
- theAngles –
- theLinearVariation –
- theHasRefPoint –
- theRefPoint –
- theMakeGroups –
Return type: Extrusion_Error
Return type: Extrusion_Error
-
FindCoincidentNodes()¶ Parameters: - theNodes (std::set< SMDS_MeshNode *> &) –
- theTolerance (double) –
- theGroupsOfNodes (TListOfListOfNodes &) –
Return type:
-
FindEqualElements()¶ Parameters: - theElements (std::set< SMDS_MeshElement *> &) –
- theGroupsOfElementsID (TListOfListOfElementsID &) –
Return type:
-
static
FindFaceInSet()¶ Parameters: - n1 (SMDS_MeshNode *) –
- n2 (SMDS_MeshNode *) –
- elemSet (TIDSortedElemSet &) –
- avoidSet (TIDSortedElemSet &) –
Return type: SMDS_MeshElement *
-
static
FindFreeBorder(*args) → bool¶ Parameters: Return type:
-
static
FindMatchingNodes()¶ - /*! * rief Find corresponding nodes in two sets of faces * param theSide1 - first face set * param theSide2 - second first face * param theFirstNode1 - a boundary node of set 1 * param theFirstNode2 - a node of set 2 corresponding to theFirstNode1 * param theSecondNode1 - a boundary node of set 1 linked with theFirstNode1 * param theSecondNode2 - a node of set 2 corresponding to theSecondNode1 * param nReplaceMap - output map of corresponding nodes * etval Sew_Error - is a success or not */
Parameters: Return type: Sew_Error
-
GetElementSearcher()¶ -
Return type: SMESH_ElementSearcher *
-
GetLastCreatedElems()¶ Return type: SMESH_SequenceOfElemPtr
-
GetLastCreatedNodes()¶ Return type: SMESH_SequenceOfElemPtr
-
static
GetLinkedNodes()¶ -
Parameters: - node (SMDS_MeshNode *) –
- linkedNodes (TIDSortedElemSet &) –
- type (SMDSAbs_ElementType) – default value is SMDSAbs_All
Return type: void
-
GetMesh()¶ Return type: SMESH_Mesh *
-
GetMeshDS()¶ Return type: SMESHDS_Mesh *
-
InsertNodesIntoLink()¶ Parameters: Return type:
-
InverseDiag()¶ Parameters: - theTria1 (SMDS_MeshElement *) –
- theTria2 (SMDS_MeshElement *) –
- theNode1 (SMDS_MeshNode *) –
- theNode2 (SMDS_MeshNode *) –
Return type: Return type:
-
static
IsMedium(*args) → bool¶ - /*! * rief Returns true if given node is medium * param n - node to check * param typeToCheck - type of elements containing the node to ask about node status * etval bool - check result */
Parameters: - node (SMDS_MeshNode *) –
- typeToCheck (SMDSAbs_ElementType) – default value is SMDSAbs_All
Return type:
-
LAPLACIAN= 0¶
-
Make2DMeshFrom3D()¶ - /*! * rief Generated skin mesh (containing 2D cells) from 3D mesh * The created 2D mesh elements based on nodes of free faces of boundary volumes * eturn True if operation has been completed successfully, False otherwise */
Return type: bool
-
QuadToTri()¶ - /*! * rief Split quadrangles into triangles. * param theElems - The faces to be splitted. * param theCriterion - Is used to choose a diagonal for splitting. * etval bool - Success or not. */
Parameters: - theElems (TIDSortedElemSet &) –
- theCriterion (SMESH::Controls::NumericalFunctorPtr) –
Return type: - /*! * rief Split quadrangles into triangles. * param theElems - The faces to be splitted. * param the13Diag - Is used to choose a diagonal for splitting. * etval bool - Success or not. */
Parameters: - theElems (TIDSortedElemSet &) –
- the13Diag (bool) –
Return type:
-
static
RemoveElemFromGroups()¶ Parameters: - element (SMDS_MeshElement *) –
- aMesh (SMESHDS_Mesh *) –
Return type: void
-
static
ReplaceElemInGroups()¶ Parameters: - elemToRm (SMDS_MeshElement *) –
- elemToAdd (SMDS_MeshElement *) –
- aMesh (SMESHDS_Mesh *) –
Return type: void
-
SEW_BAD_SIDE1_NODES= 8¶
-
SEW_BAD_SIDE2_NODES= 9¶
-
SEW_BAD_SIDE_NODES= 4¶
-
SEW_BORDER1_NOT_FOUND= 1¶
-
SEW_BORDER2_NOT_FOUND= 2¶
-
SEW_BOTH_BORDERS_NOT_FOUND= 3¶
-
SEW_DIFF_NB_OF_ELEMENTS= 6¶
-
SEW_INTERNAL_ERROR= 10¶
-
SEW_OK= 0¶
-
SEW_TOPO_DIFF_SETS_OF_ELEMENTS= 7¶
-
SEW_VOLUMES_TO_SPLIT= 5¶
-
SewFreeBorder()¶ Parameters: - theBorderFirstNode (SMDS_MeshNode *) –
- theBorderSecondNode (SMDS_MeshNode *) –
- theBorderLastNode (SMDS_MeshNode *) –
- theSide2FirstNode (SMDS_MeshNode *) –
- theSide2SecondNode (SMDS_MeshNode *) –
- theSide2ThirdNode (SMDS_MeshNode *) – default value is 0
- theSide2IsFreeBorder (bool) – default value is true
- toCreatePolygons (bool) – default value is false
- toCreatePolyedrs (bool) – default value is false
Return type: Sew_Error
-
SewSideElements()¶ Parameters: - theSide1 (TIDSortedElemSet &) –
- theSide2 (TIDSortedElemSet &) –
- theFirstNode1ToMerge (SMDS_MeshNode *) –
- theFirstNode2ToMerge (SMDS_MeshNode *) –
- theSecondNode1ToMerge (SMDS_MeshNode *) –
- theSecondNode2ToMerge (SMDS_MeshNode *) –
Return type: Sew_Error
-
SimplifyFace()¶ Parameters: Return type:
-
Smooth()¶ Parameters: Return type:
-
TriToQuad()¶ - /*! * rief Fuse neighbour triangles into quadrangles. * param theElems - The triangles to be fused. * param theCriterion - Is used to choose a neighbour to fuse with. * param theMaxAngle - Is a max angle between element normals at which fusion * is still performed; theMaxAngle is mesured in radians. * etval bool - Success or not. */
Parameters: - theElems (TIDSortedElemSet &) –
- theCriterion (SMESH::Controls::NumericalFunctorPtr) –
- theMaxAngle (double) –
Return type:
-
UpdateVolumes()¶ Parameters: - theBetweenNode1 (SMDS_MeshNode *) –
- theBetweenNode2 (SMDS_MeshNode *) –
- theNodesToInsert (std::list< SMDS_MeshNode *> &) –
Return type:
-
static
isOut(*args) → bool¶ -
Parameters: - element (SMDS_MeshElement *) –
- point (gp_Pnt) –
- tol (double) –
Return type:
-
thisown¶ The membership flag
-
-
SMESH_MeshEditor_AddToSameGroups()¶ Parameters: - elemToAdd (SMDS_MeshElement *) –
- elemInGroups (SMDS_MeshElement *) –
- aMesh (SMESHDS_Mesh *) –
Return type: void
-
SMESH_MeshEditor_CheckFreeBorderNodes(*args) → bool¶ Parameters: - theNode1 (SMDS_MeshNode *) –
- theNode2 (SMDS_MeshNode *) –
- theNode3 (SMDS_MeshNode *) – default value is 0
Return type:
-
SMESH_MeshEditor_FindFaceInSet()¶ Parameters: - n1 (SMDS_MeshNode *) –
- n2 (SMDS_MeshNode *) –
- elemSet (TIDSortedElemSet &) –
- avoidSet (TIDSortedElemSet &) –
Return type: SMDS_MeshElement *
-
SMESH_MeshEditor_FindFreeBorder(*args) → bool¶ Parameters: Return type:
-
SMESH_MeshEditor_FindMatchingNodes()¶ - /*! * rief Find corresponding nodes in two sets of faces * param theSide1 - first face set * param theSide2 - second first face * param theFirstNode1 - a boundary node of set 1 * param theFirstNode2 - a node of set 2 corresponding to theFirstNode1 * param theSecondNode1 - a boundary node of set 1 linked with theFirstNode1 * param theSecondNode2 - a node of set 2 corresponding to theSecondNode1 * param nReplaceMap - output map of corresponding nodes * etval Sew_Error - is a success or not */
Parameters: Return type: Sew_Error
-
SMESH_MeshEditor_GetLinkedNodes()¶ -
Parameters: - node (SMDS_MeshNode *) –
- linkedNodes (TIDSortedElemSet &) –
- type (SMDSAbs_ElementType) – default value is SMDSAbs_All
Return type: void
-
SMESH_MeshEditor_IsMedium(*args) → bool¶ - /*! * rief Returns true if given node is medium * param n - node to check * param typeToCheck - type of elements containing the node to ask about node status * etval bool - check result */
Parameters: - node (SMDS_MeshNode *) –
- typeToCheck (SMDSAbs_ElementType) – default value is SMDSAbs_All
Return type:
-
class
SMESH_MeshEditor_PathPoint(*args)¶ Bases:
objectReturn type: None -
Angle()¶ Return type: double
-
Parameter()¶ Return type: double
-
thisown¶ The membership flag
-
-
SMESH_MeshEditor_RemoveElemFromGroups()¶ Parameters: - element (SMDS_MeshElement *) –
- aMesh (SMESHDS_Mesh *) –
Return type: void
-
SMESH_MeshEditor_ReplaceElemInGroups()¶ Parameters: - elemToRm (SMDS_MeshElement *) –
- elemToAdd (SMDS_MeshElement *) –
- aMesh (SMESHDS_Mesh *) –
Return type: void
-
SMESH_MeshEditor_isOut(*args) → bool¶ -
Parameters: - element (SMDS_MeshElement *) –
- point (gp_Pnt) –
- tol (double) –
Return type:
-
class
SMESH_MeshVSLink(*args)¶ Bases:
OCC.MeshVS.MeshVS_DataSource3D- Constructor
Parameters: aMesh (SMESH_Mesh *) – Return type: None -
DynamicType()¶ Return type: Handle_Standard_Type
-
thisown¶ The membership flag
-
SMESH_Mesh_GetShapeDiagonalSize()¶ -
Return type: double Parameters: aShape (TopoDS_Shape &) – Return type: double
-
SMESH_Mesh_PseudoShape()¶ - /*! * rief Return a solid which is returned by GetShapeToMesh() if * a real geometry to be meshed was not set */
Return type: TopoDS_Solid
-
class
SMESH_MesherHelper(*args)¶ Bases:
objectParameters: theMesh (SMESH_Mesh &) – Return type: None -
AddEdge()¶ -
Parameters: Return type: SMDS_MeshEdge *
-
AddFace()¶ -
Parameters: Return type: SMDS_MeshFace *
Parameters: Return type: SMDS_MeshFace *
-
AddNode()¶ -
Parameters: - x (double) –
- y (double) –
- z (double) –
- ID (int) – default value is 0
Return type: SMDS_MeshNode *
-
AddTLinkNode()¶ -
Parameters: - n1 (SMDS_MeshNode *) –
- n2 (SMDS_MeshNode *) –
- n12 (SMDS_MeshNode *) –
Return type:
-
AddTLinkNodeMap()¶ - /** * Auxilary function for filling myTLinkNodeMap */
Parameters: aMap (TLinkNodeMap &) – Return type: None
-
AddVolume()¶ -
Parameters: Return type: SMDS_MeshVolume *
Parameters: Return type: SMDS_MeshVolume *
Parameters: Return type: SMDS_MeshVolume *
Parameters: Return type: SMDS_MeshVolume *
-
COMP= 2¶
-
CheckNodeUV()¶ - /*! * rief Check and fix node UV on a face * etval bool - false if UV is bad and could not be fixed */
Parameters: - F (TopoDS_Face &) –
- n (SMDS_MeshNode *) –
- uv (gp_XY) –
- tol (double) –
Return type:
-
FixQuadraticElements()¶ - /*! * rief Move medium nodes of faces and volumes to fix distorted elements * param volumeOnly - fix nodes on geom faces or not if the shape is solid */
Parameters: volumeOnly (bool) – default value is true Return type: None
-
GetMediumNode()¶ - /** * Special function for search or creation medium node */
Parameters: - n1 (SMDS_MeshNode *) –
- n2 (SMDS_MeshNode *) –
- force3d (bool) –
Return type: SMDS_MeshNode *
-
GetMesh()¶ Return type: SMESH_Mesh *
-
GetMeshDS()¶ Return type: SMESHDS_Mesh *
-
static
GetMiddleUV()¶ -
Parameters: Return type:
-
GetNodeU()¶ -
Parameters: - theEdge (TopoDS_Edge &) –
- theNode (SMDS_MeshNode *) –
- check (bool *) – default value is 0
Return type: double
-
GetNodeUV()¶ - /*! * rief Return node UV on face * param inFaceNode - a node of element being created located inside a face */
Parameters: - F (TopoDS_Face &) –
- n (SMDS_MeshNode *) –
- inFaceNode (SMDS_MeshNode *) – default value is 0
- check (bool *) – default value is 0
Return type:
-
GetNodeUVneedInFaceNode()¶ - /*! * rief Check if inFaceNode argument is necessary for call GetNodeUV(F,..) * etval bool - return true if the face is periodic * * if F is Null, answer about subshape set through IsQuadraticSubMesh() or * SetSubShape() */
Parameters: F (TopoDS_Face &) – default value is TopoDS_Face() Return type: bool
-
GetOtherParam()¶ -
Parameters: param (double) – Return type: double
-
GetPeriodicIndex()¶ - /*! * rief Return index of periodic parametric direction of a closed face * etval int - 1 for U, 2 for V direction */
Return type: int
-
GetSubShape()¶ -
Return type: TopoDS_Shape
-
static
GetSubShapeByNode()¶ - /*! * rief Return support shape of a node * param node - the node * param meshDS - mesh DS * etval TopoDS_Shape - found support shape */
Parameters: - node (SMDS_MeshNode *) –
- meshDS (SMESHDS_Mesh *) –
Return type:
-
GetSubShapeID()¶ - /*! * rief Return ID of the shape set by IsQuadraticSubMesh() or SetSubShape() * etval int - shape index in SMESHDS */
Return type: int
-
HasSeam()¶ - /*! * rief Check if the shape set through IsQuadraticSubMesh() or SetSubShape() * has a seam edge * etval bool - true if it has */
Return type: bool
-
IsDegenShape()¶ - /*! * rief Check if shape is a degenerated edge or it’s vertex * param subShape - edge or vertex index in SMESHDS * etval bool - true if subShape is a degenerated shape * * It works only if IsQuadraticSubMesh() or SetSubShape() has been called */
Parameters: subShape (int) – Return type: bool
-
static
IsMedium(*args) → bool¶ - /*! * rief Returns true if given node is medium * param n - node to check * param typeToCheck - type of elements containing the node to ask about node status * etval bool - check result */
Parameters: - node (SMDS_MeshNode *) –
- typeToCheck (SMDSAbs_ElementType) – default value is SMDSAbs_All
Return type:
-
IsQuadraticSubMesh()¶ - /*! * Check submesh for given shape: if all elements on this shape are quadratic, * quadratic elements will be created. Also fill myTLinkNodeMap */
Parameters: theShape (TopoDS_Shape &) – Return type: bool
-
IsRealSeam()¶ - /*! * rief Return true if an edge or a vertex encounters twice in face wire * param subShape - Id of edge or vertex */
Parameters: subShape (int) – Return type: bool - /*! * rief Return true if an edge or a vertex encounters twice in face wire * param subShape - edge or vertex */
Parameters: subShape (TopoDS_Shape &) – Return type: bool
-
IsSeamShape()¶ - /*! * rief Check if shape is a seam edge or it’s vertex * param subShape - edge or vertex index in SMESHDS * etval bool - true if subShape is a seam shape * * It works only if IsQuadraticSubMesh() or SetSubShape() has been called. * Seam shape has two 2D alternative represenations on the face */
Parameters: subShape (int) – Return type: bool - /*! * rief Check if shape is a seam edge or it’s vertex * param subShape - edge or vertex * etval bool - true if subShape is a seam shape * * It works only if IsQuadraticSubMesh() or SetSubShape() has been called. * Seam shape has two 2D alternative represenations on the face */
Parameters: subShape (TopoDS_Shape &) – Return type: bool
-
LINEAR= 0¶
-
static
LoadNodeColumns(*args) → bool¶ - /*! * rief Load nodes bound to face into a map of node columns * param theParam2ColumnMap - map of node columns to fill * param theFace - the face on which nodes are searched for * param theBaseEdge - the edge nodes of which are columns’ bases * param theMesh - the mesh containing nodes * etval bool - false if something is wrong * * The key of the map is a normalized parameter of each * base node on theBaseEdge. * This method works in supposition that nodes on the face * forms a rectangular grid and elements can be quardrangles or triangles */
Parameters: - theParam2ColumnMap (TParam2ColumnMap &) –
- theFace (TopoDS_Face &) –
- theBaseEdge (TopoDS_Edge &) –
- theMesh (SMESHDS_Mesh *) –
Return type:
-
static
NbAncestors(*args) → int¶ -
Parameters: - shape (TopoDS_Shape &) –
- mesh (SMESH_Mesh &) –
- ancestorType (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
Return type:
-
QUADRATIC= 1¶
-
SetElementsOnShape()¶ - /*! * rief To set created elements on the shape set by IsQuadraticSubMesh() * or the next methods. By defaul elements are set on the shape if * a mesh has no shape to be meshed */
Parameters: toSet (bool) – Return type: None
-
SetSubShape()¶ -
Parameters: subShapeID (int) – Return type: None - //!==SMESHDS_Mesh::ShapeToIndex(shape)
Parameters: subShape (TopoDS_Shape &) – Return type: None
-
static
WrapIndex(*args) → int¶ - /*! * rief Return a valid node index, fixing the given one if necessary * param ind - node index * param nbNodes - total nb of nodes * etval int - valid node index */
Parameters: Return type:
-
thisown¶ The membership flag
-
-
SMESH_MesherHelper_GetMiddleUV()¶ -
Parameters: Return type:
-
SMESH_MesherHelper_GetSubShapeByNode()¶ - /*! * rief Return support shape of a node * param node - the node * param meshDS - mesh DS * etval TopoDS_Shape - found support shape */
Parameters: - node (SMDS_MeshNode *) –
- meshDS (SMESHDS_Mesh *) –
Return type:
-
SMESH_MesherHelper_IsMedium(*args) → bool¶ - /*! * rief Returns true if given node is medium * param n - node to check * param typeToCheck - type of elements containing the node to ask about node status * etval bool - check result */
Parameters: - node (SMDS_MeshNode *) –
- typeToCheck (SMDSAbs_ElementType) – default value is SMDSAbs_All
Return type:
-
SMESH_MesherHelper_LoadNodeColumns(*args) → bool¶ - /*! * rief Load nodes bound to face into a map of node columns * param theParam2ColumnMap - map of node columns to fill * param theFace - the face on which nodes are searched for * param theBaseEdge - the edge nodes of which are columns’ bases * param theMesh - the mesh containing nodes * etval bool - false if something is wrong * * The key of the map is a normalized parameter of each * base node on theBaseEdge. * This method works in supposition that nodes on the face * forms a rectangular grid and elements can be quardrangles or triangles */
Parameters: - theParam2ColumnMap (TParam2ColumnMap &) –
- theFace (TopoDS_Face &) –
- theBaseEdge (TopoDS_Edge &) –
- theMesh (SMESHDS_Mesh *) –
Return type:
-
SMESH_MesherHelper_NbAncestors(*args) → int¶ -
Parameters: - shape (TopoDS_Shape &) –
- mesh (SMESH_Mesh &) –
- ancestorType (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
Return type:
-
SMESH_MesherHelper_WrapIndex(*args) → int¶ - /*! * rief Return a valid node index, fixing the given one if necessary * param ind - node index * param nbNodes - total nb of nodes * etval int - valid node index */
Parameters: Return type:
-
class
SMESH_Pattern(*args)¶ Bases:
objectReturn type: None -
Apply()¶ Parameters: - theFace (SMDS_MeshFace *) –
- theVertexOnKeyPoint1 (TopoDS_Vertex &) –
- theReverse (bool) –
- theBlock (TopoDS_Shell &) –
- theVertex000 (TopoDS_Vertex &) –
- theVertex001 (TopoDS_Vertex &) –
- theFace –
- theNodeIndexOnKeyPoint1 (int) –
- theReverse –
- theMesh (SMESH_Mesh *) –
- theFace –
- theSurface (TopoDS_Shape &) –
- theNodeIndexOnKeyPoint1 –
- theReverse –
- theMesh –
- theFaces (std::set< SMDS_MeshFace *> &) –
- theNodeIndexOnKeyPoint1 –
- theReverse –
- theVolume (SMDS_MeshVolume *) –
- theNode000Index (int) –
- theNode001Index (int) –
- theVolumes (std::set< SMDS_MeshVolume *> &) –
- theNode000Index –
- theNode001Index –
Return type: Return type: Return type: Return type: Return type: Return type: Return type:
-
ERR_APPLF_BAD_FACE_GEOM= 25¶
-
ERR_APPLF_BAD_TOPOLOGY= 21¶
-
ERR_APPLF_BAD_VERTEX= 22¶
-
ERR_APPLF_INTERNAL_EEROR= 23¶
-
ERR_APPLV_BAD_SHAPE= 24¶
-
ERR_APPL_BAD_DIMENTION= 19¶
-
ERR_APPL_BAD_NB_VERTICES= 20¶
-
ERR_APPL_NOT_COMPUTED= 17¶
-
ERR_APPL_NOT_LOADED= 18¶
-
ERR_LOADF_CANT_PROJECT= 14¶
-
ERR_LOADF_CLOSED_FACE= 13¶
-
ERR_LOADF_NARROW_FACE= 12¶
-
ERR_LOADV_BAD_SHAPE= 15¶
-
ERR_LOADV_COMPUTE_PARAMS= 16¶
-
ERR_LOAD_EMPTY_SUBMESH= 11¶
-
ERR_MAKEM_NOT_COMPUTED= 26¶
-
ERR_OK= 0¶
-
ERR_READ_3D_COORD= 4¶
-
ERR_READ_BAD_INDEX= 6¶
-
ERR_READ_BAD_KEY_POINT= 9¶
-
ERR_READ_ELEM_POINTS= 7¶
-
ERR_READ_NB_POINTS= 1¶
-
ERR_READ_NO_ELEMS= 8¶
-
ERR_READ_NO_KEYPOINT= 5¶
-
ERR_READ_POINT_COORDS= 2¶
-
ERR_READ_TOO_FEW_POINTS= 3¶
-
ERR_SAVE_NOT_LOADED= 10¶
-
GetErrorCode()¶ Return type: SMESH_Pattern::ErrorCode
-
GetKeyPointIDs()¶ Return type: std::list< int>
-
GetSubShape()¶ Parameters: i (int) – Return type: TopoDS_Shape
-
Load()¶ Parameters: - theFileContents (char *) –
- theMesh (SMESH_Mesh *) –
- theFace (TopoDS_Face &) –
- theProject (bool) – default value is false
- theMesh –
- theBlock (TopoDS_Shell &) –
Return type: Return type: Return type:
-
MakeMesh()¶ Parameters: Return type:
-
thisown¶ The membership flag
-
-
class
SMESH_TLink(*args)¶ Bases:
objectParameters: - n1 (SMDS_MeshNode *) –
- n2 (SMDS_MeshNode *) –
- link (NLink &) –
Return type: Return type: -
node1()¶ Return type: SMDS_MeshNode *
-
node2()¶ Return type: SMDS_MeshNode *
-
thisown¶ The membership flag
-
class
SMESH_subMesh(*args)¶ Bases:
objectParameters: - Id (int) –
- father (SMESH_Mesh *) –
- meshDS (SMESHDS_Mesh *) –
- aSubShape (TopoDS_Shape &) –
Return type: -
ADD_ALGO= 1¶
-
ADD_FATHER_ALGO= 5¶
-
ADD_FATHER_HYP= 4¶
-
ADD_HYP= 0¶
-
ALGO_EVENT= 0¶
-
AlgoStateEngine()¶ Parameters: - event (int) –
- anHyp (SMESH_Hypothesis *) –
Return type: SMESH_Hypothesis::Hypothesis_Status
-
CHECK_COMPUTE_STATE= 6¶
-
CLEAN= 2¶
-
COMPUTE= 1¶
-
COMPUTE_EVENT= 1¶
-
COMPUTE_OK= 2¶
-
CheckConcurentHypothesis()¶ Parameters: theHypType (int) – Return type: SMESH_Hypothesis::Hypothesis_Status
-
CreateSubMeshDS()¶ Return type: SMESHDS_SubMesh *
-
DeleteEventListener()¶ - /*! * rief Unregister the listener and delete it and it’s data * param listener - the event listener to delete */
Parameters: listener (EventListener *) – Return type: None
-
FAILED_TO_COMPUTE= 3¶
-
GetComputeError()¶ Return type: SMESH_ComputeErrorPtr
-
GetEventListenerData()¶ - /! * rief Return an event listener data * param listener - the listener whose data is * etval EventListenerData - found data, maybe NULL */
Parameters: listener (EventListener *) – Return type: EventListenerData *
-
GetFather()¶ Return type: SMESH_Mesh *
-
GetFirstToCompute()¶ Return type: SMESH_subMesh *
-
GetSubMeshDS()¶ Return type: SMESHDS_SubMesh *
-
GetSubShape()¶ Return type: TopoDS_Shape
-
HYP_OK= 2¶
-
IsApplicableHypotesis()¶ Parameters: - theHypothesis (SMESH_Hypothesis *) –
- theShapeType (TopAbs_ShapeEnum) –
- theHypothesis –
Return type: Return type:
-
MESH_ENTITY_REMOVED= 5¶
-
MISSING_HYP= 1¶
-
MODIF_ALGO_STATE= 0¶
-
MODIF_HYP= 8¶
-
NOT_READY= 0¶
-
NO_ALGO= 0¶
-
READY_TO_COMPUTE= 1¶
-
REMOVE_ALGO= 3¶
-
REMOVE_FATHER_ALGO= 7¶
-
REMOVE_FATHER_HYP= 6¶
-
REMOVE_HYP= 2¶
-
SUBMESH_COMPUTED= 3¶
-
SUBMESH_RESTORED= 4¶
-
SetEventListener()¶ - /*! * rief Sets an event listener and its data to a submesh * param listener - the listener to store * param data - the listener data to store * param where - the submesh to store the listener and it’s data * * The method remembers the submesh where it puts the listener in order to delete * them when HYP_OK algo_state is lost * After being set, event listener is notified on each event of where submesh. */
Parameters: - listener (EventListener *) –
- data (EventListenerData *) –
- where (SMESH_subMesh *) –
Return type:
-
SetIsAlwaysComputed()¶ - /*! * rief Allow algo->Compute() if a subshape of lower dim is meshed but * none mesh entity is bound to it */
Parameters: isAlCo (bool) – Return type: None
-
SubMeshesAlgoStateEngine()¶ Parameters: - event (int) –
- anHyp (SMESH_Hypothesis *) –
Return type: SMESH_Hypothesis::Hypothesis_Status
-
getDependsOnIterator()¶ -
Parameters: Return type: SMESH_subMeshIteratorPtr
-
thisown¶ The membership flag
-
class
SMESH_subMeshEventListener(*args)¶ Bases:
object- //!< if true, it will be deleted by SMESH_subMesh
Parameters: isDeletable (bool) – Return type: None -
ProcessEvent()¶ - /*! * rief Do something on a certain event * param event - algo_event or compute_event itself (of SMESH_subMesh) * param eventType - ALGO_EVENT or COMPUTE_EVENT (of SMESH_subMesh) * param subMesh - the submesh where the event occures * param data - listener data stored in the subMesh * param hyp - hypothesis, if eventType is algo_event * * The base implementation translates CLEAN event to the subMesh stored * in the listener data. Also it sends SUBMESH_COMPUTED event in case of * successful COMPUTE event. */
Parameters: Return type:
-
thisown¶ The membership flag
-
class
SMESH_subMeshEventListenerData(*args)¶ Bases:
object- //!< generally: submeshes depending
Parameters: isDeletable (bool) – Return type: None -
static
MakeData()¶ - /! * rief Create a default listener data. * param dependentSM - subMesh to store * param type - data type * etval SMESH_subMeshEventListenerData - a new listener data * * See SMESH_subMeshEventListener::ProcessEvent() to know how the default * listener uses it (implementation is in SMESH_subMesh.cxx) */
Parameters: - dependentSM (SMESH_subMesh *) –
- type (int) – default value is 0
Return type: SMESH_subMeshEventListenerData *
-
myIsDeletable¶
-
mySubMeshes¶
-
myType¶
-
thisown¶ The membership flag
-
SMESH_subMeshEventListenerData_MakeData()¶ - /! * rief Create a default listener data. * param dependentSM - subMesh to store * param type - data type * etval SMESH_subMeshEventListenerData - a new listener data * * See SMESH_subMeshEventListener::ProcessEvent() to know how the default * listener uses it (implementation is in SMESH_subMesh.cxx) */
Parameters: - dependentSM (SMESH_subMesh *) –
- type (int) – default value is 0
Return type: SMESH_subMeshEventListenerData *
-
class
SwigPyIterator(*args, **kwargs)¶ Bases:
object-
advance()¶
-
copy()¶
-
decr()¶
-
distance()¶
-
equal()¶
-
incr()¶
-
next()¶
-
previous()¶
-
thisown¶ The membership flag
-
value()¶
-
-
new_instancemethod(func, inst, cls)¶
-
register_handle(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases