OCC.StdMeshers module

No docstring provided.

class StdMeshers_Arithmetic1D(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetLength()
Parameters:isStartLength (bool) –
Return type:double
GetObjectEntry()
Return type:char *
GetReversedEdges()
Return type:std::vector<int>
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetLength()
Parameters:
  • length (double) –
  • isStartLength (bool) –
Return type:

None

SetObjectEntry()
Parameters:entry (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 start and end length 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

SetReversedEdges()
Parameters:ids (std::vector<int> &) –
Return type:None
thisown

The membership flag

class StdMeshers_AutomaticLength(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetFineness()
  • /*! * rief Return mesh Fineness * etval double - Fineness value [0.0-1.0] */
Return type:double
GetLength()
  • /*! * rief Computes segment for a given edge */
Parameters:
  • aMesh (SMESH_Mesh *) –
  • anEdge (TopoDS_Shape &) –
Return type:

double

  • /*! * rief Computes segment length for an edge of given length */
Parameters:
  • aMesh (SMESH_Mesh *) –
  • edgeLength (double) –
Return type:

double

LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetFineness()
  • /*! * rief Set Fineness * param theFineness - The Fineness value [0.0-1.0], * 0 - coarse mesh * 1 - fine mesh * * Raise if theFineness is out of range * The ‘Initial Number of Elements on the Shortest Edge’ (S0) * is divided by (0.5 + 4.5 x theFineness) */
Parameters:theFineness (double) –
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 Fineness 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 StdMeshers_CompositeHexa_3D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_Deflection1D(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetDeflection()
Return type:double
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetDeflection()
Parameters:value (double) –
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 deflection value 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 StdMeshers_FaceSide(*args)

Bases: object

  • /*! * rief Wrap one edge */
Parameters:
  • theFace (TopoDS_Face &) –
  • theEdge (TopoDS_Edge &) –
  • theMesh (SMESH_Mesh *) –
  • theIsForward (bool) –
  • theIgnoreMediumNodes (bool) –
Return type:

None

  • /*! * rief Wrap several edges. Edges must be properly ordered and oriented. */
Parameters:
  • theFace (TopoDS_Face &) –
  • theEdges (std::list<TopoDS_Edge> &) –
  • theMesh (SMESH_Mesh *) –
  • theIsForward (bool) –
  • theIgnoreMediumNodes (bool) –
Return type:

None

  • /*! * rief Wrap for vertex using data from other FaceSide */
Parameters:
  • theNode (SMDS_MeshNode *) –
  • thePnt2d (gp_Pnt2d) –
  • theSide (StdMeshers_FaceSide *) –
Return type:

None

Edge()
  • /*! * rief Return i-th wrapped edge (count starts from zero) */
Parameters:i (int) –
Return type:TopoDS_Edge
EdgeIndex()
  • /*! * rief Return edge index corresponding to normalized parameter */
Parameters:U (double) –
Return type:inline int
FirstParameter()
  • /*! * rief Return first normalized parameter of the i-the edge (count starts from zero) */
Parameters:i (int) –
Return type:inline double
FirstVertex()
  • /*! * rief Return 1st vertex of the i-the edge (count starts from zero) */
Parameters:i (int) – default value is 0
Return type:inline TopoDS_Vertex
GetCurve2d()
  • /*! * rief Creates a Adaptor2d_Curve2d to be used in SMESH_Block */
Return type:Adaptor2d_Curve2d *
GetCurve3d()
  • /*! * rief Creates a fully functional Adaptor_Curve */
Return type:BRepAdaptor_CompCurve *
static GetFaceWires()
  • /*! * rief Return wires of a face as StdMeshers_FaceSide’s */
Parameters:
  • theFace (TopoDS_Face &) –
  • theMesh (SMESH_Mesh &) –
  • theIgnoreMediumNodes (bool) –
  • theError (TError &) –
Return type:

TSideVector

GetMesh()
  • /*! * rief Return mesh */
Return type:SMESH_Mesh *
GetUVPtStruct()
  • /*! * rief Return detailed data on nodes * param isXConst - true if normalized parameter X is constant * param constValue - constant parameter value * * Missing nodes are allowed only on internal vertices */
Parameters:
  • isXConst (bool) – default value is 0
  • constValue (double) – default value is 0
Return type:

std::vector<UVPtStruct>

LastParameter()
  • /*! * rief Return ast normalized parameter of the i-the edge (count starts from zero) */
Parameters:i (int) –
Return type:inline double
LastVertex()
  • /*! * rief Return last vertex of the i-the edge (count starts from zero) */
Parameters:i (int) – default value is -1
Return type:inline TopoDS_Vertex
Length()
  • /*! * rief Return side length */
Return type:double
MissVertexNode()
  • /*! * rief Return true if there vertices without nodes */
Return type:bool
NbEdges()
  • /*! * rief Return nb of wrapped edges */
Return type:int
NbPoints()
  • /*! * rief Return nb nodes on edges and vertices (+1 to be == GetUVPtStruct().size() ) */
Return type:int
NbSegments()
  • /*! * rief Return nb edges */
Return type:int
Parameter()
  • /*! * rief Return edge and parameter on edge by normalized parameter */
Parameters:
  • U (double) –
  • edge (TopoDS_Edge &) –
Return type:

inline double

Reverse()
  • /*! * rief Change orientation of side geometry */
Return type:None
SimulateUVPtStruct()
  • /*! * rief Simulates detailed data on nodes * param isXConst - true if normalized parameter X is constant * param constValue - constant parameter value */
Parameters:
  • nbSeg (int) –
  • isXConst (bool) – default value is 0
  • constValue (double) – default value is 0
Return type:

std::vector<UVPtStruct>

Value2d()
  • /*! * rief Return UV by normalized parameter */
Parameters:U (double) –
Return type:gp_Pnt2d
dump()
Parameters:msg (char *) – default value is 0
Return type:None
thisown

The membership flag

StdMeshers_FaceSide_GetFaceWires()
  • /*! * rief Return wires of a face as StdMeshers_FaceSide’s */
Parameters:
  • theFace (TopoDS_Face &) –
  • theMesh (SMESH_Mesh &) –
  • theIgnoreMediumNodes (bool) –
  • theError (TError &) –
Return type:

TSideVector

class StdMeshers_FixedPoints1D(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetNbSegments()
Return type:std::vector<int>
GetObjectEntry()
Return type:char *
GetPoints()
Return type:std::vector<double>
GetReversedEdges()
Return type:std::vector<int>
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetNbSegments()
Parameters:listNbSeg (std::vector<int> &) –
Return type:None
SetObjectEntry()
Parameters:entry (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 start and end length 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

SetPoints()
Parameters:listParams (std::vector<double> &) –
Return type:None
SetReversedEdges()
Parameters:ids (std::vector<int> &) –
Return type:None
thisown

The membership flag

class StdMeshers_Hexa_3D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

static OppositeVertex()
Parameters:
  • aVertex (TopoDS_Vertex &) –
  • aQuads0Vertices (TopTools_IndexedMapOfShape &) –
  • aQuads (FaceQuadStruct *) –
Return type:

TopoDS_Vertex

thisown

The membership flag

StdMeshers_Hexa_3D_OppositeVertex()
Parameters:
  • aVertex (TopoDS_Vertex &) –
  • aQuads0Vertices (TopTools_IndexedMapOfShape &) –
  • aQuads (FaceQuadStruct *) –
Return type:

TopoDS_Vertex

class StdMeshers_LayerDistribution(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetLayerDistribution()
  • /*! * rief Returns 1D hypothesis specifying distribution of layers * etval SMESH::SMESH_Hypothesis_ptr - 1D hypothesis */
Return type:SMESH_Hypothesis *
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetLayerDistribution()
  • /*! * rief Sets 1D hypothesis specifying distribution of layers * param hyp1D - 1D hypothesis */
Parameters:hyp1D (SMESH_Hypothesis *) –
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 parameters 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 * * Implementation does noting */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_LayerDistribution2D(*args)

Bases: OCC.StdMeshers.StdMeshers_LayerDistribution

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

thisown

The membership flag

class StdMeshers_LengthFromEdges(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetMode()
Return type:int
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetMode()
Parameters:mode (int) –
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 * * Just return false as this hypothesis does not have parameters values */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_LocalLength(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetLength()
Return type:double
GetPrecision()
Return type:double
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetLength()
Parameters:length (double) –
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 segment length 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

SetPrecision()
Parameters:precision (double) –
Return type:None
thisown

The membership flag

class StdMeshers_MEFISTO_2D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

ComputeScaleOnFace()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aFace (TopoDS_Face &) –
  • scalex (double &) –
  • scaley (double &) –
Return type:

None

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

LoadPoints()
Parameters:
  • wires (StdMeshers_MEFISTO_2D::TWireVector &) –
  • uvslf (R2 *) –
  • mefistoToDS (std::vector< SMDS_MeshNode *> &) –
  • scalex (double) –
  • scaley (double) –
Return type:

bool

StoreResult()
Parameters:
  • nbst (Z) –
  • uvst (R2 *) –
  • nbt (Z) –
  • nust (Z *) –
  • mefistoToDS (std::vector< SMDS_MeshNode *> &) –
  • scalex (double) –
  • scaley (double) –
Return type:

None

thisown

The membership flag

class StdMeshers_MaxElementArea(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetMaxArea()
Return type:double
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetMaxArea()
Parameters:maxArea (double) –
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 maximal area 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 StdMeshers_MaxElementVolume(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetMaxVolume()
Return type:double
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetMaxVolume()
Parameters:maxVolume (double) –
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 maximal volume 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 StdMeshers_MaxLength(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetLength()
Return type:double
GetPreestimatedLength()
Return type:double
GetUsePreestimatedLength()
Return type:bool
HavePreestimatedLength()
Return type:bool
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetLength()
Parameters:length (double) –
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 segment length 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

SetPreestimatedLength()
Parameters:length (double) –
Return type:None
SetUsePreestimatedLength()
Parameters:toUse (bool) –
Return type:None
thisown

The membership flag

class StdMeshers_NotConformAllowed(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
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 * * Just return false as this hypothesis does not have parameters values */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_NumberOfLayers(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetNumberOfLayers()
Return type:int
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetNumberOfLayers()
Parameters:numberOfLayers (int) –
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 parameters 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 * * Implementation does noting */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_NumberOfLayers2D(*args)

Bases: OCC.StdMeshers.StdMeshers_NumberOfLayers

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

thisown

The membership flag

class StdMeshers_NumberOfSegments(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

BuildDistributionExpr()

:param : :type : char * :param : :type : int :param : :type : int :rtype: std::vector<double>

BuildDistributionTab()
Parameters:& (std::vector<double>) –

:param : :type : int :param : :type : int :rtype: std::vector<double>

ConversionMode()
  • /*! * rief Returns conversion mode * * Throws SALOME_Exception if distribution type is not functional */
Return type:int
DT_ExprFunc = 3
DT_Regular = 0
DT_Scale = 1
DT_TabFunc = 2
GetDistrType()
  • /*! * rief Get distribution type */
Return type:StdMeshers_NumberOfSegments::DistrType
GetExpressionFunction()
  • /*! * rief Get expression function for distribution DT_ExprFunc * * Throws SALOME_Exception if distribution type is not DT_ExprFunc */
Return type:char *
GetNumberOfSegments()
  • /*! * rief Get the number of segments */
Return type:int
GetObjectEntry()
Return type:char *
GetReversedEdges()
Return type:std::vector<int>
GetScaleFactor()
  • /*! * rief Get scale factor for scale distribution * * Throws SALOME_Exception if distribution type is not DT_Scale */
Return type:double
GetTableFunction()
  • /*! * rief Get table function for distribution DT_TabFunc * * Throws SALOME_Exception if distribution type is not DT_TabFunc */
Return type:std::vector<double>
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetConversionMode()
  • /*! * rief Set conversion mode. When it is 0, it means ‘exponent mode’: * the function of distribution of density is used as an exponent of 10, i,e, 10^f(t). * When it is 1, it means ‘cut negative mode’. The function of distribution is used as * F(t), where F(t0)=f(t0), if f(t0)>=0, otherwise F(t0) = 0. * This mode is sensible only when function distribution is used (DT_TabFunc or DT_ExprFunc) * * Throws SALOME_Exception if distribution type is not functional */
Parameters:conv (int) –
Return type:None
SetDistrType()
  • /*! * rief Set distribution type */
Parameters:typ (StdMeshers_NumberOfSegments::DistrType) –
Return type:None
SetExpressionFunction()
  • /*! * rief Set expression function for distribution DT_ExprFunc * param expr - string containing the expression of the function * f(t), e.g. ‘sin(t)’ * * Throws SALOME_Exception if distribution type is not DT_ExprFunc */
Parameters:expr (char *) –
Return type:None
SetNumberOfSegments()
  • /*! * rief Set the number of segments * param segmentsNumber - must be greater than zero */
Parameters:segmentsNumber (int) –
Return type:None
SetObjectEntry()
Parameters:entry (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 number of segments 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

SetReversedEdges()
Parameters:ids (std::vector<int> &) –
Return type:None
SetScaleFactor()
  • /*! * rief Set scale factor for scale distribution * param scaleFactor - positive value different from 1 * * Throws SALOME_Exception if distribution type is not DT_Scale, * or scaleFactor is not a positive value different from 1 */
Parameters:scaleFactor (double) –
Return type:None
SetTableFunction()
  • /*! * rief Set table function for distribution DT_TabFunc * param table - this vector contains the pairs (parameter, value) * following each by other, so the number of elements in the vector * must be even. The parameters must be in range [0,1] and sorted in * increase order. The values of function must be positive. * * Throws SALOME_Exception if distribution type is not DT_TabFunc */
Parameters:table (std::vector<double> &) –
Return type:None
thisown

The membership flag

class StdMeshers_PrismAsBlock(*args)

Bases: object

  • /*! * rief Constructor. Initialization is needed */
Return type:None
GetError()
  • /*! * rief Return problem description */
Return type:SMESH_ComputeErrorPtr
GetNodeColumn()
  • /! * rief Return pointer to column of nodes * param node - bottom node from which the returned column goes up * etval const TNodeColumn - the found column */
Parameters:node (SMDS_MeshNode *) –
Return type:TNodeColumn *
GetParam2ColumnMap()
  • /*! * rief Return TParam2ColumnMap for a base edge * param baseEdgeID - base edge SMESHDS Index * param isReverse - columns in-block orientation * etval const TParam2ColumnMap& - map */
Parameters:
  • baseEdgeID (int) –
  • isReverse (bool &) –
Return type:

TParam2ColumnMap

static GetWallFaces(*args) → bool
  • /*! * rief Find wall faces by bottom edges * param mesh - the mesh * param mainShape - the prism * param bottomFace - the bottom face * param bottomEdges - edges bounding the bottom face * param wallFaces - faces list to fill in */
Parameters:
  • mesh (SMESH_Mesh *) –
  • mainShape (TopoDS_Shape &) –
  • bottomFace (TopoDS_Shape &) –
  • bottomEdges (std::list< TopoDS_Edge> &) –
  • wallFaces (std::list< TopoDS_Face> &) –
Return type:

bool

HasNotQuadElemOnTop()
Return type:bool
Init()
  • /*! * rief Initialization. * param helper - helper loaded with mesh and 3D shape * param shape3D - a closed shell or solid * etval bool - false if a mesh or a shape are KO * * Analyse shape geometry and mesh. * If there are triangles on one of faces, it becomes ‘bottom’ */
Parameters:
  • helper (SMESH_MesherHelper *) –
  • shape3D (TopoDS_Shape &) –
Return type:

bool

static IsForwardEdge(*args) → bool
  • /*! * rief Check curve orientation of a bootom edge * param meshDS - mesh DS * param columnsMap - node columns map of side face * param bottomEdge - the bootom edge * param sideFaceID - side face in-block ID * etval bool - true if orienation coinside with in-block froward orienation */
Parameters:
  • meshDS (SMESHDS_Mesh *) –
  • columnsMap (TParam2ColumnMap &) –
  • bottomEdge (TopoDS_Edge &) –
  • sideFaceID (int) –
Return type:

bool

Mesh()
  • /*! * rief Return pointer to mesh * etval SMESH_Mesh - mesh */
Return type:SMESH_Mesh *
MeshDS()
  • /*! * rief Return pointer to mesh DS * etval SMESHDS_Mesh - mesh DS */
Return type:SMESHDS_Mesh *
Shape()
  • /! * rief Return a in-block shape * param shapeID - shape given by in-block index * etval SMESHDS_SubMesh - found submesh */
Parameters:shapeID (int) –
Return type:TopoDS_Shape
ShapeID()
  • /*! * rief Return in-block ID of a shape * param shape - block subshape * etval int - ID or zero if the shape has no ID */
Parameters:shape (TopoDS_Shape &) –
Return type:int
SubMesh()
  • /! * rief Return submesh of a shape * param shapeID - shape given by in-block index * etval SMESH_subMesh - found submesh */
Parameters:shapeID (int) –
Return type:SMESH_subMesh *
SubMeshDS()
  • /! * rief Return submesh DS of a shape * param shapeID - shape given by in-block index * etval SMESHDS_SubMesh - found submesh DS */
Parameters:shapeID (int) –
Return type:SMESHDS_SubMesh *
VerticalSize()
  • /*! * rief Return number of nodes on every vertical edge * etval int - number of nodes including end nodes */
Return type:int
thisown

The membership flag

StdMeshers_PrismAsBlock_GetWallFaces(*args) → bool
  • /*! * rief Find wall faces by bottom edges * param mesh - the mesh * param mainShape - the prism * param bottomFace - the bottom face * param bottomEdges - edges bounding the bottom face * param wallFaces - faces list to fill in */
Parameters:
  • mesh (SMESH_Mesh *) –
  • mainShape (TopoDS_Shape &) –
  • bottomFace (TopoDS_Shape &) –
  • bottomEdges (std::list< TopoDS_Edge> &) –
  • wallFaces (std::list< TopoDS_Face> &) –
Return type:

bool

StdMeshers_PrismAsBlock_IsForwardEdge(*args) → bool
  • /*! * rief Check curve orientation of a bootom edge * param meshDS - mesh DS * param columnsMap - node columns map of side face * param bottomEdge - the bootom edge * param sideFaceID - side face in-block ID * etval bool - true if orienation coinside with in-block froward orienation */
Parameters:
  • meshDS (SMESHDS_Mesh *) –
  • columnsMap (TParam2ColumnMap &) –
  • bottomEdge (TopoDS_Edge &) –
  • sideFaceID (int) –
Return type:

bool

class StdMeshers_Prism_3D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

static AddPrisms()
  • /*! * rief Create prisms * param nodeColumns - columns of nodes generated from nodes of a mesh face * param helper - helper initialized by mesh and shape to add prisms to */
Parameters:
  • nodeColumns (std::vector< TNodeColumn *> &) –
  • helper (SMESH_MesherHelper *) –
Return type:

void

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

ProjectTriangles()
  • /*! * rief Enable removal of quadrangles from the bottom face and * triangles creation there by projection from the top * (sole face meshed with triangles is considered to be a bottom one). * If there are two faces with triangles, triangles must * be of the same topology, else the algo fails. * The method must be called before Compute() */
Return type:None
thisown

The membership flag

StdMeshers_Prism_3D_AddPrisms()
  • /*! * rief Create prisms * param nodeColumns - columns of nodes generated from nodes of a mesh face * param helper - helper initialized by mesh and shape to add prisms to */
Parameters:
  • nodeColumns (std::vector< TNodeColumn *> &) –
  • helper (SMESH_MesherHelper *) –
Return type:

void

class StdMeshers_ProjectionSource1D(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetSourceEdge()
  • /*! * Returns the source edge or a group containing edges */
Return type:TopoDS_Shape
GetSourceMesh()
  • /*! * Return source mesh */
Return type:SMESH_Mesh *
GetSourceVertex()
  • /*! * Returns the vertex associated with the target vertex. * Result may be nil if association not set */
Return type:TopoDS_Vertex
GetStoreParams()
  • /*! * rief Return all parameters */
Parameters:
  • s1 (TopoDS_Shape &) –
  • s2 (TopoDS_Shape &) –
  • s3 (TopoDS_Shape &) –
Return type:

None

GetTargetVertex()
  • /*! * Returns the vertex associated with the source vertex. * Result may be nil if association not set */
Return type:TopoDS_Vertex
HasVertexAssociation()
  • /*! * rief Test if vertex association defined * etval bool - test result */
Return type:bool
IsCompoundSource()
  • /*! * Returns true the source edge is a group of edges */
Return type:bool
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
RestoreParams()
  • /*! * rief Set all parameters without notifying on modification */
Parameters:
  • s1 (TopoDS_Shape &) –
  • s2 (TopoDS_Shape &) –
  • s3 (TopoDS_Shape &) –
  • mesh (SMESH_Mesh *) –
Return type:

None

SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
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 parameters 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 * * Implementation does noting */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

SetSourceEdge()
  • /*! * Sets source <edge> to take a mesh pattern from */
Parameters:edge (TopoDS_Shape &) –
Return type:None
SetSourceMesh()
  • /*! * Sets source <mesh> to take a mesh pattern from */
Parameters:mesh (SMESH_Mesh *) –
Return type:None
SetVertexAssociation()
  • /*! * Sets vertex association between the source edge and the target one. * This parameter is optional */
Parameters:
  • sourceVertex (TopoDS_Shape &) –
  • targetVertex (TopoDS_Shape &) –
Return type:

None

thisown

The membership flag

class StdMeshers_ProjectionSource2D(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetSourceFace()
  • /*! * Returns the source face or a group containing faces */
Return type:TopoDS_Shape
GetSourceMesh()
  • /*! * Return source mesh */
Return type:SMESH_Mesh *
GetSourceVertex()
  • /*! * Returns the <i>-th source vertex associated with the <i>-th target vertex. * Result may be nil if association not set. * Valid indices are 1 and 2 */
Parameters:i (int) –
Return type:TopoDS_Vertex
GetStoreParams()
  • /*! * rief Return all parameters */
Parameters:
  • s1 (TopoDS_Shape &) –
  • s2 (TopoDS_Shape &) –
  • s3 (TopoDS_Shape &) –
  • s4 (TopoDS_Shape &) –
  • s5 (TopoDS_Shape &) –
Return type:

None

GetTargetVertex()
  • /*! * Returns the <i>-th target vertex associated with the <i>-th source vertex. * Result may be nil if association not set. * Valid indices are 1 and 2 */
Parameters:i (int) –
Return type:TopoDS_Vertex
HasVertexAssociation()
  • /*! * rief Test if vertex association defined * etval bool - test result */
Return type:bool
IsCompoundSource()
  • /*! * Returns true the source face is a group of faces */
Return type:bool
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
RestoreParams()
  • /*! * rief Set all parameters without notifying on modification */
Parameters:
  • s1 (TopoDS_Shape &) –
  • s2 (TopoDS_Shape &) –
  • s3 (TopoDS_Shape &) –
  • s4 (TopoDS_Shape &) –
  • s5 (TopoDS_Shape &) –
  • mesh (SMESH_Mesh *) –
Return type:

None

SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
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 parameters 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 * * Implementation does noting */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

SetSourceFace()
  • /*! * Sets a source <face> to take a mesh pattern from */
Parameters:face (TopoDS_Shape &) –
Return type:None
SetSourceMesh()
  • /*! * Sets source <mesh> to take a mesh pattern from */
Parameters:mesh (SMESH_Mesh *) –
Return type:None
SetVertexAssociation()
  • /*! * Sets vertex association between the source face and the target one. * This parameter is optional. * Two vertices must belong to one edge of a face */
Parameters:
  • sourceVertex1 (TopoDS_Shape &) –
  • sourceVertex2 (TopoDS_Shape &) –
  • targetVertex1 (TopoDS_Shape &) –
  • targetVertex2 (TopoDS_Shape &) –
Return type:

None

thisown

The membership flag

class StdMeshers_ProjectionSource3D(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetSource3DShape()
  • /*! * Returns the source shape */
Return type:TopoDS_Shape
GetSourceMesh()
  • /*! * Return source mesh */
Return type:SMESH_Mesh *
GetSourceVertex()
  • /*! * Returns the <i>-th source vertex associated with the <i>-th target vertex. * Result may be nil if association not set. */
Parameters:i (int) –
Return type:TopoDS_Vertex
GetStoreParams()
  • /*! * rief Return all parameters */
Parameters:
  • s1 (TopoDS_Shape &) –
  • s2 (TopoDS_Shape &) –
  • s3 (TopoDS_Shape &) –
  • s4 (TopoDS_Shape &) –
  • s5 (TopoDS_Shape &) –
Return type:

None

GetTargetVertex()
  • /*! * Returns the <i>-th target vertex associated with the <i>-th source vertex. * Result may be nil if association not set. */
Parameters:i (int) –
Return type:TopoDS_Vertex
HasVertexAssociation()
  • /*! * rief Test if vertex association defined * etval bool - test result */
Return type:bool
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
RestoreParams()
  • /*! * rief Set all parameters without notifying on modification */
Parameters:
  • s1 (TopoDS_Shape &) –
  • s2 (TopoDS_Shape &) –
  • s3 (TopoDS_Shape &) –
  • s4 (TopoDS_Shape &) –
  • s5 (TopoDS_Shape &) –
  • mesh (SMESH_Mesh *) –
Return type:

None

SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
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 parameters 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 * * Implementation does noting */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

SetSource3DShape()
  • /*! * Sets a source <shape> to take a mesh pattern from */
Parameters:shape (TopoDS_Shape &) –
Return type:None
SetSourceMesh()
  • /*! * Sets source <mesh> to take a mesh pattern from */
Parameters:mesh (SMESH_Mesh *) –
Return type:None
SetVertexAssociation()
  • /*! * Sets vertex association between the source shape and the target one. * This parameter is optional. * Two vertices must belong to one edge of a shape */
Parameters:
  • sourceVertex1 (TopoDS_Shape &) –
  • sourceVertex2 (TopoDS_Shape &) –
  • targetVertex1 (TopoDS_Shape &) –
  • targetVertex2 (TopoDS_Shape &) –
Return type:

None

thisown

The membership flag

class StdMeshers_Projection_1D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

SetEventListener()
  • /*! * rief Sets a default event listener to submesh of the source edge * param whenSetToSubMesh - submesh where algo is set * * After being set, event listener is notified on each event of a submesh. * This method is called when a submesh gets HYP_OK algo_state. * Arranges that CLEAN event is translated from source submesh to * the whenSetToSubMesh submesh. */
Parameters:whenSetToSubMesh (SMESH_subMesh *) –
Return type:None
thisown

The membership flag

class StdMeshers_Projection_2D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

SetEventListener()
  • /*! * rief Sets a default event listener to submesh of the source face * param whenSetToSubMesh - submesh where algo is set * * After being set, event listener is notified on each event of a submesh. * This method is called when a submesh gets HYP_OK algo_state. * Arranges that CLEAN event is translated from source submesh to * the whenSetToSubMesh submesh. */
Parameters:whenSetToSubMesh (SMESH_subMesh *) –
Return type:None
thisown

The membership flag

class StdMeshers_Projection_3D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

SetEventListener()
  • /*! * rief Sets a default event listener to submesh of the source shape * param whenSetToSubMesh - submesh where algo is set * * Arranges that CLEAN event is translated from source submesh to * the whenSetToSubMesh submesh. */
Parameters:whenSetToSubMesh (SMESH_subMesh *) –
Return type:None
thisown

The membership flag

class StdMeshers_Propagation(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

static GetName()
Return type:std::string
static GetPropagationSource()
  • /*! * rief Return an edge from which hypotheses are propagated * param theMesh - mesh * param theEdge - edge to which hypotheses are propagated * etval TopoDS_Edge - source edge, also passing orientation */
Parameters:
  • theMesh (SMESH_Mesh &) –
  • theEdge (TopoDS_Shape &) –
Return type:

TopoDS_Edge

LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
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 * * Just return false as this hypothesis does not have parameters values */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

static SetPropagationMgr()
  • /*! * rief Set EventListener managing propagation of hypotheses * param subMesh - edge submesh to set event listener on * * 1D algo is expected to call this method from it’s SetEventListener() */
Parameters:subMesh (SMESH_subMesh *) –
Return type:void
thisown

The membership flag

StdMeshers_Propagation_GetName()
Return type:std::string
StdMeshers_Propagation_GetPropagationSource()
  • /*! * rief Return an edge from which hypotheses are propagated * param theMesh - mesh * param theEdge - edge to which hypotheses are propagated * etval TopoDS_Edge - source edge, also passing orientation */
Parameters:
  • theMesh (SMESH_Mesh &) –
  • theEdge (TopoDS_Shape &) –
Return type:

TopoDS_Edge

StdMeshers_Propagation_SetPropagationMgr()
  • /*! * rief Set EventListener managing propagation of hypotheses * param subMesh - edge submesh to set event listener on * * 1D algo is expected to call this method from it’s SetEventListener() */
Parameters:subMesh (SMESH_subMesh *) –
Return type:void
class StdMeshers_QuadToTriaAdaptor(*args)

Bases: object

Return type:None
Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aMesh
Return type:

bool

Return type:

bool

GetTriangles()
Parameters:aFace (SMDS_MeshElement *) –
Return type:std::list< SMDS_FaceOfNodes *> *
thisown

The membership flag

class StdMeshers_QuadrangleParams(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetObjectEntry()
Return type:char *
GetTriaVertex()
Return type:int
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetObjectEntry()
Parameters:entry (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 start and end length 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

SetTriaVertex()
Parameters:id (int) –
Return type:None
thisown

The membership flag

class StdMeshers_QuadranglePreference(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
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 * * Just return false as this hypothesis does not have parameters values */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_Quadrangle_2D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckAnd2Dcompute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • CreateQuadratic (bool) –
Return type:

FaceQuadStruct *

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_QuadraticMesh(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
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 * * Just return false as this hypothesis does not have parameters values */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_RadialPrism_3D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_RadialQuadrangle_1D2D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

SubmeshRestored()
  • /*! * rief Allow algo to do something after persistent restoration * param subMesh - restored submesh * * This method is called only if a submesh has HYP_OK algo_state. */
Parameters:subMesh (SMESH_subMesh *) –
Return type:None
thisown

The membership flag

class StdMeshers_Regular_1D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

GetUsedHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • bool – default value is true
Return type:

std::list< SMESHDS_Hypothesis *>

SetEventListener()
  • /*! * rief Sets event listener to submeshes if necessary * param subMesh - submesh where algo is set * * This method is called when a submesh gets HYP_OK algo_state. * After being set, event listener is notified on each event of a submesh. */
Parameters:subMesh (SMESH_subMesh *) –
Return type:None
SubmeshRestored()
  • /*! * rief Allow algo to do something after persistent restoration * param subMesh - restored submesh * * This method is called only if a submesh has HYP_OK algo_state. */
Parameters:subMesh (SMESH_subMesh *) –
Return type:None
thisown

The membership flag

class StdMeshers_SegmentAroundVertex_0D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_SegmentLengthAroundVertex(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetLength()
Return type:double
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetLength()
Parameters:length (double) –
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 segment length 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 StdMeshers_StartEndLength(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

GetLength()
Parameters:isStartLength (bool) –
Return type:double
GetObjectEntry()
Return type:char *
GetReversedEdges()
Return type:std::vector<int>
LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
SetLength()
Parameters:
  • length (double) –
  • isStartLength (bool) –
Return type:

None

SetObjectEntry()
Parameters:entry (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 start and end length 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

SetReversedEdges()
Parameters:ids (std::vector<int> &) –
Return type:None
thisown

The membership flag

class StdMeshers_TrianglePreference(*args)

Bases: OCC.SMESH.SMESH_Hypothesis

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

LoadFrom()
Parameters:load (std::istream &) –
Return type:std::istream
SaveTo()
Parameters:save (std::ostream &) –
Return type:std::ostream
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 * * Just return false as this hypothesis does not have parameters values */
Parameters:
  • theMesh (SMESH_Mesh *) –
  • theShape (TopoDS_Shape &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_UseExisting_1D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

thisown

The membership flag

class StdMeshers_UseExisting_2D(*args)

Bases: object

Parameters:
  • hypId (int) –
  • studyId (int) –
  • gen (SMESH_Gen *) –
Return type:

None

CheckHypothesis()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aStatus (SMESH_Hypothesis::Hypothesis_Status &) –
Return type:

bool

Compute()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

Evaluate()
Parameters:
  • aMesh (SMESH_Mesh &) –
  • aShape (TopoDS_Shape &) –
  • aResMap (MapShapeNbElems &) –
Return type:

bool

thisown

The membership flag

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