# OCC.SMESH module

class `SMESH_ElementSearcher`(*args, **kwargs)

  Bases: `object`

  `FindElementsByPoint`()

    Parameters: | point (gp_Pnt) – type (SMDSAbs_ElementType) – foundElems (std::vector< SMDS_MeshElement *> &) –
    Return type: | None

  `thisown`

    The membership flag

class `SMESH_Exception`(*args)

  Bases: `object`

  Parameters: | text (char *) – fileName (char *) – default value is 0 lineNumber (unsigned int) – default value is 0 ex (SMESH_Exception &) –
  Return type: | None
  Return type: | None

  `thisown`

    The membership flag

  `what`()

    :param : :type : void :rtype: char *

class `SMESH_Gen`(*args)

  Bases: `object`

  Return type: | None

  `CheckAlgoState`()

    Parameters: | aMesh (SMESH_Mesh &) – aShape (TopoDS_Shape &) –
    Return type: | bool

  `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: | bool

  `CreateMesh`()

    Parameters: | theStudyId (int) – theIsEmbeddedMode (bool) –
    Return type: | SMESH_Mesh *

  `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: | bool

  `GetANewId`()

    Return type: | int

  `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: | bool

  `GetBoundaryBoxSegmentation`()

    Return type: | int

  `GetDefaultNbSegments`()

    Return type: | int

  static `GetShapeDim`(*args)

    Parameters: | aShapeType (TopAbs_ShapeEnum &) – aShape (TopoDS_Shape &) –
    Return type: | int
    Return type: | int

  `GetStudyContext`()

    Parameters: | studyId (int) –
    Return type: | StudyContextStruct *

  static `IsGlobalHypothesis`(*args)

    Parameters: | theHyp (SMESH_Hypothesis *) – aMesh (SMESH_Mesh &) –
    Return type: | bool

  `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

  `SetDefaultNbSegments`()
    - /*! * rief Sets default number of segments per edge */

    Parameters: | nb (int) –
    Return type: | None

  `thisown`

    The membership flag

`SMESH_Gen_GetShapeDim`(*args)

  Parameters: | aShapeType (TopAbs_ShapeEnum &) – aShape (TopoDS_Shape &) –
  Return type: | int
  Return type: | int

`SMESH_Gen_IsGlobalHypothesis`(*args)

  Parameters: | theHyp (SMESH_Hypothesis *) – aMesh (SMESH_Mesh &) –
  Return type: | bool

class `SMESH_Group`(*args)

  Bases: `object`

  Parameters: | theID (int) – theMesh (SMESH_Mesh *) – theType (SMDSAbs_ElementType) – theName (char *) – theShape (TopoDS_Shape &) – default value is TopoDS_Shape()
  Return type: | None

  `GetGroupDS`()

    Return type: | SMESHDS_GroupBase *

  `GetName`()

    Return type: | char *

  `SetName`()

    Parameters: | theName (char *) –
    Return type: | None

  `thisown`

    The membership flag

