OCC.StlMesh module

class OCC.StlMesh.Handle_StlMesh_Mesh(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.StlMesh.Handle_StlMesh_MeshDomain(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.StlMesh.Handle_StlMesh_MeshTriangle(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.StlMesh.Handle_StlMesh_SequenceNodeOfSequenceOfMesh(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.StlMesh.Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.StlMesh.Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.StlMesh.StlMesh_Mesh

Bases: OCC.MMgt.MMgt_TShared

AddDomain()
  • Adds a new mesh domain. The mesh deflection is defaulted to Confusion from package Precision.
Return type:void
  • Adds a new mesh domain. Raised if the deflection is lower than zero Raised if the deflection is lower than Confusion from package Precision
Parameters:Deflection (float) –
Return type:void
AddOnlyNewVertex()
  • Returns the range of the vertex in the current domain. The current vertex is not inserted in the mesh if it already exist.
Parameters:
  • X (float) –
  • Y (float) –
  • Z (float) –
Return type:

int

AddTriangle()
  • Build a triangle with the triplet of vertices (V1, V2, V3). This triplet defines the indexes of the vertex in the current domain The coordinates Xn, Yn, Zn defines the normal direction to the triangle. Returns the range of the triangle in the current domain.
Parameters:
  • V1 (Standard_Integer) –
  • V2 (Standard_Integer) –
  • V3 (Standard_Integer) –
  • Xn (float) –
  • Yn (float) –
  • Zn (float) –
Return type:

int

AddVertex()
  • Returns the range of the vertex in the current domain.
Parameters:
  • X (float) –
  • Y (float) –
  • Z (float) –
Return type:

int

Bounds()
  • Each vertex of the mesh verifies the following relations : XYZMin.X() <= X <= XYZMax.X() XYZMin.Y() <= Y <= XYZMax.y() XYZMin.Z() <= Z <= XYZMax.Z()
Parameters:
  • XYZmax (gp_XYZ) –
  • XYZmin (gp_XYZ) –
Return type:

void

Clear()
Return type:void
Deflection()
  • Returns the deflection of the mesh of the domain of range <DomainIndex>. Raised if <DomainIndex> is lower than 1 or greater than the number of domains.
Parameters:DomainIndex (Standard_Integer) –
Return type:float
GetHandle()

StlMesh_Mesh_GetHandle(StlMesh_Mesh self) -> Handle_StlMesh_Mesh

IsEmpty()
Return type:bool
NbDomains()
  • Number of domains in the mesh.
Return type:int
NbTriangles()
  • Cumulative Number of triangles in the mesh.
Return type:int
  • Number of triangles in the domain of range <DomainIndex>. Raised if <DomainIndex> is lower than 1 or greater than the number of domains.
Parameters:DomainIndex (Standard_Integer) –
Return type:int
NbVertices()
  • Cumulative Number of vertices in the mesh.
Return type:int
  • Number of vertices in the domain of range <DomainIndex>. Raised if <DomainIndex> is lower than 1 or greater than the number of domains.
Parameters:DomainIndex (Standard_Integer) –
Return type:int
Triangles()
  • Returns the set of triangle of the mesh domain of range <DomainIndex>. Raised if <DomainIndex> is lower than 1 or greater than the number of domains.
Parameters:DomainIndex (Standard_Integer) – default value is 1
Return type:StlMesh_SequenceOfMeshTriangle
  • Returns the set of triangle of the mesh domain of range <DomainIndex>. Raised if <DomainIndex> is lower than 1 or greater than the number of domains.
Parameters:DomainIndex (Standard_Integer) – default value is 1
Return type:StlMesh_SequenceOfMeshTriangle
Vertices()
  • Returns the coordinates of the vertices of the mesh domain of range <DomainIndex>. {XV1, YV1, ZV1, XV2, YV2, ZV2, XV3,.....} Raised if <DomainIndex> is lower than 1 or greater than the number of domains.
Parameters:DomainIndex (Standard_Integer) – default value is 1
Return type:TColgp_SequenceOfXYZ
  • Returns the coordinates of the vertices of the mesh domain of range <DomainIndex>. {XV1, YV1, ZV1, XV2, YV2, ZV2, XV3,.....} Raised if <DomainIndex> is lower than 1 or greater than the number of domains.
Parameters:DomainIndex (Standard_Integer) – default value is 1
Return type:TColgp_SequenceOfXYZ
thisown

The membership flag

class OCC.StlMesh.StlMesh_MeshDomain(*args)

Bases: OCC.MMgt.MMgt_TShared

AddOnlyNewVertex()
  • Returns the range of the vertex in the current domain. The current vertex is not inserted in the mesh if it already exist.
Parameters:
  • X (float) –
  • Y (float) –
  • Z (float) –
  • IsNew (bool) –
Return type:

int

AddTriangle()
  • Build a triangle with the triplet of vertices (V1, V2, V3). This triplet defines the indexes of the vertex in the current domain The coordinates Xn, Yn, Zn defines the normal direction to the triangle. Returns the range of the triangle in the current domain.
Parameters:
  • V1 (Standard_Integer) –
  • V2 (Standard_Integer) –
  • V3 (Standard_Integer) –
  • Xn (float) –
  • Yn (float) –
  • Zn (float) –
Return type:

int

AddVertex()
  • Returns the range of the vertex in the current domain.
Parameters:
  • X (float) –
  • Y (float) –
  • Z (float) –
Return type:

int

Deflection()
Return type:float
GetHandle()

StlMesh_MeshDomain_GetHandle(StlMesh_MeshDomain self) -> Handle_StlMesh_MeshDomain

NbTriangles()
  • Number of triangles in the mesh.
Return type:int
NbVertices()
  • Number of vertices in the mesh.
Return type:int
Triangles()
  • Returns the set of triangles of the current mesh domain
Return type:StlMesh_SequenceOfMeshTriangle
Vertices()
  • Returns the coordinates of the vertices of the mesh domain of range <DomainIndex>. {XV1, YV1, ZV1, XV2, YV2, ZV2, XV3,.....}
Return type:TColgp_SequenceOfXYZ
thisown

The membership flag

class OCC.StlMesh.StlMesh_MeshExplorer(*args)

Bases: object

Deflection()
  • Returns the mesh deflection of the current domain.
Return type:float
InitTriangle()
  • Initializes the exploration of the triangles of the mesh domain of range <DomainIndex>. Raised if <DomainIndex> is lower than 1 or greater than the number of domains.
Parameters:DomainIndex (Standard_Integer) – default value is 1
Return type:None
  • Initializes the exploration of the triangles of the mesh domain of range <DomainIndex>. Raised if <DomainIndex> is lower than 1 or greater than the number of domains.
Parameters:DomainIndex (Standard_Integer) – default value is 1
Return type:None
MoreTriangle()
Return type:bool
NextTriangle()
  • Raised if there is no more triangle in the current domain.
Return type:None
TriangleOrientation()
  • Raised if there is no more triangle in the current domain.
Parameters:
  • Xn (float &) –
  • Yn (float &) –
  • Zn (float &) –
Return type:

None

TriangleVertices()
  • Raised if there is no more triangle in the current domain.
Parameters:
  • X1 (float &) –
  • Y1 (float &) –
  • Z1 (float &) –
  • X2 (float &) –
  • Y2 (float &) –
  • Z2 (float &) –
  • X3 (float &) –
  • Y3 (float &) –
  • Z3 (float &) –
Return type:

None

thisown

The membership flag

class OCC.StlMesh.StlMesh_MeshTriangle(*args)

Bases: OCC.MMgt.MMgt_TShared

GetHandle()

StlMesh_MeshTriangle_GetHandle(StlMesh_MeshTriangle self) -> Handle_StlMesh_MeshTriangle

GetVertex()
  • get indexes of the three vertices (V1,V2,V3)
Parameters:
  • V1 (Standard_Integer &) –
  • V2 (Standard_Integer &) –
  • V3 (Standard_Integer &) –
Return type:

None

GetVertexAndOrientation()
  • get indexes of the three vertices (V1,V2,V3) and the orientation
Parameters:
  • V1 (Standard_Integer &) –
  • V2 (Standard_Integer &) –
  • V3 (Standard_Integer &) –
  • Xn (float &) –
  • Yn (float &) –
  • Zn (float &) –
Return type:

None

SetVertex()
  • set indexes of the three vertices (V1,V2,V3) Raised if V1, V2 or V3 is lower than zero
Parameters:
  • V1 (Standard_Integer) –
  • V2 (Standard_Integer) –
  • V3 (Standard_Integer) –
Return type:

None

SetVertexAndOrientation()
  • set indexes of the three vertices (V1,V2,V3) and the orientation Raised if V1, V2 or V3 is lower than zero
Parameters:
  • V1 (Standard_Integer) –
  • V2 (Standard_Integer) –
  • V3 (Standard_Integer) –
  • Xn (float) –
  • Yn (float) –
  • Zn (float) –
Return type:

None

thisown

The membership flag

class OCC.StlMesh.StlMesh_SequenceNodeOfSequenceOfMesh(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

StlMesh_SequenceNodeOfSequenceOfMesh_GetHandle(StlMesh_SequenceNodeOfSequenceOfMesh self) -> Handle_StlMesh_SequenceNodeOfSequenceOfMesh

Value()
Return type:Handle_StlMesh_Mesh
thisown

The membership flag

class OCC.StlMesh.StlMesh_SequenceNodeOfSequenceOfMeshDomain(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

StlMesh_SequenceNodeOfSequenceOfMeshDomain_GetHandle(StlMesh_SequenceNodeOfSequenceOfMeshDomain self) -> Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain

Value()
Return type:Handle_StlMesh_MeshDomain
thisown

The membership flag

class OCC.StlMesh.StlMesh_SequenceNodeOfSequenceOfMeshTriangle(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

StlMesh_SequenceNodeOfSequenceOfMeshTriangle_GetHandle(StlMesh_SequenceNodeOfSequenceOfMeshTriangle self) -> Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle

Value()
Return type:Handle_StlMesh_MeshTriangle
thisown

The membership flag

class OCC.StlMesh.StlMesh_SequenceOfMesh

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Handle_StlMesh_Mesh &) –
  • S (StlMesh_SequenceOfMesh &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (StlMesh_SequenceOfMesh &) –
Return type:StlMesh_SequenceOfMesh
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_StlMesh_Mesh
Clear()
Return type:None
First()
Return type:Handle_StlMesh_Mesh
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_StlMesh_Mesh &) –
  • Index
  • S (StlMesh_SequenceOfMesh &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_StlMesh_Mesh &) –
  • Index
  • S (StlMesh_SequenceOfMesh &) –
Return type:

None

Return type:

None

Last()
Return type:Handle_StlMesh_Mesh
Prepend()
Parameters:
  • T (Handle_StlMesh_Mesh &) –
  • S (StlMesh_SequenceOfMesh &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (StlMesh_SequenceOfMesh &) –
Return type:StlMesh_SequenceOfMesh
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Handle_StlMesh_Mesh &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (StlMesh_SequenceOfMesh &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Handle_StlMesh_Mesh
thisown

The membership flag

class OCC.StlMesh.StlMesh_SequenceOfMeshDomain

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Handle_StlMesh_MeshDomain &) –
  • S (StlMesh_SequenceOfMeshDomain &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (StlMesh_SequenceOfMeshDomain &) –
Return type:StlMesh_SequenceOfMeshDomain
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_StlMesh_MeshDomain
Clear()
Return type:None
First()
Return type:Handle_StlMesh_MeshDomain
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_StlMesh_MeshDomain &) –
  • Index
  • S (StlMesh_SequenceOfMeshDomain &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_StlMesh_MeshDomain &) –
  • Index
  • S (StlMesh_SequenceOfMeshDomain &) –
Return type:

None

Return type:

None

Last()
Return type:Handle_StlMesh_MeshDomain
Prepend()
Parameters:
  • T (Handle_StlMesh_MeshDomain &) –
  • S (StlMesh_SequenceOfMeshDomain &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (StlMesh_SequenceOfMeshDomain &) –
Return type:StlMesh_SequenceOfMeshDomain
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Handle_StlMesh_MeshDomain &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (StlMesh_SequenceOfMeshDomain &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Handle_StlMesh_MeshDomain
thisown

The membership flag

class OCC.StlMesh.StlMesh_SequenceOfMeshTriangle

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Handle_StlMesh_MeshTriangle &) –
  • S (StlMesh_SequenceOfMeshTriangle &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (StlMesh_SequenceOfMeshTriangle &) –
Return type:StlMesh_SequenceOfMeshTriangle
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_StlMesh_MeshTriangle
Clear()
Return type:None
First()
Return type:Handle_StlMesh_MeshTriangle
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_StlMesh_MeshTriangle &) –
  • Index
  • S (StlMesh_SequenceOfMeshTriangle &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_StlMesh_MeshTriangle &) –
  • Index
  • S (StlMesh_SequenceOfMeshTriangle &) –
Return type:

None

Return type:

None

Last()
Return type:Handle_StlMesh_MeshTriangle
Prepend()
Parameters:
  • T (Handle_StlMesh_MeshTriangle &) –
  • S (StlMesh_SequenceOfMeshTriangle &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (StlMesh_SequenceOfMeshTriangle &) –
Return type:StlMesh_SequenceOfMeshTriangle
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Handle_StlMesh_MeshTriangle &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (StlMesh_SequenceOfMeshTriangle &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Handle_StlMesh_MeshTriangle
thisown

The membership flag

class OCC.StlMesh.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
class OCC.StlMesh.stlmesh(*args, **kwargs)

Bases: object

static Merge(*args)
  • Sequence of meshes Make a merge of two Mesh and returns a new Mesh. Very useful if you want to merge partMesh and CheckSurfaceMesh for example
Parameters:
  • mesh1 (Handle_StlMesh_Mesh &) –
  • mesh2 (Handle_StlMesh_Mesh &) –
Return type:

Handle_StlMesh_Mesh

thisown

The membership flag

OCC.StlMesh.stlmesh_Merge(*args)
  • Sequence of meshes Make a merge of two Mesh and returns a new Mesh. Very useful if you want to merge partMesh and CheckSurfaceMesh for example
Parameters:
  • mesh1 (Handle_StlMesh_Mesh &) –
  • mesh2 (Handle_StlMesh_Mesh &) –
Return type:

Handle_StlMesh_Mesh