OCC.Core.BRepMesh module¶
BRepMesh module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_brepmesh.html
-
class
BRepMesh_BaseMeshAlgo
(*args, **kwargs)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_MeshAlgo
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
property
thisown
¶ The membership flag
-
class
BRepMesh_Circle
(*args)¶ Bases:
object
- Default constructor.
- rtype
None* Constructor. @param theLocation location of a circle. @param theRadius radius of a circle.
- param theLocation
- type theLocation
gp_XY
- param theRadius
- type theRadius
float
- rtype
None
-
Location
()¶ - Returns location of a circle.
- rtype
inline gp_XY
-
Radius
()¶ - Returns radius of a circle.
- rtype
inline float
-
SetLocation
()¶ - Sets location of a circle. @param theLocation location of a circle.
- param theLocation
- type theLocation
gp_XY
- rtype
inline void
-
SetRadius
()¶ - Sets radius of a circle. @param theRadius radius of a circle.
- param theRadius
- type theRadius
float
- rtype
inline void
-
property
thisown
¶ The membership flag
-
class
BRepMesh_CircleInspector
(*args)¶ Bases:
object
- Constructor. @param theTolerance tolerance to be used for identification of shot circles. @param theReservedSize size to be reserved for vector of circles. @param theAllocator memory allocator to be used by internal collections.
- param theTolerance
- type theTolerance
float
- param theReservedSize
- type theReservedSize
int
- param theAllocator
- type theAllocator
NCollection_IncAllocator
- rtype
None
-
Bind
()¶ - Adds the circle to vector of circles at the given position. @param theIndex position of circle in the vector. @param theCircle circle to be added.
- param theIndex
- type theIndex
int
- param theCircle
- type theCircle
BRepMesh_Circle
- rtype
inline void
-
Circle
()¶ - Returns circle with the given index. @param theIndex index of circle. returns circle with the given index.
- param theIndex
- type theIndex
int
- rtype
inline BRepMesh_Circle
-
Circles
()¶ - Resutns vector of registered circles.
- rtype
inline IMeshData::VectorOfCircle
-
GetShotCircles
()¶ - Returns list of circles shot by the reference point.
- rtype
inline IMeshData::ListOfInteger
-
Inspect
()¶ - Performs inspection of a circle with the given index. @param theTargetIndex index of a circle to be checked. returns status of the check.
- param theTargetIndex
- type theTargetIndex
int
- rtype
inline NCollection_CellFilter_Action
-
static
IsEqual
()¶ - Checks indices for equlity.
- param theIndex
- type theIndex
int
- param theTargetIndex
- type theTargetIndex
int
- rtype
bool
-
SetPoint
()¶ - Set reference point to be checked. @param thePoint bullet point.
- param thePoint
- type thePoint
gp_XY
- rtype
inline void
-
property
thisown
¶ The membership flag
-
class
BRepMesh_CircleTool
(*args)¶ Bases:
object
- Constructor. @param theAllocator memory allocator to be used by internal structures.
- param theAllocator
- type theAllocator
NCollection_IncAllocator
- rtype
None* Constructor. @param theReservedSize size to be reserved for vector of circles. @param theAllocator memory allocator to be used by internal structures.
- param theReservedSize
- type theReservedSize
int
- param theAllocator
- type theAllocator
NCollection_IncAllocator
- rtype
None
-
Bind
()¶ - Binds the circle to the tool. @param theIndex index a circle should be bound with. @param theCircle circle to be bound.
- param theIndex
- type theIndex
int
- param theCircle
- type theCircle
gp_Circ2d
- rtype
None* Computes circle on three points and bind it to the tool. @param theIndex index a circle should be bound with. @param thePoint1 first point. @param thePoint2 second point. @param thePoint3 third point. returns False in case of impossibility to build a circle on the given points, True elsewhere.
- param theIndex
- type theIndex
int
- param thePoint1
- type thePoint1
gp_XY
- param thePoint2
- type thePoint2
gp_XY
- param thePoint3
- type thePoint3
gp_XY
- rtype
bool
-
Delete
()¶ - Deletes a circle from the tool. @param theIndex index of a circle to be removed.
- param theIndex
- type theIndex
int
- rtype
None
-
Init
()¶ - Initializes the tool. @param theReservedSize size to be reserved for vector of circles.
- param Standard_Integer
- type Standard_Integer
- rtype
inline void
-
IsEmpty
()¶ - Retruns true if cell filter contains no circle.
- rtype
inline bool
-
static
MakeCircle
()¶ - Computes circle on three points. @param thePoint1 first point. @param thePoint2 second point. @param thePoint3 third point. @param[out] theLocation center of computed circle. @param[out] theRadius radius of computed circle. returns False in case of impossibility to build a circle on the given points, True elsewhere.
- param thePoint1
- type thePoint1
gp_XY
- param thePoint2
- type thePoint2
gp_XY
- param thePoint3
- type thePoint3
gp_XY
- param theLocation
- type theLocation
gp_XY
- param theRadius
- type theRadius
float
- rtype
bool
-
MocBind
()¶ - Binds implicit zero circle. @param theIndex index a zero circle should be bound with.
- param theIndex
- type theIndex
int
- rtype
None
-
Select
()¶ - Select the circles shot by the given point. @param thePoint bullet point.
- param thePoint
- type thePoint
gp_XY
- rtype
IMeshData::ListOfInteger
-
SetCellSize
()¶ - Sets new size for cell filter. @param theSize cell size to be set for X and Y dimensions.
- param theSize
- type theSize
float
- rtype
inline void* Sets new size for cell filter. @param theSizeX cell size to be set for X dimension. @param theSizeY cell size to be set for Y dimension.
- param theSizeX
- type theSizeX
float
- param theSizeY
- type theSizeY
float
- rtype
inline void
-
SetMinMaxSize
()¶ - Sets limits of inspection area. @param theMin bottom left corner of inspection area. @param theMax top right corner of inspection area.
- param theMin
- type theMin
gp_XY
- param theMax
- type theMax
gp_XY
- rtype
inline void
-
property
thisown
¶ The membership flag
-
class
BRepMesh_Classifier
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Constructor.
- rtype
None
-
static
DownCast
(t)¶
-
Perform
()¶ - Performs classification of the given point regarding to face internals. @param thePoint Point in parametric space to be classified. returns TopAbs_IN if point lies within face boundaries and TopAbs_OUT elsewhere.
- param thePoint
- type thePoint
gp_Pnt2d
- rtype
TopAbs_State
-
RegisterWire
()¶ - Registers wire specified by sequence of points for further classification of points. @param theWire Wire to be registered. Specified by sequence of points. @param theTolUV Tolerance to be used for calculations in parametric space. @param theUmin Lower U boundary of the face in parametric space. @param theUmax Upper U boundary of the face in parametric space. @param theVmin Lower V boundary of the face in parametric space. @param theVmax Upper V boundary of the face in parametric space.
- param theWire
- type theWire
NCollection_Sequence< gp_Pnt2d *>
- param theTolUV
- type theTolUV
std::pair<float, float>
- param theRangeU
- type theRangeU
std::pair<float, float>
- param theRangeV
- type theRangeV
std::pair<float, float>
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_Context
(*args)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_Context
- Constructor.
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_CurveTessellator
(*args)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_CurveTessellator
- Constructor.
- param theEdge
- type theEdge
IMeshData::IEdgeHandle
- param theParameters
- type theParameters
IMeshTools_Parameters
- rtype
None* Constructor.
- param theEdge
- type theEdge
IMeshData::IEdgeHandle
- param theOrientation
- type theOrientation
TopAbs_Orientation
- param theFace
- type theFace
IMeshData::IFaceHandle
- param theParameters
- type theParameters
IMeshTools_Parameters
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_DataStructureOfDelaun
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Constructor. @param theAllocator memory allocator to be used by internal structures. @param theReservedNodeSize presumed number of nodes in this mesh.
- param theAllocator
- type theAllocator
NCollection_IncAllocator
- param theReservedNodeSize
default value is 100
- type theReservedNodeSize
int
- rtype
None
-
AddElement
()¶ - Adds element to the mesh if it is not already in the mesh. @param theElement element to be added to the mesh. returns index of the element in the structure.
- param theElement
- type theElement
BRepMesh_Triangle
- rtype
int
-
AddLink
()¶ - Adds link to the mesh if it is not already in the mesh. @param theLink link to be added to the mesh. returns index of the link in the structure.
- param theLink
- type theLink
BRepMesh_Edge
- rtype
int
-
AddNode
()¶ - Adds node to the mesh if it is not already in the mesh. @param theNode node to be added to the mesh. @param isForceAdd adds the given node to structure without checking on coincidence with other nodes. returns index of the node in the structure.
- param theNode
- type theNode
BRepMesh_Vertex
- param isForceAdd
default value is Standard_False
- type isForceAdd
bool
- rtype
int
-
Allocator
()¶ - Returns memory allocator used by the structure.
- rtype
inline opencascade::handle<NCollection_IncAllocator>
-
ClearDeleted
()¶ - Substitutes deleted items by the last one from corresponding map to have only non-deleted elements, links or nodes in the structure.
- rtype
None
-
ClearDomain
()¶ - Removes all elements.
- rtype
None
-
Data
()¶ - Gives the data structure for initialization of cell size and tolerance.
- rtype
inline opencascade::handle<BRepMesh_VertexTool>
-
static
DownCast
(t)¶
-
Dump
()¶ - Parameters
theFileNameStr –
- type theFileNameStr
char *
- rtype
None
-
ElementNodes
()¶ - Returns indices of nodes forming the given element. @param theElement element which nodes should be retrieved. @param[out] theNodes nodes of the given element.
- param theElement
- type theElement
BRepMesh_Triangle
- param )
- type )
int ( theNodes
- rtype
None
-
ElementsConnectedTo
()¶ - Returns indices of elements conected to the link with the given index. @param theLinkIndex index of link whose data should be retrieved. returns indices of elements conected to the link.
- param theLinkIndex
- type theLinkIndex
int
- rtype
BRepMesh_PairOfIndex
-
ElementsOfDomain
()¶ - Returns map of indices of elements registered in mesh.
- rtype
inline IMeshData::MapOfInteger
-
GetElement
()¶ - Get element by the index. @param theIndex index of an element. returns element with the given index.
- param theIndex
- type theIndex
int
- rtype
BRepMesh_Triangle
-
GetLink
()¶ - Get link by the index. @param theIndex index of a link. returns link with the given index.
- param theIndex
- type theIndex
int
- rtype
BRepMesh_Edge
-
GetNode
()¶ - Get node by the index. @param theIndex index of a node. returns node with the given index.
- param theIndex
- type theIndex
int
- rtype
inline BRepMesh_Vertex
-
IndexOf
()¶ - Finds the index of the given node. @param theNode node to find. returns index of the given element of zero if node is not in the mesh.
- param theNode
- type theNode
BRepMesh_Vertex
- rtype
int* Finds the index of the given link. @param theLink link to find. returns index of the given element of zero if link is not in the mesh.
- param theLink
- type theLink
BRepMesh_Edge
- rtype
int
-
LinksConnectedTo
()¶ - Get list of links attached to the node with the given index. @param theIndex index of node whose links should be retrieved. returns list of links attached to the node.
- param theIndex
- type theIndex
int
- rtype
inline IMeshData::ListOfInteger
-
LinksOfDomain
()¶ - Returns map of indices of links registered in mesh.
- rtype
inline IMeshData::MapOfInteger
-
NbElements
()¶ - @name API for accessing mesh elements. Returns number of links.
- rtype
inline int
-
NbLinks
()¶ - @name API for accessing mesh links. Returns number of links.
- rtype
inline int
-
NbNodes
()¶ - @name API for accessing mesh nodes. Returns number of nodes.
- rtype
inline int
-
RemoveElement
()¶ - Removes element from the mesh. @param theIndex index of element to be removed.
- param theIndex
- type theIndex
int
- rtype
None
-
RemoveLink
()¶ - Removes link from the mesh in case if it has no connected elements and its type is Free. @param theIndex index of link to be removed. @param isForce if True link will be removed even if movability is not Free.
- param theIndex
- type theIndex
int
- param isForce
default value is Standard_False
- type isForce
bool
- rtype
None
-
RemoveNode
()¶ - Removes node from the mesh in case if it has no connected links and its type is Free. @param theIndex index of node to be removed. @param isForce if True node will be removed even if movability is not Free.
- param theIndex
- type theIndex
int
- param isForce
default value is Standard_False
- type isForce
bool
- rtype
None
-
StatisticsToString
(BRepMesh_DataStructureOfDelaun self) → std::string¶
-
SubstituteElement
()¶ - Substitutes the element with the given index by new one. @param theIndex index of element to be substituted. @param theNewLink substituting element. returns False in case if new element is already in the structure, True elsewhere.
- param theIndex
- type theIndex
int
- param theNewElement
- type theNewElement
BRepMesh_Triangle
- rtype
bool
-
SubstituteLink
()¶ - Substitutes the link with the given index by new one. @param theIndex index of link to be substituted. @param theNewLink substituting link. returns False in case if new link is already in the structure, True elsewhere.
- param theIndex
- type theIndex
int
- param theNewLink
- type theNewLink
BRepMesh_Edge
- rtype
bool
-
SubstituteNode
()¶ - Substitutes the node with the given index by new one. @param theIndex index of node to be substituted. @param theNewNode substituting node. returns False in case if new node is already in the structure, True elsewhere.
- param theIndex
- type theIndex
int
- param theNewNode
- type theNewNode
BRepMesh_Vertex
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
BRepMesh_Deflection
¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
ComputeAbsoluteDeflection
()¶ - Returns absolute deflection for theShape with respect to the relative deflection and theMaxShapeSize. @param theShape shape for that the deflection should be computed. @param theRelativeDeflection relative deflection. @param theMaxShapeSize maximum size of the whole shape. returns absolute deflection for the shape.
- param theShape
- type theShape
TopoDS_Shape
- param theRelativeDeflection
- type theRelativeDeflection
float
- param theMaxShapeSize
- type theMaxShapeSize
float
- rtype
float
-
static
ComputeDeflection
()¶ - Computes and updates deflection of the given discrete edge.
- param theDEdge
- type theDEdge
IMeshData::IEdgeHandle
- param theMaxShapeSize
- type theMaxShapeSize
float
- param theParameters
- type theParameters
IMeshTools_Parameters
- rtype
void* Computes and updates deflection of the given discrete wire.
- param theDWire
- type theDWire
IMeshData::IWireHandle
- param theParameters
- type theParameters
IMeshTools_Parameters
- rtype
void* Computes and updates deflection of the given discrete face.
- param theDFace
- type theDFace
IMeshData::IFaceHandle
- param theParameters
- type theParameters
IMeshTools_Parameters
- rtype
void
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
BRepMesh_Delaun
(*args)¶ Bases:
object
- Creates instance of triangulator, but do not run the algorithm automatically.
- param theOldMesh
- type theOldMesh
BRepMesh_DataStructureOfDelaun
- param theCellsCountU
- type theCellsCountU
int
- param theCellsCountV
- type theCellsCountV
int
- param isFillCircles
- type isFillCircles
bool
- rtype
None* Creates the triangulation with an empty Mesh data structure.
- param theVertices
- type theVertices
IMeshData::Array1OfVertexOfDelaun
- rtype
None* Creates the triangulation with an existent Mesh data structure.
- param theOldMesh
- type theOldMesh
BRepMesh_DataStructureOfDelaun
- param theVertices
- type theVertices
IMeshData::Array1OfVertexOfDelaun
- rtype
None* Creates the triangulation with an existant Mesh data structure.
- param theOldMesh
- type theOldMesh
BRepMesh_DataStructureOfDelaun
- param theVertexIndices
- type theVertexIndices
IMeshData::VectorOfInteger
- rtype
None* Creates the triangulation with an existant Mesh data structure.
- param theOldMesh
- type theOldMesh
BRepMesh_DataStructureOfDelaun
- param theVertexIndices
- type theVertexIndices
IMeshData::VectorOfInteger
- param theCellsCountU
- type theCellsCountU
int
- param theCellsCountV
- type theCellsCountV
int
- rtype
None
-
AddVertices
()¶ - Adds some vertices into the triangulation.
- param theVerticesIndices
- type theVerticesIndices
IMeshData::VectorOfInteger
- rtype
None
-
Circles
()¶ - Returns tool used to build mesh consistent to Delaunay criteria.
- rtype
inline BRepMesh_CircleTool
-
Contains
()¶ - Test is the given triangle contains the given vertex. @param theSqTolerance square tolerance to check closeness to some edge @param theEdgeOn If it is != 0 the vertex lies onto the edge index returned through this parameter.
- param theTriangleId
- type theTriangleId
int
- param theVertex
- type theVertex
BRepMesh_Vertex
- param theSqTolerance
- type theSqTolerance
float
- param theEdgeOn
- type theEdgeOn
int
- rtype
bool
-
GetEdge
()¶ - Gives edge with the given index
- param theIndex
- type theIndex
int
- rtype
inline BRepMesh_Edge
-
GetTriangle
()¶ - Gives triangle with the given index
- param theIndex
- type theIndex
int
- rtype
inline BRepMesh_Triangle
-
GetVertex
()¶ - Gives vertex with the given index
- param theIndex
- type theIndex
int
- rtype
inline BRepMesh_Vertex
-
Init
()¶ - Initializes the triangulation with an array of vertices.
- param theVertices
- type theVertices
IMeshData::Array1OfVertexOfDelaun
- rtype
None
-
InitCirclesTool
()¶ - Forces initialization of circles cell filter using working structure.
- param theCellsCountU
- type theCellsCountU
int
- param theCellsCountV
- type theCellsCountV
int
- rtype
None
-
RemoveVertex
()¶ - Removes a vertex from the triangulation.
- param theVertex
- type theVertex
BRepMesh_Vertex
- rtype
None
-
Result
()¶ - Gives the Mesh data structure.
- rtype
inline opencascade::handle<BRepMesh_DataStructureOfDelaun>
-
UseEdge
()¶ - Modify mesh to use the edge. returns True if done
- param theEdge
- type theEdge
int
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
BRepMesh_DelaunayBaseMeshAlgo
(*args)¶ Bases:
object
- Constructor.
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_DiscretFactory
(*args, **kwargs)¶ Bases:
object
-
DefaultName
()¶ - Returns name for current meshing algorithm.
- rtype
inline TCollection_AsciiString
-
Discret
()¶ - Returns triangulation algorithm instance. @param theShape shape to be meshed. @param theLinDeflection linear deflection to be used for meshing. @param theAngDeflection angular deflection to be used for meshing.
- param theShape
- type theShape
TopoDS_Shape
- param theLinDeflection
- type theLinDeflection
float
- param theAngDeflection
- type theAngDeflection
float
- rtype
opencascade::handle<BRepMesh_DiscretRoot>
-
ErrorStatus
()¶ - Returns error status for last meshing algorithm switch.
- rtype
inline BRepMesh_FactoryError
-
FunctionName
()¶ - Returns function name that should be exported by plugin.
- rtype
inline TCollection_AsciiString
-
static
Get
()¶ - Returns the global factory instance.
- rtype
BRepMesh_DiscretFactory
-
Names
()¶ - Returns the list of registered meshing algorithms.
- rtype
inline TColStd_MapOfAsciiString
-
SetDefault
()¶ - Setup meshing algorithm that should be created by this Factory. Returns True if requested tool is available. On fail Factory will continue to use previous algo. Call ::ErrorStatus() method to retrieve fault reason.
- param theName
- type theName
TCollection_AsciiString
- param theFuncName
default value is ‘DISCRETALGO’
- type theFuncName
TCollection_AsciiString
- rtype
bool
-
SetDefaultName
()¶ - Setup meshing algorithm by name. Returns True if requested tool is available. On fail Factory will continue to use previous algo.
- param theName
- type theName
TCollection_AsciiString
- rtype
bool
-
SetFunctionName
()¶ - Advanced function. Changes function name to retrieve from plugin. Returns True if requested tool is available. On fail Factory will continue to use previous algo.
- param theFuncName
- type theFuncName
TCollection_AsciiString
- rtype
bool
-
property
thisown
¶ The membership flag
-
-
class
BRepMesh_DiscretRoot
(*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)¶
-
IsDone
()¶ - Returns true if triangualtion was performed and has success.
- rtype
inline bool
-
Perform
()¶ - Compute triangulation for set shape.
- rtype
None
-
SetShape
()¶ - Set the shape to triangulate.
- param theShape
- type theShape
TopoDS_Shape
- rtype
inline void
-
Shape
()¶ - Return type
inline TopoDS_Shape
-
property
thisown
¶ The membership flag
-
class
BRepMesh_Edge
(*args)¶ Bases:
OCC.Core.BRepMesh.BRepMesh_OrientedEdge
- Default constructor.
- rtype
None* Constructs a link between two vertices.
- param theFirstNode
- type theFirstNode
int
- param theLastNode
- type theLastNode
int
- param theMovability
- type theMovability
BRepMesh_DegreeOfFreedom
- rtype
None
-
IsEqual
()¶ - Checks for equality with another edge. @param theOther edge to be checked against this one. returns True if equal, False if not.
- param theOther
- type theOther
BRepMesh_Edge
- rtype
inline bool
-
IsSameOrientation
()¶ - Checks if the given edge and this one have the same orientation. @param theOther edge to be checked against this one. etrun True if edges have the same orientation, False if not.
- param theOther
- type theOther
BRepMesh_Edge
- rtype
inline bool
-
Movability
()¶ - Returns movability flag of the Link.
- rtype
inline BRepMesh_DegreeOfFreedom
-
SetMovability
()¶ - Sets movability flag of the Link. @param theMovability flag to be set.
- param theMovability
- type theMovability
BRepMesh_DegreeOfFreedom
- rtype
inline void
-
property
thisown
¶ The membership flag
-
class
BRepMesh_EdgeDiscret
(*args)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_ModelAlgo
- Constructor.
- rtype
None
-
static
CreateEdgeTessellationExtractor
()¶ - Creates instance of tessellation extractor.
- param theDEdge
- type theDEdge
IMeshData::IEdgeHandle
- param theDFace
- type theDFace
IMeshData::IFaceHandle
- rtype
opencascade::handle<IMeshTools_CurveTessellator>
-
static
CreateEdgeTessellator
()¶ - Creates instance of free edge tessellator.
- param theDEdge
- type theDEdge
IMeshData::IEdgeHandle
- param theParameters
- type theParameters
IMeshTools_Parameters
- rtype
opencascade::handle<IMeshTools_CurveTessellator>* Creates instance of edge tessellator.
- param theDEdge
- type theDEdge
IMeshData::IEdgeHandle
- param theOrientation
- type theOrientation
TopAbs_Orientation
- param theDFace
- type theDFace
IMeshData::IFaceHandle
- param theParameters
- type theParameters
IMeshTools_Parameters
- rtype
opencascade::handle<IMeshTools_CurveTessellator>
-
static
Tessellate2d
()¶ - Updates 2d discrete edge model using tessellation of 3D curve.
- param theDEdge
- type theDEdge
IMeshData::IEdgeHandle
- param theUpdateEnds
- type theUpdateEnds
bool
- rtype
void
-
static
Tessellate3d
()¶ - Updates 3d discrete edge model using the given tessellation tool.
- param theDEdge
- type theDEdge
IMeshData::IEdgeHandle
- param theTessellator
- type theTessellator
IMeshTools_CurveTessellator
- param theUpdateEnds
- type theUpdateEnds
bool
- rtype
void
-
property
thisown
¶ The membership flag
-
class
BRepMesh_FaceChecker
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Default constructor
- param theFace
- type theFace
IMeshData::IFaceHandle
- param theParameters
- type theParameters
IMeshTools_Parameters
- rtype
None
-
static
DownCast
(t)¶
-
Perform
()¶ - Performs check wires of the face for intersections. returns True if there is no intersection, False elsewhere.
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
BRepMesh_FaceDiscret
(*args)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_ModelAlgo
- Constructor.
- param theAlgoFactory
- type theAlgoFactory
IMeshTools_MeshAlgoFactory
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_GeomTool
(*args)¶ Bases:
object
- Constructor. Initiates discretization of the given geometric curve. @param theCurve curve to be discretized. @param theFirstParam first parameter of the curve. @param theLastParam last parameter of the curve. @param theLinDeflection linear deflection. @param theAngDeflection angular deflection. @param theMinPointsNb minimum nuber of points to be produced.
- param theCurve
- type theCurve
BRepAdaptor_Curve
- param theFirstParam
- type theFirstParam
float
- param theLastParam
- type theLastParam
float
- param theLinDeflection
- type theLinDeflection
float
- param theAngDeflection
- type theAngDeflection
float
- param theMinPointsNb
default value is 2
- type theMinPointsNb
int
- param theMinSize
default value is Precision::Confusion()
- type theMinSize
float
- rtype
None* Constructor. Initiates discretization of geometric curve corresponding to iso curve of the given surface. @param theSurface surface the iso curve to be taken from. @param theIsoType type of iso curve to be used, U or V. @param theParamIso parameter on the surface specifying the iso curve. @param theFirstParam first parameter of the curve. @param theLastParam last parameter of the curve. @param theLinDeflection linear deflection. @param theAngDeflection angular deflection. @param theMinPointsNb minimum nuber of points to be produced.
- param theSurface
- type theSurface
BRepAdaptor_HSurface
- param theIsoType
- type theIsoType
GeomAbs_IsoType
- param theParamIso
- type theParamIso
float
- param theFirstParam
- type theFirstParam
float
- param theLastParam
- type theLastParam
float
- param theLinDeflection
- type theLinDeflection
float
- param theAngDeflection
- type theAngDeflection
float
- param theMinPointsNb
default value is 2
- type theMinPointsNb
int
- param theMinSize
default value is Precision::Confusion()
- type theMinSize
float
- rtype
None
-
AddPoint
()¶ - Adds point to already calculated points (or replaces existing). @param thePoint point to be added. @param theParam parameter on the curve corresponding to the given point. @param theIsReplace if True replaces existing point lying within parameteric tolerance of the given point. returns index of new added point or found with parametric tolerance
- param thePoint
- type thePoint
gp_Pnt
- param theParam
- type theParam
float
- param theIsReplace
default value is Standard_True
- type theIsReplace
bool
- rtype
inline int
-
static
CellsCount
()¶ - Parameters
theSurface –
- type theSurface
Adaptor3d_HSurface
- param theVerticesNb
- type theVerticesNb
int
- param theDeflection
- type theDeflection
float
- param theRangeSplitter
- type theRangeSplitter
BRepMesh_DefaultRangeSplitter *
- rtype
std::pair<int, int>
-
Cross
= 1¶
-
EndPointTouch
= 2¶
-
Glued
= 4¶
-
NbPoints
()¶ - Returns number of discretization points.
- rtype
inline int
-
NoIntersection
= 0¶
-
PointOnSegment
= 3¶
-
Same
= 5¶
-
static
SquareDeflectionOfSegment
()¶ - Compute deflection of the given segment.
- param theFirstPoint
- type theFirstPoint
gp_Pnt
- param theLastPoint
- type theLastPoint
gp_Pnt
- param theMidPoint
- type theMidPoint
gp_Pnt
- rtype
float
-
Value
()¶ - Gets parameters of discretization point with the given index. @param theIndex index of discretization point. @param theIsoParam parameter on surface to be used as second coordinate of resulting 2d point. @param theParam[out] parameter of the point on the iso curve. @param thePoint[out] discretization point. @param theUV[out] discretization point in parametric space of the surface. returns True on success, False elsewhere.
- param theIndex
- type theIndex
int
- param theIsoParam
- type theIsoParam
float
- param theParam
- type theParam
float
- param thePoint
- type thePoint
gp_Pnt
- param theUV
- type theUV
gp_Pnt2d
- rtype
bool* Gets parameters of discretization point with the given index. @param theIndex index of discretization point. @param theSurface surface the curve is lying onto. @param theParam[out] parameter of the point on the curve. @param thePoint[out] discretization point. @param theUV[out] discretization point in parametric space of the surface. returns True on success, False elsewhere.
- param theIndex
- type theIndex
int
- param theSurface
- type theSurface
BRepAdaptor_HSurface
- param theParam
- type theParam
float
- param thePoint
- type thePoint
gp_Pnt
- param theUV
- type theUV
gp_Pnt2d
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
BRepMesh_IncrementalMesh
(*args)¶ Bases:
OCC.Core.BRepMesh.BRepMesh_DiscretRoot
- @name mesher API Default constructor
- rtype
None* Constructor. Automatically calls method Perform. @param theShape shape to be meshed. @param theLinDeflection linear deflection. @param isRelative if True deflection used for discretization of each edge will be <theLinDeflection> * <size of edge>. Deflection used for the faces will be the maximum deflection of their edges. @param theAngDeflection angular deflection. @param isInParallel if True shape will be meshed in parallel.
- param theShape
- type theShape
TopoDS_Shape
- param theLinDeflection
- type theLinDeflection
float
- param isRelative
default value is Standard_False
- type isRelative
bool
- param theAngDeflection
default value is 0.5
- type theAngDeflection
float
- param isInParallel
default value is Standard_False
- type isInParallel
bool
- rtype
None* Constructor. Automatically calls method Perform. @param theShape shape to be meshed. @param theParameters - parameters of meshing
- param theShape
- type theShape
TopoDS_Shape
- param theParameters
- type theParameters
IMeshTools_Parameters
- rtype
None
-
ChangeParameters
()¶ - Returns modifiable meshing parameters
- rtype
inline IMeshTools_Parameters
-
static
Discret
()¶ - @name plugin API Plugin interface for the Mesh Factories. Initializes meshing algorithm with the given parameters. @param theShape shape to be meshed. @param theLinDeflection linear deflection. @param theAngDeflection angular deflection. @param[out] theAlgo pointer to initialized algorithm.
- param theShape
- type theShape
TopoDS_Shape
- param theLinDeflection
- type theLinDeflection
float
- param theAngDeflection
- type theAngDeflection
float
- param theAlgo
- type theAlgo
BRepMesh_DiscretRoot *
- rtype
int
-
static
DownCast
(t)¶
-
GetStatusFlags
()¶ - Returns accumulated status flags faced during meshing.
- rtype
inline int
-
IsModified
()¶ - Returns modified flag.
- rtype
inline bool
-
static
IsParallelDefault
()¶ - Returns multi-threading usage flag set by default in Discret() static method (thus applied only to Mesh Factories).
- rtype
bool
-
Parameters
()¶ - @name accessing to parameters. Returns meshing parameters
- rtype
inline IMeshTools_Parameters
-
Perform
()¶ - Performs meshing ot the shape.
- rtype
void* Performs meshing using custom context;
- param theContext
- type theContext
IMeshTools_Context
- rtype
None
-
static
SetParallelDefault
()¶ - Setup multi-threading usage flag set by default in Discret() static method (thus applied only to Mesh Factories).
- param isInParallel
- type isInParallel
bool
- rtype
void
-
property
thisown
¶ The membership flag
-
class
BRepMesh_MeshAlgoFactory
(*args)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_MeshAlgoFactory
- Constructor.
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_MeshTool
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Constructor. Initializes tool by the given data structure.
- param theStructure
- type theStructure
BRepMesh_DataStructureOfDelaun
- rtype
None
-
AddAndLegalizeTriangle
()¶ - Adds new triangle with specified nodes to mesh. Legalizes triangle in case if it violates circle criteria.
- param thePoint1
- type thePoint1
int
- param thePoint2
- type thePoint2
int
- param thePoint3
- type thePoint3
int
- rtype
inline void
-
AddLink
()¶ - Adds new link to mesh. Updates link index and link orientaion parameters.
- param theFirstNode
- type theFirstNode
int
- param theLastNode
- type theLastNode
int
- param theLinkIndex
- type theLinkIndex
int
- param theLinkOri
- type theLinkOri
bool
- rtype
inline void
-
AddTriangle
()¶ - Adds new triangle with specified nodes to mesh.
- param thePoint1
- type thePoint1
int
- param thePoint2
- type thePoint2
int
- param thePoint3
- type thePoint3
int
- param )
- type )
int ( theEdges
- rtype
inline void
-
CleanFrontierLinks
()¶ - Cleans frontier links from triangles to the right.
- rtype
None
-
static
DownCast
(t)¶
-
EraseFreeLinks
()¶ - Erases all links that have no elements connected to them.
- rtype
None* Erases links from the specified map that have no elements connected to them.
- param theLinks
- type theLinks
IMeshData::MapOfIntegerInteger
- rtype
None
-
EraseItemsConnectedTo
()¶ - Erases all elements connected to the specified artificial node. In addition, erases the artificial node itself.
- param theNodeIndex
- type theNodeIndex
int
- rtype
None
-
EraseTriangle
()¶ - Erases triangle with the given index and adds the free edges into the map. When an edge is suppressed more than one time it is destroyed.
- param theTriangleIndex
- type theTriangleIndex
int
- param theLoopEdges
- type theLoopEdges
IMeshData::MapOfIntegerInteger
- rtype
None
-
GetStructure
()¶ - Returns data structure manipulated by this tool.
- rtype
inline opencascade::handle<BRepMesh_DataStructureOfDelaun>
-
Legalize
()¶ - Performs legalization of triangles connected to the specified link.
- param theLinkIndex
- type theLinkIndex
int
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_ModelBuilder
(*args)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_ModelBuilder
- Constructor.
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_ModelHealer
(*args)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_ModelAlgo
- Constructor.
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_ModelPostProcessor
(*args)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_ModelAlgo
- Constructor.
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_ModelPreProcessor
(*args)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_ModelAlgo
- Constructor.
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepMesh_OrientedEdge
(*args)¶ Bases:
object
- Default constructor.
- rtype
None* Constructs a link between two vertices.
- param theFirstNode
- type theFirstNode
int
- param theLastNode
- type theLastNode
int
- rtype
None
-
FirstNode
()¶ - Returns index of first node of the Link.
- rtype
inline int
-
HashCode
()¶ - Computes a hash code for this oriented edge, in the range [1, theUpperBound] @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 theUpperBound
- type theUpperBound
int
- rtype
inline int
-
IsEqual
()¶ - Checks this and other edge for equality. @param theOther edge to be checked against this one. @retrun True if edges have the same orientation, False if not.
- param theOther
- type theOther
BRepMesh_OrientedEdge
- rtype
inline bool
-
LastNode
()¶ - Returns index of last node of the Link.
- rtype
inline int
-
property
thisown
¶ The membership flag
-
class
BRepMesh_PairOfIndex
(*args)¶ Bases:
object
- Default constructor
- rtype
None
-
Append
()¶ - Appends index to the pair.
- param theIndex
- type theIndex
int
- rtype
inline void
-
Clear
()¶ - Clears indices.
- rtype
None
-
Extent
()¶ - Returns number of initialized indeces.
- rtype
inline int
-
FirstIndex
()¶ - Returns first index of pair.
- rtype
inline int
-
Index
()¶ - Returns index corresponding to the given position in the pair. @param thePairPos position of index in the pair (1 or 2).
- param thePairPos
- type thePairPos
int
- rtype
inline int
-
IsEmpty
()¶ - Returns is pair is empty.
- rtype
inline bool
-
LastIndex
()¶ - Returns last index of pair
- rtype
inline int
-
Prepend
()¶ - Prepends index to the pair.
- param theIndex
- type theIndex
int
- rtype
inline void
-
RemoveIndex
()¶ - Remove index from the given position. @param thePairPos position of index in the pair (1 or 2).
- param thePairPos
- type thePairPos
int
- rtype
inline void
-
SetIndex
()¶ - Sets index corresponding to the given position in the pair. @param thePairPos position of index in the pair (1 or 2). @param theIndex index to be stored.
- param thePairPos
- type thePairPos
int
- param theIndex
- type theIndex
int
- rtype
inline void
-
property
thisown
¶ The membership flag
-
class
BRepMesh_SelectorOfDataStructureOfDelaun
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Default constructor.
- rtype
None* Constructor. Initializes selector by the mesh.
- param theMesh
- type theMesh
BRepMesh_DataStructureOfDelaun
- rtype
None
-
AddNeighbours
()¶ - Adds a level of neighbours by edge the selector.
- rtype
inline void
-
static
DownCast
(t)¶
-
Elements
()¶ - Returns selected elements.
- rtype
inline IMeshData::MapOfInteger
-
FrontierLinks
()¶ - Gives the list of incices of frontier links.
- rtype
inline IMeshData::MapOfInteger
-
Initialize
()¶ - Initializes selector by the mesh.
- param theMesh
- type theMesh
BRepMesh_DataStructureOfDelaun
- rtype
None
-
Links
()¶ - Returns selected links.
- rtype
inline IMeshData::MapOfInteger
-
NeighboursByEdgeOf
()¶ - Selects all neighboring elements by links of the given element.
- param theElement
- type theElement
BRepMesh_Triangle
- rtype
None
-
NeighboursOf
()¶ - Selects all neighboring elements of the given node.
- param theNode
- type theNode
BRepMesh_Vertex
- rtype
None* Selects all neighboring elements of the given link.
- param theLink
- type theLink
BRepMesh_Edge
- rtype
None* Selects all neighboring elements of the given element.
- param theElement
- type theElement
BRepMesh_Triangle
- rtype
None* Adds a level of neighbours by edge to the selector.
- param &
- type &
BRepMesh_SelectorOfDataStructureOfDelaun
- rtype
inline void
-
NeighboursOfElement
()¶ - Selects all neighboring elements by nodes of the given element.
- param theElementIndex
- type theElementIndex
int
- rtype
None
-
NeighboursOfLink
()¶ - Selects all neighboring elements of link with the given index.
- param theLinkIndex
- type theLinkIndex
int
- rtype
None
-
NeighboursOfNode
()¶ - Selects all neighboring elements of node with the given index.
- param theNodeIndex
- type theNodeIndex
int
- rtype
None
-
Nodes
()¶ - Returns selected nodes.
- rtype
inline IMeshData::MapOfInteger
-
property
thisown
¶ The membership flag
-
class
BRepMesh_ShapeTool
¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
AddInFace
()¶ - Stores the given triangulation into the given face. @param theFace face to be updated by triangulation. @param theTriangulation triangulation to be stored into the face.
- param theFace
- type theFace
TopoDS_Face
- param theTriangulation
- type theTriangulation
Poly_Triangulation
- rtype
void
-
static
BoxMaxDimension
()¶ - Gets the maximum dimension of the given bounding box. If the given bounding box is void leaves the resulting value unchanged. @param theBox bounding box to be processed. @param theMaxDimension maximum dimension of the given box.
- param theBox
- type theBox
Bnd_Box
- param theMaxDimension
- type theMaxDimension
float
- rtype
void
-
static
CheckAndUpdateFlags
()¶ - Checks same parameter, same range and degenerativity attributes using geometrical data of the given edge and updates edge model by computed parameters in case of worst case - it can drop flags same parameter and same range to False but never to True if it is already set to False. In contrary, it can also drop degenerated flag to True, but never to False if it is already set to True.
- param theEdge
- type theEdge
IMeshData::IEdgeHandle
- param thePCurve
- type thePCurve
IMeshData::IPCurveHandle
- rtype
void
-
static
DownCast
(t)¶
-
static
MaxFaceTolerance
()¶ - Returns maximum tolerance of the given face. Considers tolerances of edges and vertices contained in the given face.
- param theFace
- type theFace
TopoDS_Face
- rtype
float
-
static
NullifyEdge
()¶ - Nullifies polygon on triangulation stored in the edge. @param theEdge edge to be updated by null polygon. @param theTriangulation triangulation the given edge is associated to. @param theLocation face location.
- param theEdge
- type theEdge
TopoDS_Edge
- param theTriangulation
- type theTriangulation
Poly_Triangulation
- param theLocation
- type theLocation
TopLoc_Location
- rtype
void* Nullifies 3d polygon stored in the edge. @param theEdge edge to be updated by null polygon. @param theLocation face location.
- param theEdge
- type theEdge
TopoDS_Edge
- param theLocation
- type theLocation
TopLoc_Location
- rtype
void
-
static
NullifyFace
()¶ - Nullifies triangulation stored in the face. @param theFace face to be updated by null triangulation.
- param theFace
- type theFace
TopoDS_Face
- rtype
void
-
static
Range
()¶ - Gets the parametric range of the given edge on the given face.
- param theEdge
- type theEdge
TopoDS_Edge
- param theFace
- type theFace
TopoDS_Face
- param thePCurve
- type thePCurve
Geom2d_Curve
- param theFirstParam
- type theFirstParam
float
- param theLastParam
- type theLastParam
float
- param isConsiderOrientation
default value is Standard_False
- type isConsiderOrientation
bool
- rtype
bool* Gets the 3d range of the given edge.
- param theEdge
- type theEdge
TopoDS_Edge
- param theCurve
- type theCurve
Geom_Curve
- param theFirstParam
- type theFirstParam
float
- param theLastParam
- type theLastParam
float
- param isConsiderOrientation
default value is Standard_False
- type isConsiderOrientation
bool
- rtype
bool
-
static
UVPoints
()¶ - Gets the strict UV locations of the extremities of the edge using pcurve.
- param theEdge
- type theEdge
TopoDS_Edge
- param theFace
- type theFace
TopoDS_Face
- param theFirstPoint2d
- type theFirstPoint2d
gp_Pnt2d
- param theLastPoint2d
- type theLastPoint2d
gp_Pnt2d
- param isConsiderOrientation
default value is Standard_False
- type isConsiderOrientation
bool
- rtype
bool
-
static
UpdateEdge
()¶ - Updates the given edge by the given tessellated representation. @param theEdge edge to be updated. @param thePolygon tessellated representation of the edge to be stored. @param theTriangulation triangulation the given edge is associated to. @param theLocation face location.
- param theEdge
- type theEdge
TopoDS_Edge
- param thePolygon
- type thePolygon
Poly_PolygonOnTriangulation
- param theTriangulation
- type theTriangulation
Poly_Triangulation
- param theLocation
- type theLocation
TopLoc_Location
- rtype
void* Updates the given edge by the given tessellated representation. @param theEdge edge to be updated. @param thePolygon tessellated representation of the edge to be stored.
- param theEdge
- type theEdge
TopoDS_Edge
- param thePolygon
- type thePolygon
Poly_Polygon3D
- rtype
void* Updates the given seam edge by the given tessellated representations. @param theEdge edge to be updated. @param thePolygon1 tessellated representation corresponding to forward direction of the seam edge. @param thePolygon2 tessellated representation corresponding to reversed direction of the seam edge. @param theTriangulation triangulation the given edge is associated to. @param theLocation face location.
- param theEdge
- type theEdge
TopoDS_Edge
- param thePolygon1
- type thePolygon1
Poly_PolygonOnTriangulation
- param thePolygon2
- type thePolygon2
Poly_PolygonOnTriangulation
- param theTriangulation
- type theTriangulation
Poly_Triangulation
- param theLocation
- type theLocation
TopLoc_Location
- rtype
void
-
static
UseLocation
()¶ - Applies location to the given point and return result. @param thePnt point to be transformed. @param theLoc location to be applied.
- param thePnt
- type thePnt
gp_Pnt
- param theLoc
- type theLoc
TopLoc_Location
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
BRepMesh_ShapeVisitor
(*args)¶ Bases:
OCC.Core.IMeshTools.IMeshTools_ShapeVisitor
- Constructor.
- param theModel
- type theModel
IMeshData_Model
- rtype
None
-
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
-
class
BRepMesh_Triangle
(*args)¶ Bases:
object
- Default constructor.
- rtype
None* Constructor. @param theEdges array of edges of triangle. @param theOrientations array of edge’s orientations. @param theMovability movability of triangle.
- param )
- type )
int ( theEdges
- param )
- type )
bool ( theOrientations
- param theMovability
- type theMovability
BRepMesh_DegreeOfFreedom
- rtype
None
-
Edges
()¶ - Gets edges with orientations composing the triangle. @param[out] theEdges array edges are stored to. @param[out] theOrientations array orientations are stored to.
- param )
- type )
int ( theEdges
- param )
- type )
bool ( theOrientations
- rtype
inline void
-
HashCode
()¶ - Computes a hash code for this triangle, in the range [1, theUpperBound] @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 theUpperBound
- type theUpperBound
int
- rtype
inline int
-
Initialize
()¶ - Initializes the triangle by the given parameters. @param theEdges array of edges of triangle. @param theOrientations array of edge’s orientations. @param theMovability movability of triangle.
- param )
- type )
int ( theEdges
- param )
- type )
bool ( theOrientations
- param theMovability
- type theMovability
BRepMesh_DegreeOfFreedom
- rtype
inline void
-
IsEqual
()¶ - Checks for equality with another triangle. @param theOther triangle to be checked against this one. returns True if equal, False if not.
- param theOther
- type theOther
BRepMesh_Triangle
- rtype
inline bool
-
Movability
()¶ - Returns movability of the triangle.
- rtype
inline BRepMesh_DegreeOfFreedom
-
SetMovability
()¶ - Sets movability of the triangle.
- param theMovability
- type theMovability
BRepMesh_DegreeOfFreedom
- rtype
inline void
-
property
myEdges
¶
-
property
myMovability
¶
-
property
myOrientations
¶
-
property
thisown
¶ The membership flag
-
class
BRepMesh_Vertex
(*args)¶ Bases:
object
- Default constructor
- rtype
None* Creates vertex associated with point in 3d space. @param theUV position of vertex in parametric space. @param theLocation3d index of 3d point to be associated with vertex. @param theMovability movability of the vertex.
- param theUV
- type theUV
gp_XY
- param theLocation3d
- type theLocation3d
int
- param theMovability
- type theMovability
BRepMesh_DegreeOfFreedom
- rtype
None* Creates vertex without association with point in 3d space. @param theU U position of vertex in parametric space. @param theV V position of vertex in parametric space. @param theMovability movability of the vertex.
- param theU
- type theU
float
- param theV
- type theV
float
- param theMovability
- type theMovability
BRepMesh_DegreeOfFreedom
- rtype
None
-
ChangeCoord
()¶ - Returns position of the vertex in parametric space for modification.
- rtype
inline gp_XY
-
Coord
()¶ - Returns position of the vertex in parametric space.
- rtype
inline gp_XY
-
HashCode
()¶ - Computes a hash code for this vertex, in the range [1, theUpperBound] @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 theUpperBound
- type theUpperBound
int
- rtype
inline int
-
Initialize
()¶ - Initializes vertex associated with point in 3d space. @param theUV position of vertex in parametric space. @param theLocation3d index of 3d point to be associated with vertex. @param theMovability movability of the vertex.
- param theUV
- type theUV
gp_XY
- param theLocation3d
- type theLocation3d
int
- param theMovability
- type theMovability
BRepMesh_DegreeOfFreedom
- rtype
inline void
-
IsEqual
()¶ - Checks for equality with another vertex. @param theOther vertex to be checked against this one. returns True if equal, False if not.
- param theOther
- type theOther
BRepMesh_Vertex
- rtype
inline bool
-
Location3d
()¶ - Returns index of 3d point associated with the vertex.
- rtype
inline int
-
Movability
()¶ - Returns movability of the vertex.
- rtype
inline BRepMesh_DegreeOfFreedom
-
SetMovability
()¶ - Sets movability of the vertex.
- param theMovability
- type theMovability
BRepMesh_DegreeOfFreedom
- rtype
inline void
-
property
thisown
¶ The membership flag
-
class
BRepMesh_VertexInspector
(*args)¶ Bases:
object
- Constructor. @param theAllocator memory allocator to be used by internal collections.
- param theAllocator
- type theAllocator
NCollection_IncAllocator
- rtype
None
-
Add
()¶ - Registers the given vertex. @param theVertex vertex to be registered.
- param theVertex
- type theVertex
BRepMesh_Vertex
- rtype
int
-
Clear
()¶ - Clear inspector’s internal data structures.
- rtype
inline void
-
Delete
()¶ - Deletes vertex with the given index. @param theIndex index of vertex to be removed.
- param theIndex
- type theIndex
int
- rtype
inline void
-
GetCoincidentPoint
()¶ - Returns index of point coinciding with regerence one.
- rtype
inline int
-
GetListOfDelPoints
()¶ - Returns list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node.
- rtype
inline IMeshData::ListOfInteger
-
GetVertex
()¶ - Returns vertex with the given index.
- param theIndex
- type theIndex
int
- rtype
inline BRepMesh_Vertex
-
Inspect
()¶ - Performs inspection of a point with the given index. @param theTargetIndex index of a circle to be checked. returns status of the check.
- param theTargetIndex
- type theTargetIndex
int
- rtype
NCollection_CellFilter_Action
-
static
IsEqual
()¶ - Checks indices for equlity.
- param theIndex
- type theIndex
int
- param theTargetIndex
- type theTargetIndex
int
- rtype
bool
-
NbVertices
()¶ - Returns number of registered vertices.
- rtype
inline int
-
SetPoint
()¶ - Set reference point to be checked.
- param thePoint
- type thePoint
gp_XY
- rtype
inline void
-
SetTolerance
()¶ - Sets the tolerance to be used for identification of coincident vertices equal for both dimensions.
- param theTolerance
- type theTolerance
float
- rtype
inline void* Sets the tolerance to be used for identification of coincident vertices. @param theToleranceX tolerance for X dimension. @param theToleranceY tolerance for Y dimension.
- param theToleranceX
- type theToleranceX
float
- param theToleranceY
- type theToleranceY
float
- rtype
inline void
-
property
thisown
¶ The membership flag
-
class
BRepMesh_VertexTool
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Constructor. @param theAllocator memory allocator to be used by internal collections.
- param theAllocator
- type theAllocator
NCollection_IncAllocator
- rtype
None
-
Add
()¶ - Adds vertex with empty data to the tool. @param theVertex node to be added to the mesh. @param isForceAdd adds the given node to structure without checking on coincidence with other nodes. returns index of the node in the structure.
- param theVertex
- type theVertex
BRepMesh_Vertex
- param isForceAdd
- type isForceAdd
bool
- rtype
int
-
DeleteVertex
()¶ - Deletes vertex with the given index from the tool.
- param theIndex
- type theIndex
int
- rtype
None
-
static
DownCast
(t)¶
-
Extent
()¶ - Returns a number of vertices.
- rtype
inline int
-
FindIndex
()¶ - Returns index of the given vertex.
- param theVertex
- type theVertex
BRepMesh_Vertex
- rtype
int
-
FindKey
()¶ - Returns vertex by the given index.
- param theIndex
- type theIndex
int
- rtype
inline BRepMesh_Vertex
-
GetListOfDelNodes
()¶ - Returns the list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node.
- rtype
inline IMeshData::ListOfInteger
-
GetTolerance
()¶ - Gets the tolerance to be used for identification of coincident vertices. @param theToleranceX tolerance for X dimension. @param theToleranceY tolerance for Y dimension.
- param theToleranceX
- type theToleranceX
float
- param theToleranceY
- type theToleranceY
float
- rtype
None
-
IsEmpty
()¶ - Returns True when the map contains no keys.
- rtype
inline bool
-
RemoveLast
()¶ - Remove last node from the structure.
- rtype
inline void
-
SetCellSize
()¶ - Sets new size of cell for cellfilter equal in both directions.
- param theSize
- type theSize
float
- rtype
None* Sets new size of cell for cellfilter. @param theSizeX size for X dimension. @param theSizeY size for Y dimension.
- param theSizeX
- type theSizeX
float
- param theSizeY
- type theSizeY
float
- rtype
None
-
SetTolerance
()¶ - Sets the tolerance to be used for identification of coincident vertices equal for both dimensions.
- param theTolerance
- type theTolerance
float
- rtype
None* Sets the tolerance to be used for identification of coincident vertices. @param theToleranceX tolerance for X dimension. @param theToleranceY tolerance for Y dimension.
- param theToleranceX
- type theToleranceX
float
- param theToleranceY
- type theToleranceY
float
- rtype
None
-
StatisticsToString
(BRepMesh_VertexTool self) → std::string¶
-
Substitute
()¶ - Substitutes vertex with the given by the given vertex with attributes. @param theIndex index of vertex to be substituted. @param theVertex replacement vertex.
- param theIndex
- type theIndex
int
- param theVertex
- type theVertex
BRepMesh_Vertex
- rtype
None
-
property
thisown
¶ The membership flag