class `SMESH_Hypothesis`(*args, **kwargs)

  Bases: `object`

  `ClearParameters`()

    Return type: | None

  `GetDim`()

    Return type: | int

  `GetLastParameters`()

    Return type: | char *

  `GetLibName`()

    Return type: | char *

  `GetParameters`()

    Return type: | char *

  `GetShapeType`()

    Return type: | int

  `GetStudyId`()

    Return type: | int

  `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

  `NotifySubMeshesHypothesisModification`()

    Return type: | None

  `SetLastParameters`()

    Parameters: | theParameters (char *) –
    Return type: | None

  `SetLibName`()

    Parameters: | theLibName (char *) –
    Return type: | None

  `SetParameters`()

    Parameters: | theParameters (char *) –
    Return type: | None

  `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: | bool

  `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: | bool

  `thisown`

    The membership flag

class `SMESH_Mesh`(*args)

  Bases: `object`

  Parameters: | theLocalId (int) – theStudyId (int) – theGen (SMESH_Gen *) – theIsEmbeddedMode (bool) – theDocument (SMESHDS_Document *) –
  Return type: | None

  `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

  `Clear`()
    - /*! * rief Remove all nodes and elements */

    Return type: | None

  `ClearLog`()

    Return type: | None

  `ClearSubMesh`()
    - /*! * rief Remove all nodes and elements of indicated shape */

    Parameters: | theShapeId (int) –
    Return type: | None

  `ConvertToStandalone`()

    Parameters: | theGroupID (int) –
    Return type: | SMESH_Group *

  `DATToMesh`()

    Parameters: | theFileName (char *) –
    Return type: | int

  `Dump`()

    Parameters: | save (ostream &) –
    Return type: | ostream

  `ExportDAT`()

    Parameters: | file (char *) –
    Return type: | None

  `ExportMED`()

    Parameters: | file (char *) – theMeshName (char *) – default value is NULL theAutoGroups (bool) – default value is true theVersion (int) – default value is 0
    Return type: | None

  `ExportSTL`()

    Parameters: | file (char *) – isascii (bool) –
    Return type: | None

  `ExportUNV`()

    Parameters: | file (char *) –
    Return type: | None

  `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

  `GetAutoColor`()

    Return type: | bool

  `GetElementType`()

    Parameters: | id (int) – iselem (bool) –
    Return type: | SMDSAbs_ElementType

  `GetGen`()

    Return type: | SMESH_Gen *

  `GetGroupIds`()

    Return type: | std::list<int>

  `GetGroupSubMeshesContaining`()
    - /*! * rief Return submeshes of groups containing the given subshape */

    Parameters: | shape (TopoDS_Shape &) –
    Return type: | std::list<SMESH_subMesh *>

  `GetHypotheses`()

    Parameters: | aSubShape (TopoDS_Shape &) – aFilter (SMESH_HypoFilter &) – aHypList (std::list< SMESHDS_Hypothesis *> &) – andAncestors (bool) –
    Return type: | int

  `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 *>

  `GetId`()

    Return type: | int

  `GetLog`()

    Return type: | std::list<SMESHDS_Command *>

  `GetMeshDS`()

    Return type: | SMESHDS_Mesh *

  static `GetShapeDiagonalSize`(*args)
    - /*! * rief Return diagonal size of bounding box of shape to mesh. */

    Return type: | double

    - /*! * rief Return diagonal size of bounding box of a shape. */

    Parameters: | aShape (TopoDS_Shape &) –
    Return type: | double

  `GetShapeToMesh`()
    - /*! * rief Return geometry to be meshed. (It may be a PseudoShape()!) */

    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

  `HasShapeToMesh`()
    - /*! * rief Return true if there is a geometry to be meshed, not PseudoShape() */

    Return type: | bool

  `IsMainShape`()

    Parameters: | theShape (TopoDS_Shape &) –
    Return type: | bool

  `IsNotConformAllowed`()
    - /*! * rief check if a hypothesis alowing notconform mesh is present */

    Return type: | bool

  `IsUsedHypothesis`()
    - /*! * rief Return True if anHyp is used to mesh aSubShape */

    Parameters: | anHyp (SMESHDS_Hypothesis *) – aSubMesh (SMESH_subMesh *) –
    Return type: | bool

  `MEDToMesh`()
    - /*! * consult DriverMED_R_SMESHDS_Mesh::ReadStatus for returned value */

    Parameters: | theFileName (char *) – theMeshName (char *) –
    Return type: | int

  `Nb0DElements`()

    Return type: | int

  `NbEdges`()

    Parameters: | order (SMDSAbs_ElementOrder) – default value is ORDER_ANY
    Return type: | int

  `NbFaces`()

    Parameters: | order (SMDSAbs_ElementOrder) – default value is ORDER_ANY
    Return type: | int

  `NbGroup`()

    Return type: | int

  `NbHexas`()

    Parameters: | order (SMDSAbs_ElementOrder) – default value is ORDER_ANY
    Return type: | int

  `NbNodes`()

    Return type: | int

  `NbPolygons`()

    Return type: | int

  `NbPolyhedrons`()

    Return type: | int

  `NbPrisms`()

    Parameters: | order (SMDSAbs_ElementOrder) – default value is ORDER_ANY
    Return type: | int

  `NbPyramids`()

    Parameters: | order (SMDSAbs_ElementOrder) – default value is ORDER_ANY
    Return type: | int

  `NbQuadrangles`()

    Parameters: | order (SMDSAbs_ElementOrder) – default value is ORDER_ANY
    Return type: | int

  `NbSubMesh`()

    Return type: | int

  `NbTetras`()

    Parameters: | order (SMDSAbs_ElementOrder) – default value is ORDER_ANY
    Return type: | int

  `NbTriangles`()

    Parameters: | order (SMDSAbs_ElementOrder) – default value is ORDER_ANY
    Return type: | int

  `NbVolumes`()

    Parameters: | order (SMDSAbs_ElementOrder) – default value is ORDER_ANY
    Return type: | int

  `NotifySubMeshesHypothesisModification`()
    - /*! * rief Say all submeshes that theChangedHyp has been modified */

    Parameters: | theChangedHyp (SMESH_Hypothesis *) –
    Return type: | None

  static `PseudoShape`(*args)
    - /*! * rief Return a solid which is returned by GetShapeToMesh() if * a real geometry to be meshed was not set */

    Return type: | TopoDS_Solid

  `RemoveGroup`()

    Parameters: | theGroupID (int) –
    Return type: | None

  `RemoveHypothesis`()

    Parameters: | aSubShape (TopoDS_Shape &) – anHypId (int) –
    Return type: | SMESH_Hypothesis::Hypothesis_Status

  `STLToMesh`()

    Parameters: | theFileName (char *) –
    Return type: | int

  `SetAutoColor`()

    Parameters: | theAutoColor (bool) –
    Return type: | None

  `ShapeToMesh`()
    - /*! * rief Set geometry to be meshed */

    Parameters: | aShape (TopoDS_Shape &) –
    Return type: | None

  `UNVToMesh`()

    Parameters: | theFileName (char *) –
    Return type: | int

  `thisown`

    The membership flag

