OCC.Core.MeshVS module¶
MeshVS module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_meshvs.html
-
class
MeshVS_Array1OfSequenceOfInteger
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
First
()¶
-
Init
()¶
-
IsAllocated
()¶
-
IsDeletable
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Move
()¶
-
Resize
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
next
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_Buffer
(*args)¶ Bases:
object
- Constructor of the buffer of the requested size
- param theSize
- type theSize
Standard_Size
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MeshVS_CommonSensitiveEntity
(*args)¶ Bases:
object
- Default constructor.
- param theOwner
- type theOwner
SelectMgr_EntityOwner
- param theParentMesh
- type theParentMesh
MeshVS_Mesh
- param theSelMethod
- type theSelMethod
MeshVS_MeshSelectionMethod
- rtype
None
-
BoundingBox
()¶ - Returns bounding box of the triangulation. If location transformation is set, it will be applied
- rtype
Select3D_BndBox3d
-
Box
()¶ - Returns bounding box of sub-entity with index theIdx in sub-entity list
- param theIdx
- type theIdx
int
- rtype
Select3D_BndBox3d
-
Center
()¶ - Returns geometry center of sensitive entity index theIdx along the given axis theAxis
- param theIdx
- type theIdx
int
- param theAxis
- type theAxis
int
- rtype
float
-
CenterOfGeometry
()¶ - Returns center of a mesh
- rtype
gp_Pnt
-
static
DownCast
(t)¶
-
GetConnected
()¶ - Create a copy.
- rtype
opencascade::handle<Select3D_SensitiveEntity>
-
NbSubElements
()¶ - Number of elements.
- rtype
int
-
Size
()¶ - Returns the amount of sub-entities of the complex entity
- rtype
int
-
Swap
()¶ - Swaps items with indexes theIdx1 and theIdx2
- param theIdx1
- type theIdx1
int
- param theIdx2
- type theIdx2
int
- rtype
void
-
property
thisown
¶ The membership flag
-
class
MeshVS_DataMapOfColorMapOfInteger
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataMapOfHArray1OfSequenceOfInteger
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataMapOfIntegerAsciiString
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataMapOfIntegerBoolean
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataMapOfIntegerColor
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataMapOfIntegerMaterial
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataMapOfIntegerMeshEntityOwner
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataMapOfIntegerOwner
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataMapOfIntegerTwoColors
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataMapOfIntegerVector
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataMapOfTwoColorsMapOfInteger
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_DataSource
(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast
(t)¶
-
Get3DGeom
()¶ - This method returns topology information about 3D-element Returns false if element with ID isn’t 3D or because other troubles
- param ID
- type ID
int
- param NbNodes
- type NbNodes
int
- param Data
- type Data
MeshVS_HArray1OfSequenceOfInteger
- rtype
bool
-
GetAddr
()¶ - This method returns pointer which represents element or node data structure. This address will be saved in MeshVS_MeshEntityOwner, so that you can access to data structure fast by the method Owner(). In the redefined method you can return NULL. ID is the numerical identificator of node or element IsElement indicates this ID describe node ( if Standard_False ) or element ( if Standard_True )
- param ID
- type ID
int
- param IsElement
- type IsElement
bool
- rtype
Standard_Address
-
GetAllElements
()¶ - This method returns map of all elements the object consist of.
- rtype
TColStd_PackedMapOfInteger
-
GetAllGroups
()¶ - This method returns map of all groups the object contains.
- param Ids
- type Ids
TColStd_PackedMapOfInteger
- rtype
void
-
GetAllNodes
()¶ - This method returns map of all nodes the object consist of.
- rtype
TColStd_PackedMapOfInteger
-
GetBoundingBox
()¶ - Returns the bounding box of the whole mesh. It is used in advanced selection mode to define roughly the sensitive area of the mesh. It can be redefined to get access to a box computed in advance.
- rtype
Bnd_Box
-
GetDetectedEntities
()¶ - Returns maps of entities (nodes and elements) detected by mouse click at the point (X,Y) on the current view plane, with the tolerance aTol. DMin - is out argument should return actual detection tolerance. Returns True if something is detected. It should be redefined if the advanced mesh selection is activated. Default implementation returns False.
- param Prs
- type Prs
MeshVS_Mesh
- param X
- type X
float
- param Y
- type Y
float
- param aTol
- type aTol
float
- param Nodes
- type Nodes
TColStd_HPackedMapOfInteger
- param Elements
- type Elements
TColStd_HPackedMapOfInteger
- param DMin
- type DMin
float
- rtype
bool* Returns maps of entities (nodes and elements) detected by mouse selection with rectangular box (XMin, YMin, XMax, YMax) on the current veiw plane, with the tolerance aTol. Returns True if something is detected. It should be redefined if the advanced mesh selection is activated. Default implementation returns False.
- param Prs
- type Prs
MeshVS_Mesh
- param XMin
- type XMin
float
- param YMin
- type YMin
float
- param XMax
- type XMax
float
- param YMax
- type YMax
float
- param aTol
- type aTol
float
- param Nodes
- type Nodes
TColStd_HPackedMapOfInteger
- param Elements
- type Elements
TColStd_HPackedMapOfInteger
- rtype
bool* Returns maps of entities (nodes and elements) detected by mouse selection with the polyline <Polyline> on the current veiw plane, with the tolerance aTol. Returns True if something is detected. It should be redefined if the advanced mesh selection is activated. Default implementation returns False.
- param Prs
- type Prs
MeshVS_Mesh
- param Polyline
- type Polyline
TColgp_Array1OfPnt2d
- param aBox
- type aBox
Bnd_Box2d
- param aTol
- type aTol
float
- param Nodes
- type Nodes
TColStd_HPackedMapOfInteger
- param Elements
- type Elements
TColStd_HPackedMapOfInteger
- rtype
bool* Filter out the maps of mesh entities so as to keep only the entities that are allowed to be selected according to the current context. Returns True if any of the maps has been changed. It should be redefined if the advanced mesh selection is activated. Default implementation returns False.
- param Prs
- type Prs
MeshVS_Mesh
- param Nodes
- type Nodes
TColStd_HPackedMapOfInteger
- param Elements
- type Elements
TColStd_HPackedMapOfInteger
- rtype
bool
-
GetGeom
()¶ - Returns geometry information about node or element ID is the numerical identificator of node or element IsElement indicates this ID describe node ( if Standard_False ) or element ( if Standard_True ) Coords is an array of co-ordinates of node(s). For node it is only 3 numbers: X, Y, Z in the strict order For element it is 3*n numbers, where n is number of this element vertices The order is strict also: X1, Y1, Z1, X2,…., where Xi, Yi, Zi are co-ordinates of vertices NbNodes is number of nodes. It is recommended this parameter to be set to 1 for node. Type is type of node or element (from enumeration). It is recommended this parameter to be set to MeshVS_ET_Node for node.
- param ID
- type ID
int
- param IsElement
- type IsElement
bool
- param Coords
- type Coords
TColStd_Array1OfReal
- param NbNodes
- type NbNodes
int
- param Type
- type Type
MeshVS_EntityType
- rtype
bool
-
GetGeomType
()¶ - This method is similar to GetGeom, but returns only element or node type.
- param ID
- type ID
int
- param IsElement
- type IsElement
bool
- param Type
- type Type
MeshVS_EntityType
- rtype
bool
-
GetGroup
()¶ - This method returns map of all group elements.
- param Id
- type Id
int
- param Type
- type Type
MeshVS_EntityType
- param Ids
- type Ids
TColStd_PackedMapOfInteger
- rtype
bool
-
GetGroupAddr
()¶ - This method returns pointer which represents group data structure. This address will be saved in MeshVS_MeshOwner, so that you can access to data structure fast by the method Owner(). In the redefined method you can return NULL. ID is the numerical identificator of group
- param ID
- type ID
int
- rtype
Standard_Address
-
GetNodeNormal
()¶ - This method return normal of node ranknode of face Id, which is using for smooth shading presentation. Returns false if normal isn’t defined.
- param ranknode
- type ranknode
int
- param ElementId
- type ElementId
int
- param nx
- type nx
float
- param ny
- type ny
float
- param nz
- type nz
float
- rtype
bool
-
GetNodesByElement
()¶ - This method returns information about nodes this element consist of. ID is the numerical identificator of element. NodeIDs is the output array of nodes IDs in correct order, the same as coordinates returned by GetGeom(). NbNodes is number of nodes (number of items set in NodeIDs). Returns False if element does not exist
- param ID
- type ID
int
- param NodeIDs
- type NodeIDs
TColStd_Array1OfInteger
- param NbNodes
- type NbNodes
int
- rtype
bool
-
GetNormal
()¶ - This method calculates normal of face, which is using for correct reflection presentation. There is default method, for advance reflection this method can be redefined. Id is the numerical identificator of only element! Max is maximal number of nodes an element can consist of nx, ny, nz are values whose represent co-ordinates of normal (will be returned) In the redefined method you can return normal with length more then 1, but in this case the appearance of element will be more bright than usual. For ordinary brightness you must return normal with length 1
- param Id
- type Id
int
- param Max
- type Max
int
- param nx
- type nx
float
- param ny
- type ny
float
- param nz
- type nz
float
- rtype
bool
-
GetNormalsByElement
()¶ - This method puts components of normal vectors at each node of a mesh face (at each face of a mesh volume) into the output array. Returns false if some problem was detected during calculation of normals. Id is an identifier of the mesh element. IsNodal, when true, means that normals at mesh element nodes are needed. If nodal normals are not available, or IsNodal is false, or the mesh element is a volume, then the output array contents depend on the element type: face: a normal calculated by GetNormal() is duplicated for each node of the face; volume: normals to all faces of the volume are computed (not for each node!). MaxNodes is maximal number of nodes an element can consist of. Normals contains the result.
- param Id
- type Id
int
- param IsNodal
- type IsNodal
bool
- param MaxNodes
- type MaxNodes
int
- param Normals
- type Normals
TColStd_HArray1OfReal
- rtype
bool
-
IsAdvancedSelectionEnabled
()¶ - Returns True if advanced mesh selection is enabled. Default implementation returns False. It should be redefined to return True for advanced mesh selection activation.
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
MeshVS_DataSource3D
(*args, **kwargs)¶ Bases:
OCC.Core.MeshVS.MeshVS_DataSource
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
CreatePrismTopology
()¶ - Parameters
BasePoints –
- type BasePoints
int
- rtype
opencascade::handle<MeshVS_HArray1OfSequenceOfInteger>
-
static
CreatePyramidTopology
()¶ - Parameters
BasePoints –
- type BasePoints
int
- rtype
opencascade::handle<MeshVS_HArray1OfSequenceOfInteger>
-
static
DownCast
(t)¶
-
GetPrismTopology
()¶ - Parameters
BasePoints –
- type BasePoints
int
- rtype
opencascade::handle<MeshVS_HArray1OfSequenceOfInteger>
-
GetPyramidTopology
()¶ - Parameters
BasePoints –
- type BasePoints
int
- rtype
opencascade::handle<MeshVS_HArray1OfSequenceOfInteger>
-
property
thisown
¶ The membership flag
-
class
MeshVS_DeformedDataSource
(*args)¶ Bases:
OCC.Core.MeshVS.MeshVS_DataSource
- Constructor theNonDeformDS is canonical non-deformed data source, by which we are able to calculate deformed mesh geometry theMagnify is coefficient of displacement magnify
- param theNonDeformDS
- type theNonDeformDS
MeshVS_DataSource
- param theMagnify
- type theMagnify
float
- rtype
None
-
static
DownCast
(t)¶
-
GetMagnify
()¶ - With this methods you can read and change magnify coefficient of nodal displacements
- rtype
float
-
GetNonDeformedDataSource
()¶ - With this methods you can read and change internal canonical data source
- rtype
opencascade::handle<MeshVS_DataSource>
-
GetVector
()¶ - This method returns vector ( Vect ) assigned to node number ID.
- param ID
- type ID
int
- param Vect
- type Vect
gp_Vec
- rtype
bool
-
GetVectors
()¶ - This method returns map of nodal displacement vectors
- rtype
MeshVS_DataMapOfIntegerVector
-
SetMagnify
()¶ - Parameters
theMagnify –
- type theMagnify
float
- rtype
None
-
SetNonDeformedDataSource
()¶ - Parameters
theDS –
- type theDS
MeshVS_DataSource
- rtype
None
-
SetVector
()¶ - This method sets vector ( Vect ) assigned to node number ID.
- param ID
- type ID
int
- param Vect
- type Vect
gp_Vec
- rtype
None
-
SetVectors
()¶ - This method sets map of nodal displacement vectors (Map).
- param Map
- type Map
MeshVS_DataMapOfIntegerVector
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MeshVS_Drawer
¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Assign
()¶ - This method copies other drawer contents to this.
- param aDrawer
- type aDrawer
MeshVS_Drawer
- rtype
void
-
static
DownCast
(t)¶
-
GetAsciiString
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
TCollection_AsciiString
- rtype
bool
-
GetBoolean
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
bool
- rtype
bool
-
GetColor
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
Quantity_Color
- rtype
bool
-
GetDouble
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
float
- rtype
bool
-
GetInteger
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
int
- rtype
bool
-
GetMaterial
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
Graphic3d_MaterialAspect
- rtype
bool
-
RemoveAsciiString
()¶ - Parameters
Key –
- type Key
int
- rtype
bool
-
RemoveBoolean
()¶ - Parameters
Key –
- type Key
int
- rtype
bool
-
RemoveColor
()¶ - Parameters
Key –
- type Key
int
- rtype
bool
-
RemoveDouble
()¶ - Parameters
Key –
- type Key
int
- rtype
bool
-
RemoveInteger
()¶ - Parameters
Key –
- type Key
int
- rtype
bool
-
RemoveMaterial
()¶ - Parameters
Key –
- type Key
int
- rtype
bool
-
SetAsciiString
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
TCollection_AsciiString
- rtype
None
-
SetBoolean
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
bool
- rtype
None
-
SetColor
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
Quantity_Color
- rtype
None
-
SetDouble
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
float
- rtype
None
-
SetInteger
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
int
- rtype
None
-
SetMaterial
()¶ - Parameters
Key –
- type Key
int
- param Value
- type Value
Graphic3d_MaterialAspect
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MeshVS_DummySensitiveEntity
(*args)¶ Bases:
object
- Parameters
theOwnerId –
- type theOwnerId
SelectMgr_EntityOwner
- rtype
None
-
BVH
()¶ - Return type
void
-
BoundingBox
()¶ - Return type
Select3D_BndBox3d
-
Clear
()¶ - Return type
void
-
static
DownCast
(t)¶
-
Matches
()¶ - Parameters
theMgr –
- type theMgr
SelectBasics_SelectingVolumeManager
- param thePickResult
- type thePickResult
SelectBasics_PickResult
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
MeshVS_ElementalColorPrsBuilder
(*args)¶ Bases:
OCC.Core.MeshVS.MeshVS_PrsBuilder
- Constructor
- param Parent
- type Parent
MeshVS_Mesh
- param Flags
default value is MeshVS_DMF_ElementalColorDataPrs
- type Flags
int
- param DS
default value is 0
- type DS
MeshVS_DataSource
- param Id
default value is -1
- type Id
int
- param Priority
default value is MeshVS_BP_ElemColor
- type Priority
int
- rtype
None
-
static
DownCast
(t)¶
-
GetColor1
()¶ - Returns color assigned with element number ID
- param ID
- type ID
int
- param theColor
- type theColor
Quantity_Color
- rtype
bool
-
GetColor2
()¶ - Returns colors assigned with element number ID
- param ID
- type ID
int
- param theColor
- type theColor
MeshVS_TwoColors
- rtype
bool* Returns colors assigned with element number ID theColor1 is the front element color theColor2 is the back element color
- param ID
- type ID
int
- param theColor1
- type theColor1
Quantity_Color
- param theColor2
- type theColor2
Quantity_Color
- rtype
bool
-
GetColors1
()¶ - Returns map of colors same for front and back side of face.
- rtype
MeshVS_DataMapOfIntegerColor
-
GetColors2
()¶ - Returns map of different colors for front and back side of face
- rtype
MeshVS_DataMapOfIntegerTwoColors
-
HasColors1
()¶ - Returns true, if map of colors isn’t empty
- rtype
bool
-
HasColors2
()¶ - Returns true, if map isn’t empty
- rtype
bool
-
SetColor1
()¶ - Sets color assigned with element number ID
- param ID
- type ID
int
- param theColor
- type theColor
Quantity_Color
- rtype
None
-
SetColor2
()¶ - Sets colors assigned with element number ID
- param ID
- type ID
int
- param theTwoColors
- type theTwoColors
MeshVS_TwoColors
- rtype
None* Sets color assigned with element number ID theColor1 is the front element color theColor2 is the back element color
- param ID
- type ID
int
- param theColor1
- type theColor1
Quantity_Color
- param theColor2
- type theColor2
Quantity_Color
- rtype
None
-
SetColors1
()¶ - Sets map of colors same for front and back side of face.
- param Map
- type Map
MeshVS_DataMapOfIntegerColor
- rtype
None
-
SetColors2
()¶ - Sets map of different colors for front and back side of face
- param Map
- type Map
MeshVS_DataMapOfIntegerTwoColors
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MeshVS_HArray1OfSequenceOfInteger
(*args)¶ Bases:
OCC.Core.MeshVS.MeshVS_Array1OfSequenceOfInteger
,OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array1
()¶
-
ChangeArray1
()¶
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
MeshVS_MapOfTwoNodes
(*args)¶ Bases:
object
-
Add
()¶
-
Added
()¶
-
Assign
()¶
-
Clear
()¶
-
Contains
()¶
-
Differ
()¶
-
Difference
()¶
-
Exchange
()¶
-
HasIntersection
()¶
-
Intersect
()¶
-
Intersection
()¶
-
IsEqual
()¶
-
ReSize
()¶
-
Remove
()¶
-
Set
()¶
-
Size
()¶
-
Subtract
()¶
-
Subtraction
()¶
-
Union
()¶
-
Unite
()¶
-
cbegin
()¶
-
cend
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_Mesh
(*args)¶ Bases:
OCC.Core.AIS.AIS_InteractiveObject
- Constructor. theIsAllowOverlapped is Standard_True, if it is allowed to draw edges overlapped with beams Its value is stored in drawer
- param theIsAllowOverlapped
default value is Standard_False
- type theIsAllowOverlapped
bool
- rtype
None
-
AcceptDisplayMode
()¶ - Returns true for supported display modes basing on a list of defined builders.
- param theMode
- type theMode
int
- rtype
bool
-
AddBuilder
()¶ - Adds builder to tale of sequence. PrsBuilder is builder to be added If TreatAsHilighter is true, MeshVS_Mesh will use this builder to create presentation of hilighted and selected owners. Only one builder can be hilighter, so that if you call this method with TreatAsHilighter = Standard_True some times, only last builder will be hilighter WARNING: As minimum one builder must be added as hilighter, otherwise selection cannot be computed
- param Builder
- type Builder
MeshVS_PrsBuilder
- param TreatAsHilighter
default value is Standard_False
- type TreatAsHilighter
bool
- rtype
None
-
Compute
()¶ - Computes presentation using builders added to sequence. Each builder computes own part of mesh presentation according to its type.
- param PM
- type PM
PrsMgr_PresentationManager3d
- param Prs
- type Prs
Prs3d_Presentation
- param DisplayMode
- type DisplayMode
int
- rtype
void
-
ComputeSelection
()¶ - Computes selection according to SelectMode
- param Sel
- type Sel
SelectMgr_Selection
- param SelectMode
- type SelectMode
int
- rtype
void
-
static
DownCast
(t)¶
-
FindBuilder
()¶ - Finds builder by its type the string represents
- param TypeString
- type TypeString
char *
- rtype
opencascade::handle<MeshVS_PrsBuilder>
-
GetBuilder
()¶ - Returns builder by its index in sequence
- param Index
- type Index
int
- rtype
opencascade::handle<MeshVS_PrsBuilder>
-
GetBuilderById
()¶ - Returns builder by its ID
- param Id
- type Id
int
- rtype
opencascade::handle<MeshVS_PrsBuilder>
-
GetBuildersCount
()¶ - How many builders there are in sequence
- rtype
int
-
GetDataSource
()¶ - Returns default builders’ data source
- rtype
opencascade::handle<MeshVS_DataSource>
-
GetDrawer
()¶ - Returns default builders’ drawer
- rtype
opencascade::handle<MeshVS_Drawer>
-
GetFreeId
()¶ - Returns the smallest positive ID, not occupied by any builder. This method using when builder is created with ID = -1
- rtype
int
-
GetHiddenElems
()¶ - Returns map of hidden elements (may be null handle)
- rtype
opencascade::handle<TColStd_HPackedMapOfInteger>
-
GetHiddenNodes
()¶ - Returns map of hidden nodes (may be null handle)
- rtype
opencascade::handle<TColStd_HPackedMapOfInteger>
-
GetHilighter
()¶ - Returns hilighter
- rtype
opencascade::handle<MeshVS_PrsBuilder>
-
GetMeshSelMethod
()¶ - Returns set mesh selection method (see MeshVS.cdl)
- rtype
MeshVS_MeshSelectionMethod
-
GetOwnerMaps
()¶ - Returns map of owners.
- param IsElement
- type IsElement
bool
- rtype
MeshVS_DataMapOfIntegerOwner
-
GetSelectableNodes
()¶ - Returns map of selectable elements (may be null handle)
- rtype
opencascade::handle<TColStd_HPackedMapOfInteger>
-
IsHiddenElem
()¶ - Returns True if specified element is hidden By default no elements are hidden
- param ID
- type ID
int
- rtype
bool
-
IsHiddenNode
()¶ - Returns True if specified node is hidden. By default all nodes are hidden
- param ID
- type ID
int
- rtype
bool
-
IsSelectableElem
()¶ - Returns True if specified element is not hidden
- param ID
- type ID
int
- rtype
bool
-
IsSelectableNode
()¶ - Returns True if specified node is specified as selectable.
- param ID
- type ID
int
- rtype
bool
-
IsWholeMeshOwner
()¶ - Returns True if the given owner represents a whole mesh.
- param theOwner
- type theOwner
SelectMgr_EntityOwner
- rtype
bool
-
RemoveBuilder
()¶ - Removes builder from sequence. If it is hilighter, hilighter will be NULL ( Don’t remember to set it to other after!!! )
- param Index
- type Index
int
- rtype
None
-
RemoveBuilderById
()¶ - Removes builder with identificator Id
- param Id
- type Id
int
- rtype
None
-
SetDataSource
()¶ - Sets default builders’ data source
- param aDataSource
- type aDataSource
MeshVS_DataSource
- rtype
None
-
SetDrawer
()¶ - Sets default builders’ drawer
- param aDrawer
- type aDrawer
MeshVS_Drawer
- rtype
None
-
SetHiddenElems
()¶ - Sets map of hidden elements
- param Ids
- type Ids
TColStd_HPackedMapOfInteger
- rtype
None
-
SetHiddenNodes
()¶ - Sets map of hidden nodes, which shall not be displayed individually. If nodes shared by some elements shall not be drawn, they should be included into that map
- param Ids
- type Ids
TColStd_HPackedMapOfInteger
- rtype
None
-
SetHilighter
()¶ - Changes hilighter ( see above )
- param Builder
- type Builder
MeshVS_PrsBuilder
- rtype
None* Sets builder with sequence index ‘Index’ as hilighter
- param Index
- type Index
int
- rtype
bool
-
SetHilighterById
()¶ - Sets builder with identificator ‘Id’ as hilighter
- param Id
- type Id
int
- rtype
bool
-
SetMeshSelMethod
()¶ - Sets mesh selection method (see MeshVS.cdl)
- param M
- type M
MeshVS_MeshSelectionMethod
- rtype
None
-
SetSelectableNodes
()¶ - Sets map of selectable nodes.
- param Ids
- type Ids
TColStd_HPackedMapOfInteger
- rtype
None
-
UpdateSelectableNodes
()¶ - Automatically computes selectable nodes; the node is considered as being selectable if it is either not hidden, or is hidden but referred by at least one non-hidden element. Thus all nodes that are visible (either individually, or as ends or corners of elements) are selectable by default.
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MeshVS_MeshEntityOwner
(*args)¶ Bases:
OCC.Core.SelectMgr.SelectMgr_EntityOwner
- Parameters
SelObj –
- type SelObj
SelectMgr_SOPtr
- param ID
- type ID
int
- param MeshEntity
- type MeshEntity
Standard_Address
- param Type
- type Type
MeshVS_EntityType
- param Priority
default value is 0
- type Priority
int
- param IsGroup
default value is Standard_False
- type IsGroup
bool
- rtype
None
-
Clear
()¶ - Parameters
PM –
- type PM
PrsMgr_PresentationManager
- param Mode
default value is 0
- type Mode
int
- rtype
void
-
static
DownCast
(t)¶
-
ID
()¶ - Returns ID of element or node data structure
- rtype
int
-
IsGroup
()¶ - Returns true if owner represents group of nodes or elements
- rtype
bool
-
IsHilighted
()¶ - Returns true if owner is hilighted
- param PM
- type PM
PrsMgr_PresentationManager
- param Mode
default value is 0
- type Mode
int
- rtype
bool
-
Owner
()¶ - Returns an address of element or node data structure
- rtype
Standard_Address
-
Type
()¶ - Returns type of element or node data structure
- rtype
MeshVS_EntityType
-
Unhilight
()¶ - Strip hilight of owner
- param PM
- type PM
PrsMgr_PresentationManager
- param Mode
default value is 0
- type Mode
int
- rtype
void
-
property
thisown
¶ The membership flag
-
class
MeshVS_MeshOwner
(*args)¶ Bases:
OCC.Core.SelectMgr.SelectMgr_EntityOwner
- Parameters
theSelObj –
- type theSelObj
SelectMgr_SOPtr
- param theDS
- type theDS
MeshVS_DataSource
- param thePriority
default value is 0
- type thePriority
int
- rtype
None
-
AddSelectedEntities
()¶ - Saves ids of selected mesh entities
- param Nodes
- type Nodes
TColStd_HPackedMapOfInteger
- param Elems
- type Elems
TColStd_HPackedMapOfInteger
- rtype
void
-
ClearSelectedEntities
()¶ - Clears ids of selected mesh entities
- rtype
void
-
static
DownCast
(t)¶
-
GetDataSource
()¶ - Return type
opencascade::handle<MeshVS_DataSource>
-
GetDetectedElements
()¶ - Returns ids of hilighted mesh elements
- rtype
opencascade::handle<TColStd_HPackedMapOfInteger>
-
GetDetectedNodes
()¶ - Returns ids of hilighted mesh nodes
- rtype
opencascade::handle<TColStd_HPackedMapOfInteger>
-
GetSelectedElements
()¶ - Returns ids of selected mesh elements
- rtype
opencascade::handle<TColStd_HPackedMapOfInteger>
-
GetSelectedNodes
()¶ - Returns ids of selected mesh nodes
- rtype
opencascade::handle<TColStd_HPackedMapOfInteger>
-
SetDetectedEntities
()¶ - Saves ids of hilighted mesh entities
- param Nodes
- type Nodes
TColStd_HPackedMapOfInteger
- param Elems
- type Elems
TColStd_HPackedMapOfInteger
- rtype
None
-
Unhilight
()¶ - Parameters
PM –
- type PM
PrsMgr_PresentationManager
- param Mode
default value is 0
- type Mode
int
- rtype
void
-
property
thisown
¶ The membership flag
-
class
MeshVS_MeshPrsBuilder
(*args)¶ Bases:
OCC.Core.MeshVS.MeshVS_PrsBuilder
- Creates builder with certain display mode flags, data source, ID and priority
- param Parent
- type Parent
MeshVS_Mesh
- param Flags
default value is MeshVS_DMF_OCCMask
- type Flags
int
- param DS
default value is 0
- type DS
MeshVS_DataSource
- param Id
default value is -1
- type Id
int
- param Priority
default value is MeshVS_BP_Mesh
- type Priority
int
- rtype
None
-
static
AddVolumePrs
()¶ - Add to array polygons or polylines representing volume
- param Topo
- type Topo
MeshVS_HArray1OfSequenceOfInteger
- param Nodes
- type Nodes
TColStd_Array1OfReal
- param NbNodes
- type NbNodes
int
- param Array
- type Array
Graphic3d_ArrayOfPrimitives
- param IsReflected
- type IsReflected
bool
- param IsShrinked
- type IsShrinked
bool
- param IsSelect
- type IsSelect
bool
- param ShrinkCoef
- type ShrinkCoef
float
- rtype
void
-
BuildElements
()¶ - Builds elements presentation
- param Prs
- type Prs
Prs3d_Presentation
- param IDs
- type IDs
TColStd_PackedMapOfInteger
- param IDsToExclude
- type IDsToExclude
TColStd_PackedMapOfInteger
- param DisplayMode
- type DisplayMode
int
- rtype
void
-
BuildHilightPrs
()¶ - Builds presentation of hilighted entity
- param Prs
- type Prs
Prs3d_Presentation
- param IDs
- type IDs
TColStd_PackedMapOfInteger
- param IsElement
- type IsElement
bool
- rtype
void
-
BuildNodes
()¶ - Builds nodes presentation
- param Prs
- type Prs
Prs3d_Presentation
- param IDs
- type IDs
TColStd_PackedMapOfInteger
- param IDsToExclude
- type IDsToExclude
TColStd_PackedMapOfInteger
- param DisplayMode
- type DisplayMode
int
- rtype
void
-
static
DownCast
(t)¶
-
static
HowManyPrimitives
()¶ - Calculate how many polygons or polylines are necessary to draw passed topology
- param Topo
- type Topo
MeshVS_HArray1OfSequenceOfInteger
- param AsPolygons
- type AsPolygons
bool
- param IsSelect
- type IsSelect
bool
- param NbNodes
- type NbNodes
int
- param Vertices
- type Vertices
int
- param Bounds
- type Bounds
int
- rtype
void
-
property
thisown
¶ The membership flag
-
class
MeshVS_NodalColorPrsBuilder
(*args)¶ Bases:
OCC.Core.MeshVS.MeshVS_PrsBuilder
- Parameters
Parent –
- type Parent
MeshVS_Mesh
- param Flags
default value is MeshVS_DMF_NodalColorDataPrs
- type Flags
int
- param DS
default value is 0
- type DS
MeshVS_DataSource
- param Id
default value is -1
- type Id
int
- param Priority
default value is MeshVS_BP_NodalColor
- type Priority
int
- rtype
None
-
AddVolumePrs
()¶ - Add to array polygons or polylines representing volume
- param theTopo
- type theTopo
MeshVS_HArray1OfSequenceOfInteger
- param theNodes
- type theNodes
TColStd_Array1OfInteger
- param theCoords
- type theCoords
TColStd_Array1OfReal
- param theArray
- type theArray
Graphic3d_ArrayOfPrimitives
- param theIsShaded
- type theIsShaded
bool
- param theNbColors
- type theNbColors
int
- param theNbTexColors
- type theNbTexColors
int
- param theColorRatio
- type theColorRatio
float
- rtype
None
-
static
DownCast
(t)¶
-
GetColor
()¶ - Returns color assigned to single node
- param ID
- type ID
int
- param theColor
- type theColor
Quantity_Color
- rtype
bool
-
GetColorMap
()¶ - Return colors used for texrture presentation
- rtype
Aspect_SequenceOfColor
-
GetColors
()¶ - Returns map of colors assigned to nodes.
- rtype
MeshVS_DataMapOfIntegerColor
-
GetInvalidColor
()¶ - Return color representing invalid texture coordinate (laying outside range [0, 1])
- rtype
Quantity_Color
-
GetTextureCoord
()¶ - Return correspondence between node IDs and texture coordinate (range [0, 1])
- param theID
- type theID
int
- rtype
float
-
GetTextureCoords
()¶ - Get correspondence between node IDs and texture coordinates (range [0, 1])
- rtype
TColStd_DataMapOfIntegerReal
-
HasColors
()¶ - Returns true, if map isn’t empty
- rtype
bool
-
IsUseTexture
()¶ - Verify whether texture is used to build presentation
- rtype
bool
-
SetColor
()¶ - Sets color assigned to single node
- param ID
- type ID
int
- param theColor
- type theColor
Quantity_Color
- rtype
None
-
SetColorMap
()¶ - Set colors to be used for texrture presentation theColors - colors for valid coordinates (laying in range [0, 1])
- param theColors
- type theColors
Aspect_SequenceOfColor
- rtype
None
-
SetColors
()¶ - Sets map of colors assigned to nodes.
- param Map
- type Map
MeshVS_DataMapOfIntegerColor
- rtype
None
-
SetInvalidColor
()¶ - Set color representing invalid texture coordinate (laying outside range [0, 1])
- param theInvalidColor
- type theInvalidColor
Quantity_Color
- rtype
None
-
SetTextureCoord
()¶ - Specify correspondence between node ID and texture coordinate (range [0, 1])
- param theID
- type theID
int
- param theCoord
- type theCoord
float
- rtype
None
-
SetTextureCoords
()¶ - Specify correspondence between node IDs and texture coordinates (range [0, 1])
- param theMap
- type theMap
TColStd_DataMapOfIntegerReal
- rtype
None
-
UseTexture
()¶ - Specify whether texture must be used to build presentation
- param theToUse
- type theToUse
bool
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MeshVS_PolyhedronVerts
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
Clear
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
Last
()¶
-
Prepend
()¶
-
Remove
()¶
-
RemoveFirst
()¶
-
Reverse
()¶
-
Set
()¶
-
Size
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_PolyhedronVertsIter
(*args)¶ Bases:
object
-
ChangeValue
()¶
-
More
()¶
-
Next
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_PrsBuilder
(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Build
()¶ - Builds presentation of certain type of data. Prs is presentation object which this method constructs. IDs is set of numeric identificators forming object appearance. IDsToExclude is set of IDs to exclude from processing. If some entity has been excluded, it is not processed by other builders. IsElement indicates, IDs is identificators of nodes or elements. DisplayMode is numeric constant describing display mode (see MeshVS_DisplayModeFlags.hxx)
- param Prs
- type Prs
Prs3d_Presentation
- param IDs
- type IDs
TColStd_PackedMapOfInteger
- param IDsToExclude
- type IDsToExclude
TColStd_PackedMapOfInteger
- param IsElement
- type IsElement
bool
- param DisplayMode
- type DisplayMode
int
- rtype
void
-
CustomBuild
()¶ - This method is called to build presentation of custom elements (they have MeshVS_ET_0D type). IDs is set of numeric identificators of elements for custom building. IDsToExclude is set of IDs to exclude from processing. If some entity has been excluded, it is not processed by other builders. DisplayMode is numeric constant describing display mode (see MeshVS_DisplayModeFlags.hxx)
- param Prs
- type Prs
Prs3d_Presentation
- param IDs
- type IDs
TColStd_PackedMapOfInteger
- param IDsToExclude
- type IDsToExclude
TColStd_PackedMapOfInteger
- param DisplayMode
- type DisplayMode
int
- rtype
void
-
CustomSensitiveEntity
()¶ - This method is called to build sensitive of custom elements ( they have MeshVS_ET_0D type )
- param Owner
- type Owner
SelectMgr_EntityOwner
- param SelectMode
- type SelectMode
int
- rtype
opencascade::handle<Select3D_SensitiveEntity>
-
static
DownCast
(t)¶
-
GetDataSource
()¶ - Returns custom data source or default ( from MeshVS_Mesh ) if custom is NULL
- rtype
opencascade::handle<MeshVS_DataSource>
-
GetDrawer
()¶ - Returns custom drawer or default ( from MeshVS_Mesh ) if custom is NULL
- rtype
opencascade::handle<MeshVS_Drawer>
-
GetFlags
()¶ - Returns flags, assigned with builder during creation
- rtype
int
-
GetId
()¶ - Returns builder ID
- rtype
int
-
GetPresentationManager
()¶ - Get presentation manager of builder
- rtype
opencascade::handle<PrsMgr_PresentationManager3d>
-
GetPriority
()¶ - Returns priority; as priority bigger, as soon builder will be called.
- rtype
int
-
IsExcludingOn
()¶ - Read excluding state
- rtype
bool
-
SetDataSource
()¶ - Change custom data source
- param newDS
- type newDS
MeshVS_DataSource
- rtype
None
-
SetDrawer
()¶ - Change custom drawer
- param newDr
- type newDr
MeshVS_Drawer
- rtype
None
-
SetExcluding
()¶ - Set excluding state. If it is Standard_True, the nodes or elements, processed by current builder will be noted and next builder won’t process its.
- param state
- type state
bool
- rtype
None
-
SetPresentationManager
()¶ - Set presentation manager for builder
- param thePrsMgr
- type thePrsMgr
PrsMgr_PresentationManager3d
- rtype
None
-
TestFlags
()¶ - Test whether display mode has flags assigned with this builder. This method has default implementation and can be redefined for advance behavior Returns Standard_True only if display mode is appropriate for this builder
- param DisplayMode
- type DisplayMode
int
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
MeshVS_SensitiveFace
(*args)¶ Bases:
OCC.Core.Select3D.Select3D_SensitiveFace
- Parameters
theOwner –
- type theOwner
SelectMgr_EntityOwner
- param thePoints
- type thePoints
TColgp_Array1OfPnt
- param theSensType
default value is Select3D_TOS_INTERIOR
- type theSensType
Select3D_TypeOfSensitivity
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
MeshVS_SensitiveMesh
(*args)¶ Bases:
object
- Parameters
theOwner –
- type theOwner
SelectMgr_EntityOwner
- param theMode
default value is 0
- type theMode
int
- rtype
None
-
BoundingBox
()¶ - Returns bounding box of mesh
- rtype
Select3D_BndBox3d
-
CenterOfGeometry
()¶ - Returns center of mesh
- rtype
gp_Pnt
-
static
DownCast
(t)¶
-
GetConnected
()¶ - Return type
opencascade::handle<Select3D_SensitiveEntity>
-
Matches
()¶ - Checks whether sensitive overlaps current selecting volume.
- param theMgr
- type theMgr
SelectBasics_SelectingVolumeManager
- param thePickResult
- type thePickResult
SelectBasics_PickResult
- rtype
bool
-
NbSubElements
()¶ - Returns the amount of mesh nodes
- rtype
int
-
property
thisown
¶ The membership flag
-
class
MeshVS_SensitivePolyhedron
(*args)¶ Bases:
object
- Parameters
theOwner –
- type theOwner
SelectMgr_EntityOwner
- param theNodes
- type theNodes
TColgp_Array1OfPnt
- param theTopo
- type theTopo
MeshVS_HArray1OfSequenceOfInteger
- rtype
None
-
BoundingBox
()¶ - Return type
Select3D_BndBox3d
-
static
DownCast
(t)¶
-
GetConnected
()¶ - Return type
opencascade::handle<Select3D_SensitiveEntity>
-
Matches
()¶ - Parameters
theMgr –
- type theMgr
SelectBasics_SelectingVolumeManager
- param thePickResult
- type thePickResult
SelectBasics_PickResult
- rtype
bool
-
NbSubElements
()¶ - Returns the amount of nodes of polyhedron
- rtype
int
-
property
thisown
¶ The membership flag
-
class
MeshVS_SensitiveQuad
(*args)¶ Bases:
object
- Creates a new instance and initializes quadrangle vertices with the given points
- param theOwner
- type theOwner
SelectMgr_EntityOwner
- param theQuadVerts
- type theQuadVerts
TColgp_Array1OfPnt
- rtype
None* Creates a new instance and initializes quadrangle vertices with the given points
- param theOwner
- type theOwner
SelectMgr_EntityOwner
- param thePnt1
- type thePnt1
gp_Pnt
- param thePnt2
- type thePnt2
gp_Pnt
- param thePnt3
- type thePnt3
gp_Pnt
- param thePnt4
- type thePnt4
gp_Pnt
- rtype
None
-
BoundingBox
()¶ - Returns coordinates of the box
- rtype
Select3D_BndBox3d
-
CenterOfGeometry
()¶ - Returns center of the box
- rtype
gp_Pnt
-
static
DownCast
(t)¶
-
GetConnected
()¶ - Returns a copy of this sensitive quadrangle
- rtype
opencascade::handle<Select3D_SensitiveEntity>
-
Matches
()¶ - Checks whether the box overlaps current selecting volume
- param theMgr
- type theMgr
SelectBasics_SelectingVolumeManager
- param thePickResult
- type thePickResult
SelectBasics_PickResult
- rtype
bool
-
NbSubElements
()¶ - Returns the amount of sub-entities in sensitive
- rtype
int
-
property
thisown
¶ The membership flag
-
class
MeshVS_SensitiveSegment
(*args)¶ Bases:
OCC.Core.Select3D.Select3D_SensitiveSegment
- Parameters
theOwner –
- type theOwner
SelectMgr_EntityOwner
- param theFirstPnt
- type theFirstPnt
gp_Pnt
- param theLastPnt
- type theLastPnt
gp_Pnt
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
MeshVS_SequenceOfPrsBuilder
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MeshVS_SymmetricPairHasher
¶ Bases:
object
-
static
HashCode
()¶ - Computes a hash code for the node pair, in the range [1, theUpperBound] @param theNodePair the node pair which hash code is to be computed @param theUpperBound the upper bound of the range a computing hash code must be within returns a computed hash code, in the range [1, theUpperBound]
- param theNodePair
- type theNodePair
MeshVS_NodePair
- param theUpperBound
- type theUpperBound
int
- rtype
int
-
static
IsEqual
()¶ - Parameters
thePair1 –
- type thePair1
MeshVS_NodePair
- param thePair2
- type thePair2
MeshVS_NodePair
- rtype
bool
-
property
thisown
¶ The membership flag
-
static
-
class
MeshVS_TextPrsBuilder
(*args)¶ Bases:
OCC.Core.MeshVS.MeshVS_PrsBuilder
- Parameters
Parent –
- type Parent
MeshVS_Mesh
- param Height
- type Height
float
- param Color
- type Color
Quantity_Color
- param Flags
default value is MeshVS_DMF_TextDataPrs
- type Flags
int
- param DS
default value is 0
- type DS
MeshVS_DataSource
- param Id
default value is -1
- type Id
int
- param Priority
default value is MeshVS_BP_Text
- type Priority
int
- rtype
None
-
static
DownCast
(t)¶
-
GetText
()¶ - Returns text assigned with single node or element
- param IsElement
- type IsElement
bool
- param ID
- type ID
int
- param Text
- type Text
TCollection_AsciiString
- rtype
bool
-
GetTexts
()¶ - Returns map of text assigned with nodes ( IsElement = False ) or elements ( IsElement = True )
- param IsElement
- type IsElement
bool
- rtype
MeshVS_DataMapOfIntegerAsciiString
-
HasTexts
()¶ - Returns True if map isn’t empty
- param IsElement
- type IsElement
bool
- rtype
bool
-
SetText
()¶ - Sets text assigned with single node or element
- param IsElement
- type IsElement
bool
- param ID
- type ID
int
- param Text
- type Text
TCollection_AsciiString
- rtype
None
-
SetTexts
()¶ - Sets map of text assigned with nodes or elements
- param IsElement
- type IsElement
bool
- param Map
- type Map
MeshVS_DataMapOfIntegerAsciiString
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MeshVS_Tool
¶ Bases:
object
-
static
CreateAspectFillArea3d
()¶ - Creates fill area aspect with values from Drawer according to keys from DrawerAttribute
- param theDr
- type theDr
MeshVS_Drawer
- param UseDefaults
default value is Standard_True
- type UseDefaults
bool
- rtype
opencascade::handle<Graphic3d_AspectFillArea3d>* Creates fill aspect with values from Drawer according to keys from DrawerAttribute and specific material aspect
- param theDr
- type theDr
MeshVS_Drawer
- param Mat
- type Mat
Graphic3d_MaterialAspect
- param UseDefaults
default value is Standard_True
- type UseDefaults
bool
- rtype
opencascade::handle<Graphic3d_AspectFillArea3d>
-
static
CreateAspectLine3d
()¶ - Creates line aspect with values from Drawer according to keys from DrawerAttribute
- param theDr
- type theDr
MeshVS_Drawer
- param UseDefaults
default value is Standard_True
- type UseDefaults
bool
- rtype
opencascade::handle<Graphic3d_AspectLine3d>
-
static
CreateAspectMarker3d
()¶ - Creates marker aspect with values from Drawer according to keys from DrawerAttribute
- param theDr
- type theDr
MeshVS_Drawer
- param UseDefaults
default value is Standard_True
- type UseDefaults
bool
- rtype
opencascade::handle<Graphic3d_AspectMarker3d>
-
static
CreateAspectText3d
()¶ - Creates text aspect with values from Drawer according to keys from DrawerAttribute
- param theDr
- type theDr
MeshVS_Drawer
- param UseDefaults
default value is Standard_True
- type UseDefaults
bool
- rtype
opencascade::handle<Graphic3d_AspectText3d>
-
static
GetAverageNormal
()¶ - Get an average of normals to non-planar polygon described by these points or compute normal of planar polygon. If the polygon isn’t planar, function returns false
- param Nodes
- type Nodes
TColStd_Array1OfReal
- param Norm
- type Norm
gp_Vec
- rtype
bool
-
static
GetNormal
()¶ - Get one of normals to polygon described by these points. If the polygon isn’t planar, function returns false
- param Nodes
- type Nodes
TColStd_Array1OfReal
- param Norm
- type Norm
gp_Vec
- rtype
bool
-
property
thisown
¶ The membership flag
-
static
-
class
MeshVS_TwoColors
¶ Bases:
object
-
property
b1
¶
-
property
b2
¶
-
property
g1
¶
-
property
g2
¶
-
property
r1
¶
-
property
r2
¶
-
property
thisown
¶ The membership flag
-
property
-
class
MeshVS_TwoColorsHasher
¶ Bases:
object
-
static
HashCode
()¶
-
static
IsEqual
()¶
-
property
thisown
¶ The membership flag
-
static
-
class
MeshVS_TwoNodes
(*args)¶ Bases:
object
- Parameters
aFirst – default value is 0 :type aFirst: int :param aSecond: default value is 0 :type aSecond: int :rtype: None
-
property
First
¶
-
property
Second
¶
-
property
thisown
¶ The membership flag
-
class
MeshVS_TwoNodesHasher
¶ Bases:
object
-
static
HashCode
()¶
-
static
IsEqual
()¶
-
property
thisown
¶ The membership flag
-
static
-
class
MeshVS_VectorPrsBuilder
(*args)¶ Bases:
OCC.Core.MeshVS.MeshVS_PrsBuilder
- Parameters
Parent –
- type Parent
MeshVS_Mesh
- param MaxLength
- type MaxLength
float
- param VectorColor
- type VectorColor
Quantity_Color
- param Flags
default value is MeshVS_DMF_VectorDataPrs
- type Flags
int
- param DS
default value is 0
- type DS
MeshVS_DataSource
- param Id
default value is -1
- type Id
int
- param Priority
default value is MeshVS_BP_Vector
- type Priority
int
- param IsSimplePrs
default value is Standard_False
- type IsSimplePrs
bool
- rtype
None
-
static
DownCast
(t)¶
-
DrawVector
()¶ - Adds to array of polygons and polylines some primitive representing single vector
- param theTrsf
- type theTrsf
gp_Trsf
- param Length
- type Length
float
- param MaxLength
- type MaxLength
float
- param ArrowPoints
- type ArrowPoints
TColgp_Array1OfPnt
- param Lines
- type Lines
Graphic3d_ArrayOfPrimitives
- param ArrowLines
- type ArrowLines
Graphic3d_ArrayOfPrimitives
- param Triangles
- type Triangles
Graphic3d_ArrayOfPrimitives
- rtype
None
-
GetMinMaxVectorValue
()¶ - Calculates minimal and maximal length of vectors in map ( nodal, if IsElement = False or elemental, if IsElement = True )
- param IsElement
- type IsElement
bool
- param MinValue
- type MinValue
float
- param MaxValue
- type MaxValue
float
- rtype
None
-
GetVector
()¶ - Returns vector assigned with certain node or element
- param IsElement
- type IsElement
bool
- param ID
- type ID
int
- param Vect
- type Vect
gp_Vec
- rtype
bool
-
GetVectors
()¶ - Returns map of vectors assigned with nodes or elements
- param IsElement
- type IsElement
bool
- rtype
MeshVS_DataMapOfIntegerVector
-
HasVectors
()¶ - Returns true, if map isn’t empty
- param IsElement
- type IsElement
bool
- rtype
bool
-
SetSimplePrsMode
()¶ - Sets flag that indicates is simple vector arrow mode uses or not default value is False
- param IsSimpleArrow
- type IsSimpleArrow
bool
- rtype
None
-
SetSimplePrsParams
()¶ - Sets parameters of simple vector arrwo presentation theLineWidthParam - coefficient of vector line width (to draw line instead of arrow) theStartParam and theEndParam parameters of start and end of thickened ends position of thickening calculates according to parameters and maximum vector length default values are: theLineWidthParam = 2.5 theStartParam = 0.85 theEndParam = 0.95
- param theLineWidthParam
- type theLineWidthParam
float
- param theStartParam
- type theStartParam
float
- param theEndParam
- type theEndParam
float
- rtype
None
-
SetVector
()¶ - Sets vector assigned with certain node or element
- param IsElement
- type IsElement
bool
- param ID
- type ID
int
- param Vect
- type Vect
gp_Vec
- rtype
None
-
SetVectors
()¶ - Sets map of vectors assigned with nodes or elements
- param IsElement
- type IsElement
bool
- param Map
- type Map
MeshVS_DataMapOfIntegerVector
- rtype
None
-
static
calculateArrow
()¶ - Calculates points of arrow presentation
- param Points
- type Points
TColgp_Array1OfPnt
- param Length
- type Length
float
- param ArrowPart
- type ArrowPart
float
- rtype
float
-
property
thisown
¶ The membership flag