OCC.Core.IMeshData module¶
IMeshData module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_imeshdata.html
-
class
IMeshData_Curve(*args, **kwargs)¶ Bases:
OCC.Core.IMeshData.IMeshData_ParametersListEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
AddPoint()¶ - Adds new discretization point to curve.
- param thePoint
- type thePoint
gp_Pnt
- param theParamOnCurve
- type theParamOnCurve
float
- rtype
void
-
static
DownCast(t)¶
-
GetPoint()¶ - Returns discretization point with the given index.
- param theIndex
- type theIndex
int
- rtype
gp_Pnt
-
InsertPoint()¶ - Inserts new discretization point at the given position.
- param thePosition
- type thePosition
int
- param thePoint
- type thePoint
gp_Pnt
- param theParamOnPCurve
- type theParamOnPCurve
float
- rtype
void
-
RemovePoint()¶ - Removes point with the given index.
- param theIndex
- type theIndex
int
- rtype
void
-
property
thisown¶ The membership flag
-
class
IMeshData_Edge(*args, **kwargs)¶ Bases:
OCC.Core.IMeshData.IMeshData_TessellatedShape,OCC.Core.IMeshData.IMeshData_StatusOwnerEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
AddPCurve()¶ - Adds discrete pcurve for the specifed discrete face.
- param theDFace
- type theDFace
IMeshData::IFacePtr &
- param theOrientation
- type theOrientation
TopAbs_Orientation
- rtype
IMeshData::IPCurveHandle
-
Clear()¶ - Clears curve and all pcurves assigned to the edge from discretization.
- param isKeepEndPoints
- type isKeepEndPoints
bool
- rtype
inline void
-
static
DownCast(t)¶
-
GetAngularDeflection()¶ - Gets value of angular deflection for the discrete model.
- rtype
inline float
-
GetCurve()¶ - Returns 3d curve associated with current edge.
- rtype
inline IMeshData::ICurveHandle
-
GetDegenerated()¶ - Returns degenerative flag. By default equals to flag stored in topological shape.
- rtype
inline bool
-
GetEdge()¶ - Returns TopoDS_Edge attached to model.
- rtype
inline TopoDS_Edge
-
GetPCurve()¶ - Returns pcurve for the specified discrete face.
- param theDFace
- type theDFace
IMeshData::IFacePtr &
- param theOrientation
- type theOrientation
TopAbs_Orientation
- rtype
IMeshData::IPCurveHandle* Returns pcurve with the given index.
- param theIndex
- type theIndex
int
- rtype
IMeshData::IPCurveHandle
-
GetSameParam()¶ - Returns same param flag. By default equals to flag stored in topological shape.
- rtype
inline bool
-
GetSameRange()¶ - Returns same range flag. By default equals to flag stored in topological shape.
- rtype
inline bool
-
IsFree()¶ - Returns true in case if the edge is free one, i.e. it does not have pcurves.
- rtype
inline bool
-
PCurvesNb()¶ - Returns number of pcurves assigned to current edge.
- rtype
int
-
SetAngularDeflection()¶ - Sets value of angular deflection for the discrete model.
- param theValue
- type theValue
float
- rtype
inline void
-
SetCurve()¶ - Sets 3d curve associated with current edge.
- param theCurve
- type theCurve
IMeshData::ICurveHandle &
- rtype
inline void
-
SetDegenerated()¶ - Updates degenerative flag.
- param theValue
- type theValue
bool
- rtype
inline void
-
SetSameParam()¶ - Updates same param flag.
- param theValue
- type theValue
bool
- rtype
inline void
-
SetSameRange()¶ - Updates same range flag.
- param theValue
- type theValue
bool
- rtype
inline void
-
property
thisown¶ The membership flag
-
class
IMeshData_Face(*args, **kwargs)¶ Bases:
OCC.Core.IMeshData.IMeshData_TessellatedShape,OCC.Core.IMeshData.IMeshData_StatusOwnerEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
AddWire()¶ - Adds wire to discrete model of face.
- param theWire
- type theWire
TopoDS_Wire &
- param theEdgeNb
default value is 0
- type theEdgeNb
int
- rtype
IMeshData::IWireHandle
-
static
DownCast(t)¶
-
GetFace()¶ - Returns TopoDS_Face attached to model.
- rtype
inline TopoDS_Face
-
GetSurface()¶ - Returns face’s surface.
- rtype
inline opencascade::handle<BRepAdaptor_HSurface>
-
GetWire()¶ - Returns discrete edge with the given index.
- param theIndex
- type theIndex
int
- rtype
IMeshData::IWireHandle
-
IsValid()¶ - Returns whether the face discrete model is valid.
- rtype
inline bool
-
WiresNb()¶ - Returns number of wires.
- rtype
int
-
property
thisown¶ The membership flag
-
class
IMeshData_Model(*args, **kwargs)¶ Bases:
OCC.Core.IMeshData.IMeshData_ShapeEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
AddEdge()¶ - Adds new edge to shape model.
- param theEdge
- type theEdge
TopoDS_Edge &
- rtype
IMeshData::IEdgeHandle
-
AddFace()¶ - Adds new face to shape model.
- param theFace
- type theFace
TopoDS_Face &
- rtype
IMeshData::IFaceHandle
-
static
DownCast(t)¶
-
EdgesNb()¶ - @name discrete edges Returns number of edges in discrete model.
- rtype
int
-
FacesNb()¶ - @name discrete faces Returns number of faces in discrete model.
- rtype
int
-
GetEdge()¶ - Gets model’s edge with the given index.
- param theIndex
- type theIndex
int
- rtype
IMeshData::IEdgeHandle
-
GetFace()¶ - Gets model’s face with the given index.
- param theIndex
- type theIndex
int
- rtype
IMeshData::IFaceHandle
-
GetMaxSize()¶ - Returns maximum size of shape model.
- rtype
float
-
property
thisown¶ The membership flag
-
class
IMeshData_PCurve(*args, **kwargs)¶ Bases:
OCC.Core.IMeshData.IMeshData_ParametersListEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
AddPoint()¶ - Adds new discretization point to pcurve.
- param thePoint
- type thePoint
gp_Pnt2d
- param theParamOnPCurve
- type theParamOnPCurve
float
- rtype
void
-
static
DownCast(t)¶
-
GetFace()¶ - Returns discrete face pcurve is associated to.
- rtype
inline IMeshData::IFacePtr
-
GetIndex()¶ - Returns index in mesh corresponded to discretization point with the given index.
- param theIndex
- type theIndex
int
- rtype
int
-
GetOrientation()¶ - Returns orientation of the edge associated with current pcurve.
- rtype
inline TopAbs_Orientation
-
GetPoint()¶ - Returns discretization point with the given index.
- param theIndex
- type theIndex
int
- rtype
gp_Pnt2d
-
InsertPoint()¶ - Inserts new discretization point at the given position.
- param thePosition
- type thePosition
int
- param thePoint
- type thePoint
gp_Pnt2d
- param theParamOnPCurve
- type theParamOnPCurve
float
- rtype
void
-
IsForward()¶ - Returns forward flag of this pcurve.
- rtype
inline bool
-
IsInternal()¶ - Returns internal flag of this pcurve.
- rtype
inline bool
-
RemovePoint()¶ - Removes point with the given index.
- param theIndex
- type theIndex
int
- rtype
void
-
property
thisown¶ The membership flag
-
class
IMeshData_ParametersList(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Clear()¶ - Clears parameters list.
- param isKeepEndPoints
- type isKeepEndPoints
bool
- rtype
void
-
static
DownCast(t)¶
-
GetParameter()¶ - Returns parameter with the given index.
- param theIndex
- type theIndex
int
- rtype
float
-
ParametersNb()¶ - Returns number of parameters.
- rtype
int
-
property
thisown¶ The membership flag
-
class
IMeshData_Shape(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
GetShape()¶ - Returns shape assigned to discrete shape.
- rtype
TopoDS_Shape
-
SetShape()¶ - Assigns shape to discrete shape.
- param theShape
- type theShape
TopoDS_Shape &
- rtype
inline void
-
property
thisown¶ The membership flag
-
class
IMeshData_StatusOwner(*args, **kwargs)¶ Bases:
object-
GetStatusMask()¶ - Returns complete status mask.
- rtype
inline int
-
IsEqual()¶ - Returns true in case if status is strictly equal to the given value.
- param theValue
- type theValue
IMeshData_Status
- rtype
inline bool
-
IsSet()¶ - Returns true in case if status is set.
- param theValue
- type theValue
IMeshData_Status
- rtype
inline bool
-
SetStatus()¶ - Adds status to status flags of a face.
- param theValue
- type theValue
IMeshData_Status
- rtype
inline void
-
UnsetStatus()¶ - Adds status to status flags of a face.
- param theValue
- type theValue
IMeshData_Status
- rtype
inline void
-
property
thisown¶ The membership flag
-
-
class
IMeshData_TessellatedShape(*args, **kwargs)¶ Bases:
OCC.Core.IMeshData.IMeshData_ShapeEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
GetDeflection()¶ - Gets deflection value for the discrete model.
- rtype
inline float
-
SetDeflection()¶ - Sets deflection value for the discrete model.
- param theValue
- type theValue
float
- rtype
inline void
-
property
thisown¶ The membership flag
-
class
IMeshData_Wire(*args, **kwargs)¶ Bases:
OCC.Core.IMeshData.IMeshData_TessellatedShape,OCC.Core.IMeshData.IMeshData_StatusOwnerEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
AddEdge()¶ - Adds new discrete edge with specified orientation to wire chain. returns index of added edge in wire chain.
- param theDEdge
- type theDEdge
IMeshData::IEdgePtr &
- param theOrientation
- type theOrientation
TopAbs_Orientation
- rtype
int
-
static
DownCast(t)¶
-
EdgesNb()¶ - Returns number of edges.
- rtype
int
-
GetEdge()¶ - Returns discrete edge with the given index.
- param theIndex
- type theIndex
int
- rtype
IMeshData::IEdgePtr
-
GetEdgeOrientation()¶ - Returns True if orientation of discrete edge with the given index is forward.
- param theIndex
- type theIndex
int
- rtype
TopAbs_Orientation
-
GetWire()¶ - Returns TopoDS_Face attached to model.
- rtype
inline TopoDS_Wire
-
property
thisown¶ The membership flag