class `SMESH_MeshEditor`(*args)

  Bases: `object`

  Parameters: | theMesh (SMESH_Mesh *) –
  Return type: | None

  `AddElement`()
    - /*! * rief Add element */

    Parameters: | nodes (std::vector< SMDS_MeshNode *> &) – type (SMDSAbs_ElementType) – isPoly (bool) – ID (int) – default value is 0
    Return type: | SMDS_MeshElement *

    - /*! * rief Add element */

    Parameters: | nodeIDs (std::vector<int> &) – type (SMDSAbs_ElementType) – isPoly (bool) – ID (int) – default value is 0
    Return type: | SMDS_MeshElement *

  static `AddToSameGroups`(*args)

    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: | int

  `CENTROIDAL` = 1
  static `CheckFreeBorderNodes`(*args)

    Parameters: | theNode1 (SMDS_MeshNode *) – theNode2 (SMDS_MeshNode *) – theNode3 (SMDS_MeshNode *) – default value is 0
    Return type: | bool

  `ConvertFromQuadratic`()

    Return type: | bool

  `ConvertToQuadratic`()

    Parameters: | theForce3d (bool) –
    Return type: | None

  `CreateNode`()
    - /*! * Create new node in the mesh with given coordinates * (auxilary for advanced extrusion) */

    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: | bool

  `DoubleNodes`()

    Parameters: | theListOfNodes (std::list< int> &) – theListOfModifiedElems (std::list< int> &) – theElems (TIDSortedElemSet &) – theNodesNot (TIDSortedElemSet &) – theAffectedElems (TIDSortedElemSet &) –
    Return type: | bool
    Return type: | bool

  `DoubleNodesInRegion`()

    Parameters: | theElems (TIDSortedElemSet &) – theNodesNot (TIDSortedElemSet &) – theShape (TopoDS_Shape &) –
    Return type: | bool

  `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: | None

  `FindEqualElements`()

    Parameters: | theElements (std::set< SMDS_MeshElement *> &) – theGroupsOfElementsID (TListOfListOfElementsID &) –
    Return type: | None

  static `FindFaceInSet`(*args)

    Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – elemSet (TIDSortedElemSet &) – avoidSet (TIDSortedElemSet &) –
    Return type: | SMDS_MeshElement *

  static `FindFreeBorder`(*args)

    Parameters: | theFirstNode (SMDS_MeshNode *) – theSecondNode (SMDS_MeshNode *) – theLastNode (SMDS_MeshNode *) – theNodes (std::list< SMDS_MeshNode *> &) – theFaces (std::list< SMDS_MeshElement *> &) –
    Return type: | bool

  static `FindMatchingNodes`(*args)
    - /*! * 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: | theSide1 (std::set< SMDS_MeshElement *> &) – theSide2 (std::set< SMDS_MeshElement *> &) – theFirstNode1 (SMDS_MeshNode *) – theFirstNode2 (SMDS_MeshNode *) – theSecondNode1 (SMDS_MeshNode *) – theSecondNode2 (SMDS_MeshNode *) – nReplaceMap (TNodeNodeMap &) –
    Return type: | Sew_Error

  `FindShape`()

    Parameters: | theElem (SMDS_MeshElement *) –
    Return type: | int

  `GetElementSearcher`()
    - /*! * rief Return SMESH_ElementSearcher */

    Return type: | SMESH_ElementSearcher *

  `GetLastCreatedElems`()

    Return type: | SMESH_SequenceOfElemPtr

  `GetLastCreatedNodes`()

    Return type: | SMESH_SequenceOfElemPtr

  static `GetLinkedNodes`(*args)
    - /*! * rief Return nodes linked to the given one in elements of the type */

    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 *

  `GetNodeSearcher`()
    - /*! * rief Return SMESH_NodeSearcher */

    Return type: | SMESH_NodeSearcher *

  `InsertNodesIntoLink`()

    Parameters: | theFace (SMDS_MeshElement *) – theBetweenNode1 (SMDS_MeshNode *) – theBetweenNode2 (SMDS_MeshNode *) – theNodesToInsert (std::list< SMDS_MeshNode *> &) – toCreatePoly (bool) – default value is false
    Return type: | None

  `InverseDiag`()

    Parameters: | theTria1 (SMDS_MeshElement *) – theTria2 (SMDS_MeshElement *) – theNode1 (SMDS_MeshNode *) – theNode2 (SMDS_MeshNode *) –
    Return type: | bool
    Return type: | bool

  static `IsMedium`(*args)
    - /*! * 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: | bool

  `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

  `MergeElements`()

    Parameters: | theGroupsOfElementsID (TListOfListOfElementsID &) –
    Return type: | None

  `MergeEqualElements`()

    Return type: | None

  `MergeNodes`()

    Parameters: | theNodeGroups (TListOfListOfNodes &) –
    Return type: | None

  `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: | bool

    - /*! * 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: | bool

  `Remove`()

    Parameters: | theElemIDs (std::list< int> &) – isNodes (bool) –
    Return type: | bool

  static `RemoveElemFromGroups`(*args)

    Parameters: | element (SMDS_MeshElement *) – aMesh (SMESHDS_Mesh *) –
    Return type: | void

  `Reorient`()

    Parameters: | theElement (SMDS_MeshElement *) –
    Return type: | bool

  static `ReplaceElemInGroups`(*args)

    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: | faceNodes (std::vector< SMDS_MeshNode *>) – poly_nodes (std::vector< SMDS_MeshNode *> &) – quantities (std::vector<int> &) –
    Return type: | int

  `Smooth`()

    Parameters: | theElements (TIDSortedElemSet &) – theFixedNodes (std::set< SMDS_MeshNode *> &) – theSmoothMethod (SmoothMethod) – theNbIterations (int) – theTgtAspectRatio (double) – default value is 1.0 the2D (bool) – default value is true
    Return type: | None

  `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: | bool

  `UpdateVolumes`()

    Parameters: | theBetweenNode1 (SMDS_MeshNode *) – theBetweenNode2 (SMDS_MeshNode *) – theNodesToInsert (std::list< SMDS_MeshNode *> &) –
    Return type: | None

  static `isOut`(*args)
    - /*! * rief Return true if the point is IN or ON of the element */

    Parameters: | element (SMDS_MeshElement *) – point (gp_Pnt) – tol (double) –
    Return type: | bool

  `thisown`

    The membership flag

