OCC.Core.IMeshTools module¶
IMeshTools module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_imeshtools.html
-
class
IMeshTools_Context(*args)¶ Bases:
OCC.Core.IMeshData.IMeshData_Shape- Constructor.
- rtype
None
-
BuildModel()¶ - Builds model using assined model builder. returns True on success, False elsewhere.
- rtype
bool
-
ChangeParameters()¶ - Gets reference to parameters to be used for meshing.
- rtype
inline IMeshTools_Parameters
-
Clean()¶ - Cleans temporary context data.
- rtype
void
-
DiscretizeEdges()¶ - Performs discretization of model edges using assigned edge discret algorithm. returns True on success, False elsewhere.
- rtype
bool
-
DiscretizeFaces()¶ - Performs meshing of faces of discrete model using assigned meshing algorithm. returns True on success, False elsewhere.
- rtype
bool
-
static
DownCast(t)¶
-
GetEdgeDiscret()¶ - Gets instance of a tool to be used to discretize edges of a model.
- rtype
inline opencascade::handle<IMeshTools_ModelAlgo>
-
GetFaceDiscret()¶ - Gets instance of meshing algorithm.
- rtype
inline opencascade::handle<IMeshTools_ModelAlgo>
-
GetModel()¶ - Returns discrete model of a shape.
- rtype
inline opencascade::handle<IMeshData_Model>
-
GetModelBuilder()¶ - Gets instance of a tool to be used to build discrete model.
- rtype
inline opencascade::handle<IMeshTools_ModelBuilder>
-
GetModelHealer()¶ - Gets instance of a tool to be used to heal discrete model.
- rtype
inline opencascade::handle<IMeshTools_ModelAlgo>
-
GetParameters()¶ - Gets parameters to be used for meshing.
- rtype
inline IMeshTools_Parameters
-
GetPostProcessor()¶ - Gets instance of post-processing algorithm.
- rtype
inline opencascade::handle<IMeshTools_ModelAlgo>
-
GetPreProcessor()¶ - Gets instance of pre-processing algorithm.
- rtype
inline opencascade::handle<IMeshTools_ModelAlgo>
-
HealModel()¶ - Performs healing of discrete model built by DiscretizeEdges() method using assigned healing algorithm. returns True on success, False elsewhere.
- rtype
bool
-
PostProcessModel()¶ - Performs post-processing of discrete model using assigned algorithm. returns True on success, False elsewhere.
- rtype
bool
-
PreProcessModel()¶ - Performs pre-processing of discrete model using assigned algorithm. Performs auxiliary actions such as cleaning shape from old triangulation. returns True on success, False elsewhere.
- rtype
bool
-
SetEdgeDiscret()¶ - Sets instance of a tool to be used to discretize edges of a model.
- param theEdgeDiscret
- type theEdgeDiscret
opencascade::handle<IMeshTools_ModelAlgo> &
- rtype
inline void
-
SetFaceDiscret()¶ - Sets instance of meshing algorithm.
- param theFaceDiscret
- type theFaceDiscret
opencascade::handle<IMeshTools_ModelAlgo> &
- rtype
inline void
-
SetModelBuilder()¶ - Sets instance of a tool to be used to build discrete model.
- param theBuilder
- type theBuilder
opencascade::handle<IMeshTools_ModelBuilder> &
- rtype
inline void
-
SetModelHealer()¶ - Sets instance of a tool to be used to heal discrete model.
- param theModelHealer
- type theModelHealer
opencascade::handle<IMeshTools_ModelAlgo> &
- rtype
inline void
-
SetPostProcessor()¶ - Sets instance of post-processing algorithm.
- param thePostProcessor
- type thePostProcessor
opencascade::handle<IMeshTools_ModelAlgo> &
- rtype
inline void
-
SetPreProcessor()¶ - Sets instance of pre-processing algorithm.
- param thePreProcessor
- type thePreProcessor
opencascade::handle<IMeshTools_ModelAlgo> &
- rtype
inline void
-
property
thisown¶ The membership flag
-
class
IMeshTools_CurveTessellator(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
PointsNb()¶ - Returns number of tessellation points.
- rtype
int
-
Value()¶ - Returns parameters of solution with the given index. @param theIndex index of tessellation point. @param thePoint tessellation point. @param theParameter parameters on PCurve corresponded to the solution. returns True in case of valid result, false elewhere.
- param theIndex
- type theIndex
int
- param thePoint
- type thePoint
gp_Pnt
- param theParameter
- type theParameter
float &
- rtype
bool
-
property
thisown¶ The membership flag
-
class
IMeshTools_MeshAlgo(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
Perform()¶ - Performs processing of the given face.
- param theDFace
- type theDFace
IMeshData::IFaceHandle &
- param theParameters
- type theParameters
IMeshTools_Parameters &
- rtype
void
-
property
thisown¶ The membership flag
-
class
IMeshTools_MeshAlgoFactory(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
GetAlgo()¶ - Creates instance of meshing algorithm for the given type of surface.
- param theSurfaceType
- type theSurfaceType
GeomAbs_SurfaceType
- param theParameters
- type theParameters
IMeshTools_Parameters &
- rtype
opencascade::handle<IMeshTools_MeshAlgo>
-
property
thisown¶ The membership flag
-
class
IMeshTools_MeshBuilder(*args)¶ Bases:
object- Constructor.
- rtype
None* Constructor.
- param theContext
- type theContext
opencascade::handle<IMeshTools_Context> &
- rtype
None
-
GetContext()¶ - Gets context of algorithm.
- rtype
inline opencascade::handle<IMeshTools_Context>
-
Perform()¶ - Performs meshing ot the shape using current context.
- rtype
void
-
SetContext()¶ - Sets context for algorithm.
- param theContext
- type theContext
opencascade::handle<IMeshTools_Context> &
- rtype
inline void
-
property
thisown¶ The membership flag
-
class
IMeshTools_ModelAlgo(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
Perform()¶ - Exceptions protected processing of the given model.
- param theModel
- type theModel
opencascade::handle<IMeshData_Model> &
- param theParameters
- type theParameters
IMeshTools_Parameters &
- rtype
bool
-
property
thisown¶ The membership flag
-
class
IMeshTools_ModelBuilder(*args, **kwargs)¶ Bases:
object-
Perform()¶ - Exceptions protected method to create discrete model for the given shape. Returns nullptr in case of failure.
- param theShape
- type theShape
TopoDS_Shape &
- param theParameters
- type theParameters
IMeshTools_Parameters &
- rtype
opencascade::handle<IMeshData_Model>
-
property
thisown¶ The membership flag
-
-
class
IMeshTools_Parameters(*args)¶ Bases:
object- Default constructor
- rtype
None
-
property
AdjustMinSize¶
-
property
Angle¶
-
property
AngleInterior¶
-
property
CleanModel¶
-
property
ControlSurfaceDeflection¶
-
property
Deflection¶
-
property
DeflectionInterior¶
-
property
InParallel¶
-
property
InternalVerticesMode¶
-
property
MinSize¶
-
static
RelMinSize()¶ - Returns factor used to compute default value of MinSize (minimum mesh edge length) from deflection
- rtype
float
-
property
Relative¶
-
property
thisown¶ The membership flag
-
class
IMeshTools_ShapeExplorer(*args)¶ Bases:
OCC.Core.IMeshData.IMeshData_Shape- Constructor.
- param theShape
- type theShape
TopoDS_Shape &
- rtype
None
-
Accept()¶ - Starts exploring of a shape.
- param theVisitor
- type theVisitor
opencascade::handle<IMeshTools_ShapeVisitor> &
- rtype
void
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
IMeshTools_ShapeVisitor(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
Visit()¶ - Handles TopoDS_Face object.
- param theFace
- type theFace
TopoDS_Face &
- rtype
void* Handles TopoDS_Edge object.
- param theEdge
- type theEdge
TopoDS_Edge &
- rtype
void
-
property
thisown¶ The membership flag