`SMESH_MeshEditor_AddToSameGroups`(*args)

  Parameters: | elemToAdd (SMDS_MeshElement *) – elemInGroups (SMDS_MeshElement *) – aMesh (SMESHDS_Mesh *) –
  Return type: | void

`SMESH_MeshEditor_CheckFreeBorderNodes`(*args)

  Parameters: | theNode1 (SMDS_MeshNode *) – theNode2 (SMDS_MeshNode *) – theNode3 (SMDS_MeshNode *) – default value is 0
  Return type: | bool

`SMESH_MeshEditor_FindFaceInSet`(*args)

  Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – elemSet (TIDSortedElemSet &) – avoidSet (TIDSortedElemSet &) –
  Return type: | SMDS_MeshElement *

`SMESH_MeshEditor_FindFreeBorder`(*args)

  Parameters: | theFirstNode (SMDS_MeshNode *) – theSecondNode (SMDS_MeshNode *) – theLastNode (SMDS_MeshNode *) – theNodes (std::list< SMDS_MeshNode *> &) – theFaces (std::list< SMDS_MeshElement *> &) –
  Return type: | bool

`SMESH_MeshEditor_FindMatchingNodes`(*args)
  - /*! * 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: | theSide1 (std::set< SMDS_MeshElement *> &) – theSide2 (std::set< SMDS_MeshElement *> &) – theFirstNode1 (SMDS_MeshNode *) – theFirstNode2 (SMDS_MeshNode *) – theSecondNode1 (SMDS_MeshNode *) – theSecondNode2 (SMDS_MeshNode *) – nReplaceMap (TNodeNodeMap &) –
  Return type: | Sew_Error

`SMESH_MeshEditor_GetLinkedNodes`(*args)
  - /*! * rief Return nodes linked to the given one in elements of the type */

  Parameters: | node (SMDS_MeshNode *) – linkedNodes (TIDSortedElemSet &) – type (SMDSAbs_ElementType) – default value is SMDSAbs_All
  Return type: | void

`SMESH_MeshEditor_IsMedium`(*args)
  - /*! * 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: | bool

class `SMESH_MeshEditor_PathPoint`(*args)

  Bases: `object`

  Return type: | None

  `Angle`()

    Return type: | double

  `Parameter`()

    Return type: | double

  `Pnt`()

    Return type: | gp_Pnt

  `SetAngle`()

    Parameters: | aBeta (double &) –
    Return type: | None

  `SetParameter`()

    Parameters: | aPrm (double &) –
    Return type: | None

  `SetPnt`()

    Parameters: | aP3D (gp_Pnt) –
    Return type: | None

  `SetTangent`()

    Parameters: | aTgt (gp_Dir) –
    Return type: | None

  `Tangent`()

    Return type: | gp_Dir

  `thisown`

    The membership flag

`SMESH_MeshEditor_RemoveElemFromGroups`(*args)

  Parameters: | element (SMDS_MeshElement *) – aMesh (SMESHDS_Mesh *) –
  Return type: | void

`SMESH_MeshEditor_ReplaceElemInGroups`(*args)

  Parameters: | elemToRm (SMDS_MeshElement *) – elemToAdd (SMDS_MeshElement *) – aMesh (SMESHDS_Mesh *) –
  Return type: | void

`SMESH_MeshEditor_isOut`(*args)
  - /*! * rief Return true if the point is IN or ON of the element */

  Parameters: | element (SMDS_MeshElement *) – point (gp_Pnt) – tol (double) –
  Return type: | bool

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`(*args)
  - /*! * rief Return diagonal size of bounding box of shape to mesh. */

  Return type: | double

  - /*! * rief Return diagonal size of bounding box of a shape. */

  Parameters: | aShape (TopoDS_Shape &) –
  Return type: | double

`SMESH_Mesh_PseudoShape`(*args)
  - /*! * 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: `object`

  Parameters: | theMesh (SMESH_Mesh &) –
  Return type: | None

  `AddEdge`()
    - /*! * Creates quadratic or linear edge */

    Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – id (int) – default value is 0 force3d (bool) – default value is true
    Return type: | SMDS_MeshEdge *

  `AddFace`()
    - /*! * Creates quadratic or linear triangle */

    Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – n3 (SMDS_MeshNode *) – id (int) – default value is 0 force3d (bool) – default value is false
    Return type: | SMDS_MeshFace *

    - /*! * Creates quadratic or linear quadrangle */

    Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – n3 (SMDS_MeshNode *) – n4 (SMDS_MeshNode *) – id (int) – default value is 0 force3d (bool) – default value is false
    Return type: | SMDS_MeshFace *

  `AddNode`()
    - /*! * Creates a node */

    Parameters: | x (double) – y (double) – z (double) – ID (int) – default value is 0
    Return type: | SMDS_MeshNode *

  `AddTLinkNode`()
    - /*! * Auxilary function for filling myTLinkNodeMap */

    Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – n12 (SMDS_MeshNode *) –
    Return type: | None

  `AddTLinkNodeMap`()
    - /** * Auxilary function for filling myTLinkNodeMap */

    Parameters: | aMap (TLinkNodeMap &) –
    Return type: | None

  `AddVolume`()
    - /*! * Creates quadratic or linear tetraahedron */

    Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – n3 (SMDS_MeshNode *) – n4 (SMDS_MeshNode *) – id (int) – default value is 0 force3d (bool) – default value is true
    Return type: | SMDS_MeshVolume *

    - /*! * Creates quadratic or linear pyramid */

    Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – n3 (SMDS_MeshNode *) – n4 (SMDS_MeshNode *) – n5 (SMDS_MeshNode *) – id (int) – default value is 0 force3d (bool) – default value is true
    Return type: | SMDS_MeshVolume *

    - /*! * Creates quadratic or linear pentahedron */

    Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – n3 (SMDS_MeshNode *) – n4 (SMDS_MeshNode *) – n5 (SMDS_MeshNode *) – n6 (SMDS_MeshNode *) – id (int) – default value is 0 force3d (bool) – default value is true
    Return type: | SMDS_MeshVolume *

    - /*! * Creates quadratic or linear hexahedron */

    Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – n3 (SMDS_MeshNode *) – n4 (SMDS_MeshNode *) – n5 (SMDS_MeshNode *) – n6 (SMDS_MeshNode *) – n7 (SMDS_MeshNode *) – n8 (SMDS_MeshNode *) – id (int) – default value is 0 force3d (bool) – default value is true
    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: | bool

  `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

  `GetIsQuadratic`()
    - /*! * rief Return myCreateQuadratic flag */

    Return type: | bool

  `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`(*args)
    - /*! * rief Return middle UV taking in account surface period */

    Parameters: | surface (Handle_Geom_Surface &) – uv1 (gp_XY) – uv2 (gp_XY) –
    Return type: | gp_XY

  `GetNodeU`()
    - /*! * rief Return U of the given node on the edge */

    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: | gp_XY

  `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`()
    - /*! * rief Return an alternative parameter for a node on seam */

    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`()
    - /*! * rief Return the shape set by IsQuadraticSubMesh() or SetSubShape() */

    Return type: | TopoDS_Shape

  static `GetSubShapeByNode`(*args)
    - /*! * 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: | TopoDS_Shape

  `GetSubShapeID`()
    - /*! * rief Return ID of the shape set by IsQuadraticSubMesh() or SetSubShape() * etval int - shape index in SMESHDS */

    Return type: | int

  `GetTLinkNodeMap`()
    - /** * Returns myTLinkNodeMap */

    Return type: | TLinkNodeMap

  `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)
    - /*! * 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: | bool

  `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)
    - /*! * 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: | bool

  static `NbAncestors`(*args)
    - /*! * rief Return number of unique ancestors of the shape */

    Parameters: | shape (TopoDS_Shape &) – mesh (SMESH_Mesh &) – ancestorType (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
    Return type: | int

  `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

  `SetIsQuadratic`()
    - /*! * rief Set order of elements to create without calling IsQuadraticSubMesh() */

    Parameters: | theBuildQuadratic (bool) –
    Return type: | None

  `SetSubShape`()
    - /*! * rief Set shape to make elements on without calling IsQuadraticSubMesh() */

    Parameters: | subShapeID (int) –
    Return type: | None

    - //!==SMESHDS_Mesh::ShapeToIndex(shape)

    Parameters: | subShape (TopoDS_Shape &) –
    Return type: | None

  static `WrapIndex`(*args)
    - /*! * 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: | ind (int) – nbNodes (int) –
    Return type: | int

  `thisown`

    The membership flag

`SMESH_MesherHelper_GetMiddleUV`(*args)
  - /*! * rief Return middle UV taking in account surface period */

  Parameters: | surface (Handle_Geom_Surface &) – uv1 (gp_XY) – uv2 (gp_XY) –
  Return type: | gp_XY

`SMESH_MesherHelper_GetSubShapeByNode`(*args)
  - /*! * 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: | TopoDS_Shape

`SMESH_MesherHelper_IsMedium`(*args)
  - /*! * 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: | bool

`SMESH_MesherHelper_LoadNodeColumns`(*args)
  - /*! * 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: | bool

`SMESH_MesherHelper_NbAncestors`(*args)
  - /*! * rief Return number of unique ancestors of the shape */

  Parameters: | shape (TopoDS_Shape &) – mesh (SMESH_Mesh &) – ancestorType (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
  Return type: | int

`SMESH_MesherHelper_WrapIndex`(*args)
  - /*! * 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: | ind (int) – nbNodes (int) –
  Return type: | int

class `SMESH_NodeSearcher`(*args, **kwargs)

  Bases: `object`

  `FindClosestTo`()

    Parameters: | pnt (gp_Pnt) –
    Return type: | SMDS_MeshNode *

  `MoveNode`()

    Parameters: | node (SMDS_MeshNode *) – toPnt (gp_Pnt) –
    Return type: | None

  `thisown`

    The membership flag

class `SMESH_Pattern`(*args)

  Bases: `object`

  Return 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: | bool
    Return type: | bool
    Return type: | bool
    Return type: | bool
    Return type: | bool
    Return type: | bool
    Return type: | bool

  `Clear`()

    Return type: | None

  `DumpPoints`()

    Return type: | None

  `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
  `GetElementPointIDs`()

    Parameters: | applied (bool) –
    Return type: | std::list< std::list< int> >

  `GetErrorCode`()

    Return type: | SMESH_Pattern::ErrorCode

  `GetKeyPointIDs`()

    Return type: | std::list< int>

  `GetMappedPoints`()

    Parameters: | thePoints (std::list< gp_XYZ *>) –
    Return type: | bool

  `GetPoints`()

    Parameters: | thePoints (std::list< gp_XYZ *>) –
    Return type: | bool

  `GetSubShape`()

    Parameters: | i (int) –
    Return type: | TopoDS_Shape

  `Is2D`()

    Return type: | bool

  `IsLoaded`()

    Return type: | bool

  `Load`()

    Parameters: | theFileContents (char *) – theMesh (SMESH_Mesh *) – theFace (TopoDS_Face &) – theProject (bool) – default value is false theMesh – theBlock (TopoDS_Shell &) –
    Return type: | bool
    Return type: | bool
    Return type: | bool

  `MakeMesh`()

    Parameters: | theMesh (SMESH_Mesh *) – toCreatePolygons (bool) – default value is false toCreatePolyedrs (bool) – default value is false
    Return type: | bool

  `Save`()

    Parameters: | theFile (std::ostream &) –
    Return type: | bool

  `thisown`

    The membership flag

class `SMESH_TLink`(*args)

  Bases: `object`

  Parameters: | n1 (SMDS_MeshNode *) – n2 (SMDS_MeshNode *) – link (NLink &) –
  Return type: | None
  Return type: | None

  `node1`()

    Return type: | SMDS_MeshNode *

  `node2`()

    Return type: | SMDS_MeshNode *

  `thisown`

    The membership flag

class `SMESH_subMesh`(*args)

  Bases: `object`

  Parameters: | Id (int) – father (SMESH_Mesh *) – meshDS (SMESHDS_Mesh *) – aSubShape (TopoDS_Shape &) –
  Return type: | None

  `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
  `CanAddHypothesis`()

    Parameters: | theHypothesis (SMESH_Hypothesis *) –
    Return type: | bool

  `CheckConcurentHypothesis`()

    Parameters: | theHypType (int) –
    Return type: | SMESH_Hypothesis::Hypothesis_Status

  `ComputeStateEngine`()

    Parameters: | event (int) –
    Return type: | bool

  `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

  `DependsOn`()

    Return type: | std::map< int, SMESH_subMesh *>

  `DumpAlgoState`()

    Parameters: | isMain (bool) –
    Return type: | None

  `Evaluate`()

    Parameters: | aResMap (MapShapeNbElems &) –
    Return type: | bool

  `FAILED_TO_COMPUTE` = 3
  `GetAlgoState`()

    Return type: | int

  `GetComputeError`()

    Return type: | SMESH_ComputeErrorPtr

  `GetComputeState`()

    Return type: | int

  `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 *

  `GetId`()

    Return type: | int

  `GetSubMeshDS`()

    Return type: | SMESHDS_SubMesh *

  `GetSubShape`()

    Return type: | TopoDS_Shape

  `HYP_OK` = 2
  `IsAlwaysComputed`()

    Return type: | bool

  `IsApplicableHypotesis`()

    Parameters: | theHypothesis (SMESH_Hypothesis *) – theShapeType (TopAbs_ShapeEnum) – theHypothesis –
    Return type: | bool
    Return type: | bool

  `IsConform`()

    Parameters: | theAlgo (SMESH_Algo *) –
    Return type: | bool

  `IsEmpty`()
    - /*! * rief Return true if no mesh entities is bound to the submesh */

    Return type: | bool

  `IsMeshComputed`()

    Return type: | bool

  `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: | None

  `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`()
    - /*! * rief Return iterator on the submeshes this one depends on */

    Parameters: | includeSelf (bool) – complexShapeFirst (bool) –
    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

  `IsDeletable`()

    Return type: | bool

  `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: | event (int) – eventType (int) – subMesh (SMESH_subMesh *) – data (SMESH_subMeshEventListenerData *) – hyp (SMESH_Hypothesis *) – default value is 0
    Return type: | None

  `thisown`

    The membership flag

class `SMESH_subMeshEventListenerData`(*args)

  Bases: `object`

  - //!< generally: submeshes depending

  Parameters: | isDeletable (bool) –
  Return type: | None

  `IsDeletable`()

    Return type: | bool

  static `MakeData`(*args)
    - /! * 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`(*args)
  - /! * 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`()

`register_handle`(handle, base_object)

  Inserts the handle into the base object to prevent memory corruption in certain cases