OCC.BRepMesh module

No docstring provided.

class BRepMesh_Circle(*args)

Bases: object

  • Default constructor.
Return type:None
  • Constructor. @param theLocation location of a circle. @param theRadius radius of a circle.
Parameters:
Return type:

None

Location()
  • Returns location of a circle.
Return type:inline gp_XY
Radius()
  • Returns radius of a circle.
Return type:inline float
SetLocation()
  • Sets location of a circle. @param theLocation location of a circle.
Parameters:theLocation (gp_XY) –
Return type:inline void
SetRadius()
  • Sets radius of a circle. @param theRadius radius of a circle.
Parameters:theRadius (float) –
Return type:inline void
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.
Parameters:
  • theTolerance (float) –
  • theReservedSize (int) –
  • theAllocator (Handle_NCollection_IncAllocator &) –
Return type:

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.
Parameters:
  • theIndex (int) –
  • theCircle (BRepMesh_Circle &) –
Return type:

inline void

Circle()
  • Returns circle with the given index. @param theIndex index of circle. returns circle with the given index.
Parameters:theIndex (int) –
Return type:inline BRepMesh_Circle
Circles()
  • Resutns vector of registered circles.
Return type:inline BRepMesh::VectorOfCircle
GetShotCircles()
  • Returns list of circles shot by the reference point.
Return type:inline BRepMesh::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.
Parameters:theTargetIndex (int) –
Return type:NCollection_CellFilter_Action
static IsEqual()
  • Checks indices for equlity.
Parameters:
  • theIndex (int) –
  • theTargetIndex (int) –
Return type:

bool

SetPoint()
  • Set reference point to be checked. @param thePoint bullet point.
Parameters:thePoint (gp_XY) –
Return type:inline void
thisown

The membership flag

BRepMesh_CircleInspector_IsEqual()
  • Checks indices for equlity.
Parameters:
  • theIndex (int) –
  • theTargetIndex (int) –
Return type:

bool

class BRepMesh_CircleTool(*args)

Bases: object

  • Constructor. @param theAllocator memory allocator to be used by internal structures.
Parameters:theAllocator (Handle_NCollection_IncAllocator &) –
Return type:None
  • Constructor. @param theReservedSize size to be reserved for vector of circles. @param theAllocator memory allocator to be used by internal structures.
Parameters:
  • theReservedSize (int) –
  • theAllocator (Handle_NCollection_IncAllocator &) –
Return type:

None

Bind()
  • Binds the circle to the tool. @param theIndex index a circle should be bound with. @param theCircle circle to be bound.
Parameters:
Return type:

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.
Parameters:
Return type:

bool

Delete()
  • Deletes a circle from the tool. @param theIndex index of a circle to be removed.
Parameters:theIndex (int) –
Return type:None
Init()
  • Initializes the tool. @param theReservedSize size to be reserved for vector of circles.
Parameters:Standard_Integer
Return type:inline void
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.
Parameters:
  • thePoint1 (gp_XY) –
  • thePoint2 (gp_XY) –
  • thePoint3 (gp_XY) –
  • theLocation (gp_XY) –
  • theRadius (float &) –
Return type:

bool

MocBind()
  • Binds implicit zero circle. @param theIndex index a zero circle should be bound with.
Parameters:theIndex (int) –
Return type:None
Select()
  • Select the circles shot by the given point. @param thePoint bullet point.
Parameters:thePoint (gp_XY) –
Return type:BRepMesh::ListOfInteger
SetCellSize()
  • Sets new size for cell filter. @param theSize cell size to be set for X and Y dimensions.
Parameters:theSize (float) –
Return type: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.
Parameters:
Return type:

inline void

SetMinMaxSize()
  • Sets limits of inspection area. @param theMin bottom left corner of inspection area. @param theMax top right corner of inspection area.
Parameters:
Return type:

inline void

thisown

The membership flag

BRepMesh_CircleTool_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.
Parameters:
  • thePoint1 (gp_XY) –
  • thePoint2 (gp_XY) –
  • thePoint3 (gp_XY) –
  • theLocation (gp_XY) –
  • theRadius (float &) –
Return type:

bool

class BRepMesh_Classifier(*args)

Bases: object

  • Constructor.
Return type:None
Destroy()
  • Method is called on destruction. Clears internal data structures.
Return type:None
Perform()
  • Performs classification of the given point regarding to face internals. @param thePoint Point in parametric space to be classified. returns
Parameters:thePoint (gp_Pnt2d) –
Return type: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.
Parameters:
  • theWire (NCollection_Sequence<gp_Pnt2d>) –
  • theTolUV (float) –
  • theUmin (float) –
  • theUmax (float) –
  • theVmin (float) –
  • theVmax (float) –
Return type:

None

thisown

The membership flag

class BRepMesh_DataStructureOfDelaun(*args)

Bases: OCC.Standard.Standard_Transient

  • Constructor. @param theAllocator memory allocator to be used by internal structures. @param theReservedNodeSize presumed number of nodes in this mesh.
Parameters:
  • theAllocator (Handle_NCollection_IncAllocator &) –
  • theReservedNodeSize (int) – default value is 100
Return type:

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.
Parameters:theElement (BRepMesh_Triangle &) –
Return type:int
  • 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.
Parameters:theLink (BRepMesh_Edge &) –
Return type: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.
Parameters:
  • theNode (BRepMesh_Vertex &) –
  • isForceAdd (bool) – default value is Standard_False
Return type:

int

Allocator()
  • Returns memory allocator used by the structure.
Return type:inline 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.
Return type:None
ClearDomain()
  • Removes all elements.
Return type:None
Data()
  • Gives the data structure for initialization of cell size and tolerance.
Return type:inline BRepMesh::HVertexTool
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.
Parameters: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.
Parameters:theLinkIndex (int) –
Return type:BRepMesh_PairOfIndex
ElementsOfDomain()
  • Returns map of indices of elements registered in mesh.
Return type:inline BRepMesh::MapOfInteger
GetElement()
  • Get element by the index. @param theIndex index of an element. returns element with the given index.
Parameters:theIndex (int) –
Return type:BRepMesh_Triangle
GetHandle()
  • Get link by the index. @param theIndex index of a link. returns link with the given index.
Parameters:theIndex (int) –
Return type:BRepMesh_Edge
GetNode()
  • Get node by the index. @param theIndex index of a node. returns node with the given index.
Parameters:theIndex (int) –
Return type: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.
Parameters:theNode (BRepMesh_Vertex &) –
Return type: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.
Parameters:theLink (BRepMesh_Edge &) –
Return type:int
  • Finds the index of the given element. @param theElement element to find. returns index of the given element of zero if element is not in the mesh.
Parameters:theElement (BRepMesh_Triangle &) –
Return type: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.
Parameters:theIndex (int) –
Return type:inline BRepMesh::ListOfInteger
LinksOfDomain()
  • Returns map of indices of links registered in mesh.
Return type:inline BRepMesh::MapOfInteger
NbElements()
  • @name API for accessing mesh elements. Returns number of links.
Return type:inline int
  • @name API for accessing mesh links. Returns number of links.
Return type:inline int
NbNodes()
  • @name API for accessing mesh nodes. Returns number of nodes.
Return type:inline int
RemoveElement()
  • Removes element from the mesh. @param theIndex index of element to be removed.
Parameters:theIndex (int) –
Return type:None
  • 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.
Parameters:
  • theIndex (int) –
  • isForce (bool) – default value is Standard_False
Return type:

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.
Parameters:
  • theIndex (int) –
  • isForce (bool) – default value is Standard_False
Return type:

None

StatisticsToString()

BRepMesh_DataStructureOfDelaun_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.
Parameters:
  • theIndex (int) –
  • theNewElement (BRepMesh_Triangle &) –
Return type:

bool

  • 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.
Parameters:
  • theIndex (int) –
  • theNewLink (BRepMesh_Edge &) –
Return type:

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.
Parameters:
  • theIndex (int) –
  • theNewNode (BRepMesh_Vertex &) –
Return type:

bool

thisown

The membership flag

class BRepMesh_Delaun(*args)

Bases: object

  • Creates the triangulation with an empty Mesh data structure.
Parameters:theVertices (BRepMesh::Array1OfVertexOfDelaun &) –
Return type:None
  • Creates the triangulation with an existent Mesh data structure.
Parameters:
  • theOldMesh (Handle_BRepMesh_DataStructureOfDelaun &) –
  • theVertices (BRepMesh::Array1OfVertexOfDelaun &) –
Return type:

None

  • Creates the triangulation with an existant Mesh data structure.
Parameters:
  • theOldMesh (Handle_BRepMesh_DataStructureOfDelaun &) –
  • theVertexIndices (BRepMesh::Array1OfInteger &) –
Return type:

None

AddVertices()
  • Adds some vertices into the triangulation.
Parameters:theVertices (BRepMesh::Array1OfVertexOfDelaun &) –
Return type:None
Circles()
  • Returns tool used to build mesh consistent to Delaunay criteria.
Return type:inline BRepMesh_CircleTool
Contains()
  • Test is the given triangle contains the given vertex. If theEdgeOn != 0 the vertex lies onto the edge index returned through this parameter.
Parameters:
  • theTriangleId (int) –
  • theVertex (BRepMesh_Vertex &) –
  • theEdgeOn (int &) –
Return type:

bool

GetEdge()
  • Gives edge with the given index
Parameters:theIndex (int) –
Return type:inline BRepMesh_Edge
GetTriangle()
  • Gives triangle with the given index
Parameters:theIndex (int) –
Return type:inline BRepMesh_Triangle
GetVertex()
  • Gives vertex with the given index
Parameters:theIndex (int) –
Return type:inline BRepMesh_Vertex
Init()
  • Initializes the triangulation with an array of vertices.
Parameters:theVertices (BRepMesh::Array1OfVertexOfDelaun &) –
Return type:None
RemoveVertex()
  • Removes a vertex from the triangulation.
Parameters:theVertex (BRepMesh_Vertex &) –
Return type:None
Result()
  • Gives the Mesh data structure.
Return type:inline Handle_BRepMesh_DataStructureOfDelaun
UseEdge()
  • Modify mesh to use the edge. returns True if done
Parameters:theEdge (int) –
Return type:bool
thisown

The membership flag

class BRepMesh_DiscretFactory(*args, **kwargs)

Bases: object

DefaultName()
  • Returns name for current meshing algorithm.
Return type: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.
Parameters:
  • theShape (TopoDS_Shape &) –
  • theLinDeflection (float) –
  • theAngDeflection (float) –
Return type:

Handle_BRepMesh_DiscretRoot

ErrorStatus()
  • Returns error status for last meshing algorithm switch.
Return type:inline BRepMesh_FactoryError
FunctionName()
  • Returns function name that should be exported by plugin.
Return type:inline TCollection_AsciiString
static Get()
  • Returns the global factory instance.
Return type:BRepMesh_DiscretFactory
Names()
  • Returns the list of registered meshing algorithms.
Return type: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.
Parameters:
  • theName (TCollection_AsciiString &) –
  • theFuncName (TCollection_AsciiString &) – default value is ‘DISCRETALGO’
Return type:

bool

SetDefaultName()
  • Setup meshing algorithm by name. Returns True if requested tool is available. On fail Factory will continue to use previous algo.
Parameters:theName (TCollection_AsciiString &) –
Return type: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.
Parameters:theFuncName (TCollection_AsciiString &) –
Return type:bool
thisown

The membership flag

BRepMesh_DiscretFactory_Get()
  • Returns the global factory instance.
Return type:BRepMesh_DiscretFactory
class BRepMesh_DiscretRoot(*args, **kwargs)

Bases: OCC.Standard.Standard_Transient

Angle()
  • Returns angular deflection.
Return type:inline float
Deflection()
  • Returns linear deflection.
Return type:inline float
GetHandle()
IsDone()
  • Returns true if triangualtion was performed and has success.
Return type:inline bool
Perform()
  • Compute triangulation for set shape.
Return type:void
SetAngle()
  • Setup angular deflection.
Parameters:theAngle (float) –
Return type:inline void
SetDeflection()
  • Setup linear deflection.
Parameters:theDeflection (float) –
Return type:inline void
SetShape()
  • Set the shape to triangulate.
Parameters:theShape (TopoDS_Shape &) –
Return type:inline void
Shape()
Return type:inline TopoDS_Shape
thisown

The membership flag

class BRepMesh_Edge(*args)

Bases: OCC.BRepMesh.BRepMesh_OrientedEdge

  • Default constructor.
Return type:None
  • Constructs a link between two vertices.
Parameters:
  • theFirstNode (int) –
  • theLastNode (int) –
  • theMovability (BRepMesh_DegreeOfFreedom) –
Return type:

None

IsEqual()
  • Checks for equality with another edge. @param theOther edge to be checked against this one. returns True if equal, False if not.
Parameters:theOther (BRepMesh_Edge &) –
Return type: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.
Parameters:theOther (BRepMesh_Edge &) –
Return type:inline bool
Movability()
  • Returns movability flag of the Link.
Return type:inline BRepMesh_DegreeOfFreedom
SetMovability()
  • Sets movability flag of the Link. @param theMovability flag to be set.
Parameters:theMovability (BRepMesh_DegreeOfFreedom) –
Return type:inline void
thisown

The membership flag

class BRepMesh_FastDiscret(*args, **kwargs)

Bases: OCC.Standard.Standard_Transient

Add()
  • Record a face for further processing. returns status flags collected during discretization of boundaries of the given face.
Parameters:face (TopoDS_Face &) –
Return type:int
GetAngle()
  • returns the deflection value.
Return type:inline float
GetDeflection()
  • returns the deflection value.
Return type:inline float
GetFaceAttribute()
  • Gives face attribute.
Parameters:
  • theFace (TopoDS_Face &) –
  • theAttribute (Handle_BRepMesh_FaceAttribute &) –
Return type:

bool

GetHandle()
InShape()
Return type:inline bool
InitSharedFaces()
Parameters:theShape (TopoDS_Shape &) –
Return type:None
IsParallel()
  • Returns the multi-threading usage flag.
Return type:inline bool
NbBoundaryPoints()
  • Returns number of boundary 3d points.
Return type:inline int
Perform()
  • Build triangulation on the whole shape.
Parameters:shape (TopoDS_Shape &) –
Return type:None
Process()
  • Triangulate a face previously recorded for processing by call to Add(). Can be executed in parallel threads.
Parameters:face (TopoDS_Face &) –
Return type:None
RemoveFaceAttribute()
  • Remove face attribute as useless to free locate memory.
Parameters:theFace (TopoDS_Face &) –
Return type:None
SetParallel()
  • Request algorithm to launch in multiple threads to improve performance (should be supported by plugin).
Parameters:theInParallel (bool) –
Return type:inline void
ShapeTrigu()
Return type:inline bool
SharedFaces()
Return type:inline TopTools_IndexedDataMapOfShapeListOfShape
WithShare()
Return type:inline bool
thisown

The membership flag

class BRepMesh_FastDiscretFace(*args)

Bases: OCC.Standard.Standard_Transient

  • Constructor. @param theAngle deviation angle to be used for surface tessellation. @param isInternalVerticesMode flag enabling/disabling internal vertices mode. @param isControlSurfaceDeflection enables/disables adaptive reconfiguration of mesh.
Parameters:
  • theAngle (float) –
  • theMinSize (float) –
  • isInternalVerticesMode (bool) –
  • isControlSurfaceDeflection (bool) –
Return type:

None

GetHandle()
Perform()
Parameters:theAttribute (Handle_BRepMesh_FaceAttribute &) –
Return type:None
thisown

The membership flag

class BRepMesh_GeomTool(*args, **kwargs)

Bases: object

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
Parameters:
  • thePoint (gp_Pnt) –
  • theParam (float) –
  • theIsReplace (bool) – default value is Standard_True
Return type:

inline int

Cross = 1
EndPointTouch = 2
Glued = 4
static IntLinLin()
  • Checks intersection between two lines defined by two points. @param theStartPnt1 start point of first line. @param theEndPnt1 end point of first line. @param theStartPnt2 start point of second line. @param theEndPnt2 end point of second line. @param[out] theIntPnt point of intersection. @param[out] theParamOnSegment parameters of intersection point corresponding to first and second segment. returns status of intersection check.
Parameters:

:param : :type : float(&theParamOnSegment) :rtype: IntFlag

static IntSegSeg()
  • Checks intersection between the two segments. Checks that intersection point lies within ranges of both segments. @param theStartPnt1 start point of first segment. @param theEndPnt1 end point of first segment. @param theStartPnt2 start point of second segment. @param theEndPnt2 end point of second segment. @param isConsiderEndPointTouch if True EndPointTouch status will be returned in case if segments are touching by end points, if False returns NoIntersection flag. @param isConsiderPointOnSegment if True PointOnSegment status will be returned in case if end point of one segment lies onto another one, if False returns NoIntersection flag. @param[out] theIntPnt point of intersection. returns status of intersection check.
Parameters:
  • theStartPnt1 (gp_XY) –
  • theEndPnt1 (gp_XY) –
  • theStartPnt2 (gp_XY) –
  • theEndPnt2 (gp_XY) –
  • isConsiderEndPointTouch (bool) –
  • isConsiderPointOnSegment (bool) –
  • theIntPnt (gp_Pnt2d) –
Return type:

IntFlag

NbPoints()
  • Returns number of discretization points.
Return type:inline int
NoIntersection = 0
static Normal()
  • @name static API Computes normal to the given surface at the specified position in parametric space. @param theSurface surface the normal should be found for. @param theParamU U parameter in parametric space of the surface. @param theParamV V parameter in parametric space of the surface. @param[out] thePoint 3d point corresponding to the given parameters. @param[out] theNormal normal vector at the point specified by the parameters. returns False if the normal can not be computed, True elsewhere.
Parameters:
  • theSurface (Handle_BRepAdaptor_HSurface &) –
  • theParamU (float) –
  • theParamV (float) –
  • thePoint (gp_Pnt) –
  • theNormal (gp_Dir) –
Return type:

bool

PointOnSegment = 3
Same = 5
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.
Parameters:
  • theIndex (int) –
  • theIsoParam (float) –
  • theParam (float &) –
  • thePoint (gp_Pnt) –
  • theUV (gp_Pnt2d) –
Return type:

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.
Parameters:
  • theIndex (int) –
  • theSurface (Handle_BRepAdaptor_HSurface &) –
  • theParam (float &) –
  • thePoint (gp_Pnt) –
  • theUV (gp_Pnt2d) –
Return type:

bool

thisown

The membership flag

BRepMesh_GeomTool_IntLinLin()
  • Checks intersection between two lines defined by two points. @param theStartPnt1 start point of first line. @param theEndPnt1 end point of first line. @param theStartPnt2 start point of second line. @param theEndPnt2 end point of second line. @param[out] theIntPnt point of intersection. @param[out] theParamOnSegment parameters of intersection point corresponding to first and second segment. returns status of intersection check.
Parameters:

:param : :type : float(&theParamOnSegment) :rtype: IntFlag

BRepMesh_GeomTool_IntSegSeg()
  • Checks intersection between the two segments. Checks that intersection point lies within ranges of both segments. @param theStartPnt1 start point of first segment. @param theEndPnt1 end point of first segment. @param theStartPnt2 start point of second segment. @param theEndPnt2 end point of second segment. @param isConsiderEndPointTouch if True EndPointTouch status will be returned in case if segments are touching by end points, if False returns NoIntersection flag. @param isConsiderPointOnSegment if True PointOnSegment status will be returned in case if end point of one segment lies onto another one, if False returns NoIntersection flag. @param[out] theIntPnt point of intersection. returns status of intersection check.
Parameters:
  • theStartPnt1 (gp_XY) –
  • theEndPnt1 (gp_XY) –
  • theStartPnt2 (gp_XY) –
  • theEndPnt2 (gp_XY) –
  • isConsiderEndPointTouch (bool) –
  • isConsiderPointOnSegment (bool) –
  • theIntPnt (gp_Pnt2d) –
Return type:

IntFlag

BRepMesh_GeomTool_Normal()
  • @name static API Computes normal to the given surface at the specified position in parametric space. @param theSurface surface the normal should be found for. @param theParamU U parameter in parametric space of the surface. @param theParamV V parameter in parametric space of the surface. @param[out] thePoint 3d point corresponding to the given parameters. @param[out] theNormal normal vector at the point specified by the parameters. returns False if the normal can not be computed, True elsewhere.
Parameters:
  • theSurface (Handle_BRepAdaptor_HSurface &) –
  • theParamU (float) –
  • theParamV (float) –
  • thePoint (gp_Pnt) –
  • theNormal (gp_Dir) –
Return type:

bool

class BRepMesh_IEdgeTool(*args, **kwargs)

Bases: OCC.Standard.Standard_Transient

GetHandle()
NbPoints()
  • Returns number of tessellation points.
Return type:int
Value()
  • Returns parameters of solution with the given index. @param theIndex index of tessellation point. @param theParameter parameters on PCurve corresponded to the solution. @param thePoint tessellation point. @param theUV coordinates of tessellation point in parametric space of face.
Parameters:
  • theIndex (int) –
  • theParameter (float &) –
  • thePoint (gp_Pnt) –
  • theUV (gp_Pnt2d) –
Return type:

None

thisown

The membership flag

class BRepMesh_IncrementalMesh(*args)

Bases: OCC.BRepMesh.BRepMesh_DiscretRoot

  • @name mesher API Default constructor
Return type: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.
Parameters:
  • theShape (TopoDS_Shape &) –
  • theLinDeflection (float) –
  • isRelative (bool) – default value is Standard_False
  • theAngDeflection (float) – default value is 0.5
  • isInParallel (bool) – default value is Standard_False
Return type:

None

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.
Parameters:
  • theShape (TopoDS_Shape &) –
  • theLinDeflection (float) –
  • theAngDeflection (float) –
  • theAlgo (BRepMesh_DiscretRoot * &) –
Return type:

int

GetHandle()
GetMinSize()
  • Returns min size parameter.
Return type:inline float
GetStatusFlags()
  • Returns accumulated status flags faced during meshing.
Return type:inline int
IsControlSurfaceDeflection()
  • Returns flag indicating is adaptive reconfiguration of mesh enabled/disabled.
Return type:inline bool
IsInternalVerticesMode()
  • Returns flag indicating is internal vertices mode enabled/disabled.
Return type:inline bool
IsModified()
  • Returns modified flag.
Return type:inline bool
IsParallel()
  • Returns the multi-threading usage flag.
Return type:inline bool
static IsParallelDefault()
  • Returns multi-threading usage flag set by default in Discret() static method (thus applied only to Mesh Factories).
Return type:bool
IsRelative()
  • Returns relative deflection flag.
Return type:inline bool
SetControlSurfaceDeflection()
  • Enables/disables control of deflection of mesh from real surface (enabled by default).
Parameters:isEnabled (bool) –
Return type:inline void
SetInternalVerticesMode()
  • Enables/disables internal vertices mode (enabled by default).
Parameters:isEnabled (bool) –
Return type:inline void
SetMinSize()
  • Sets min size parameter.
Parameters:theMinSize (float) –
Return type:inline void
SetParallel()
  • Request algorithm to launch in multiple threads to improve performance.
Parameters:isInParallel (bool) –
Return type:inline void
static SetParallelDefault()
  • Setup multi-threading usage flag set by default in Discret() static method (thus applied only to Mesh Factories).
Parameters:isInParallel (bool) –
Return type:void
SetRelative()
  • @name accessing to parameters. Enables using relative 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.
Parameters:isRelative (bool) –
Return type:inline void
thisown

The membership flag

BRepMesh_IncrementalMesh_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.
Parameters:
  • theShape (TopoDS_Shape &) –
  • theLinDeflection (float) –
  • theAngDeflection (float) –
  • theAlgo (BRepMesh_DiscretRoot * &) –
Return type:

int

BRepMesh_IncrementalMesh_IsParallelDefault()
  • Returns multi-threading usage flag set by default in Discret() static method (thus applied only to Mesh Factories).
Return type:bool
BRepMesh_IncrementalMesh_SetParallelDefault()
  • Setup multi-threading usage flag set by default in Discret() static method (thus applied only to Mesh Factories).
Parameters:isInParallel (bool) –
Return type:void
class BRepMesh_OrientedEdge(*args)

Bases: object

  • Default constructor.
Return type:None
  • Constructs a link between two vertices.
Parameters:
  • theFirstNode (int) –
  • theLastNode (int) –
Return type:

None

FirstNode()
  • Returns index of first node of the Link.
Return type:inline int
HashCode()
  • Returns hash code for this edge. @param theUpper upper index in the container. returns hash code.
Parameters:theUpper (int) –
Return type: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.
Parameters:theOther (BRepMesh_OrientedEdge &) –
Return type:inline bool
LastNode()
  • Returns index of last node of the Link.
Return type:inline int
thisown

The membership flag

class BRepMesh_PairOfIndex(*args)

Bases: object

  • Default constructor
Return type:None
Append()
  • Appends index to the pair.
Parameters:theIndex (int) –
Return type:inline void
Clear()
  • Clears indices.
Return type:None
Extent()
  • Returns number of initialized indeces.
Return type:inline int
FirstIndex()
  • Returns first index of pair.
Return type:inline int
Index()
  • Returns index corresponding to the given position in the pair. @param thePairPos position of index in the pair (1 or 2).
Parameters:thePairPos (int) –
Return type:inline int
IsEmpty()
  • Returns is pair is empty.
Return type:inline bool
LastIndex()
  • Returns last index of pair
Return type:inline int
Prepend()
  • Prepends index to the pair.
Parameters:theIndex (int) –
Return type:inline void
RemoveIndex()
  • Remove index from the given position. @param thePairPos position of index in the pair (1 or 2).
Parameters:thePairPos (int) –
Return type: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.
Parameters:
  • thePairPos (int) –
  • theIndex (int) –
Return type:

inline void

thisown

The membership flag

class BRepMesh_PairOfPolygon(*args)

Bases: object

  • Constructor. Creates empty pair with null fileds.
Return type:None
Append()
  • Sets the last element of the pair. If first element is empty, also assignes the given polygon to it. @param thePolygon plygon to be set.
Parameters:thePolygon (Handle_Poly_PolygonOnTriangulation &) –
Return type:inline void
Clear()
  • Clears pair handles.
Return type:inline void
First()
  • Returns first polygon on triangulation.
Return type:inline Handle_Poly_PolygonOnTriangulation
Last()
  • Returns last polygon on triangulation.
Return type:inline Handle_Poly_PolygonOnTriangulation
Prepend()
  • Sets the first element of the pair. If last element is empty, also assignes the given polygon to it. @param thePolygon plygon to be set.
Parameters:thePolygon (Handle_Poly_PolygonOnTriangulation &) –
Return type:inline void
thisown

The membership flag

class BRepMesh_SelectorOfDataStructureOfDelaun(*args)

Bases: object

  • Default constructor.
Return type:None
  • Constructor. Initializes selector by the mesh.
Parameters:theMesh (Handle_BRepMesh_DataStructureOfDelaun &) –
Return type:None
AddNeighbours()
  • Adds a level of neighbours by edge the selector.
Return type:inline void
Elements()
  • Returns selected elements.
Return type:inline BRepMesh::MapOfInteger
  • Gives the list of incices of frontier links.
Return type:inline BRepMesh::MapOfInteger
Initialize()
  • Initializes selector by the mesh.
Parameters:theMesh (Handle_BRepMesh_DataStructureOfDelaun &) –
Return type:None
  • Returns selected links.
Return type:inline BRepMesh::MapOfInteger
NeighboursByEdgeOf()
  • Selects all neighboring elements by links of the given element.
Parameters:theElement (BRepMesh_Triangle &) –
Return type:None
NeighboursOf()
  • Selects all neighboring elements of the given node.
Parameters:theNode (BRepMesh_Vertex &) –
Return type:None
  • Selects all neighboring elements of the given link.
Parameters:theLink (BRepMesh_Edge &) –
Return type:None
  • Selects all neighboring elements of the given element.
Parameters:theElement (BRepMesh_Triangle &) –
Return type:None
  • Adds a level of neighbours by edge to the selector.
Parameters:& (BRepMesh_SelectorOfDataStructureOfDelaun) –
Return type:inline void
NeighboursOfElement()
  • Selects all neighboring elements by nodes of the given element.
Parameters:theElementIndex (int) –
Return type:None
  • Selects all neighboring elements of link with the given index.
Parameters:theLinkIndex (int) –
Return type:None
NeighboursOfNode()
  • Selects all neighboring elements of node with the given index.
Parameters:theNodeIndex (int) –
Return type:None
Nodes()
  • Returns selected nodes.
Return type:inline BRepMesh::MapOfInteger
thisown

The membership flag

class BRepMesh_ShapeTool

Bases: object

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.
Parameters:
  • theFace (TopoDS_Face &) –
  • theTriangulation (Handle_Poly_Triangulation &) –
Return type:

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.
Parameters:
  • theBox (Bnd_Box &) –
  • theMaxDimension (float &) –
Return type:

void

static FindUV()
  • Checks 2d representations of 3d point with the given index for equality to avoid duplications. @param theIndexOfPnt3d index of 3d point with which 2d representation should be associated. @param thePnt2d 2d representation of the point with the given index. @param theVertex vertex corresponded to 3d point with the given index. Used to extract vertex tolerance in 3d space. @param theMinDistance minimum distance between vertices regarding which they could be treated as distinct ones. This value is defined by mesher using parameters given by user in connection with shape metrics. @param theFaceAttribute attributes contining data calculated according to face geomtry and define limits of face in parametric space. If defined, will be used instead of surface parameter. @param theLocation2dMap map of 2d representations of 3d points. returns given 2d point in case if 3d poind does not alredy have the similar representation, otherwice 2d point corresponding to existing representation will be returned.
Parameters:
  • theIndexOfPnt3d (int) –
  • thePnt2d (gp_Pnt2d) –
  • theVertex (TopoDS_Vertex &) –
  • theMinDistance (float) –
  • theFaceAttribute (Handle_BRepMesh_FaceAttribute &) –
Return type:

gp_XY

static IsDegenerated()
  • Checks is the given edge degenerated. Checks geometrical parameters in case if IsDegenerated flag is not set. @param theEdge edge to be checked. @param theFace face within which parametric space edge will be checked for geometrical degenerativity.
Parameters:
  • theEdge (TopoDS_Edge &) –
  • theFace (TopoDS_Face &) –
Return type:

bool

static MaxFaceTolerance()
  • Returns maximum tolerance of the given face. Considers tolerances of edges and vertices contained in the given face.
Parameters:theFace (TopoDS_Face &) –
Return type: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.
Parameters:
  • theEdge (TopoDS_Edge &) –
  • theTriangulation (Handle_Poly_Triangulation &) –
  • theLocation (TopLoc_Location &) –
Return type:

void

static NullifyFace()
  • Nullifies triangulation stored in the face. @param theFace face to be updated by null triangulation.
Parameters:theFace (TopoDS_Face &) –
Return type:void
static RelativeEdgeDeflection()
  • Returns relative deflection for edge with respect to shape size. @param theEdge edge for which relative deflection should be computed. @param theDeflection absolute deflection. @param theMaxShapeSize maximum size of a shape. @param theAdjustmentCoefficient coefficient of adjustment between maximum size of shape and calculated relative deflection. returns relative deflection for the edge.
Parameters:
  • theEdge (TopoDS_Edge &) –
  • theDeflection (float) –
  • theMaxShapeSize (float) –
  • theAdjustmentCoefficient (float &) –
Return type:

float

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.
Parameters:
  • theEdge (TopoDS_Edge &) –
  • thePolygon (Handle_Poly_PolygonOnTriangulation &) –
  • theTriangulation (Handle_Poly_Triangulation &) –
  • theLocation (TopLoc_Location &) –
Return type:

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.
Parameters:
  • theEdge (TopoDS_Edge &) –
  • thePolygon1 (Handle_Poly_PolygonOnTriangulation &) –
  • thePolygon2 (Handle_Poly_PolygonOnTriangulation &) –
  • theTriangulation (Handle_Poly_Triangulation &) –
  • theLocation (TopLoc_Location &) –
Return type:

void

static UseLocation()
  • Applies location to the given point and return result. @param thePnt point to be transformed. @param theLoc location to be applied.
Parameters:
  • thePnt (gp_Pnt) –
  • theLoc (TopLoc_Location &) –
Return type:

gp_Pnt

thisown

The membership flag

BRepMesh_ShapeTool_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.
Parameters:
  • theFace (TopoDS_Face &) –
  • theTriangulation (Handle_Poly_Triangulation &) –
Return type:

void

BRepMesh_ShapeTool_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.
Parameters:
  • theBox (Bnd_Box &) –
  • theMaxDimension (float &) –
Return type:

void

BRepMesh_ShapeTool_FindUV()
  • Checks 2d representations of 3d point with the given index for equality to avoid duplications. @param theIndexOfPnt3d index of 3d point with which 2d representation should be associated. @param thePnt2d 2d representation of the point with the given index. @param theVertex vertex corresponded to 3d point with the given index. Used to extract vertex tolerance in 3d space. @param theMinDistance minimum distance between vertices regarding which they could be treated as distinct ones. This value is defined by mesher using parameters given by user in connection with shape metrics. @param theFaceAttribute attributes contining data calculated according to face geomtry and define limits of face in parametric space. If defined, will be used instead of surface parameter. @param theLocation2dMap map of 2d representations of 3d points. returns given 2d point in case if 3d poind does not alredy have the similar representation, otherwice 2d point corresponding to existing representation will be returned.
Parameters:
  • theIndexOfPnt3d (int) –
  • thePnt2d (gp_Pnt2d) –
  • theVertex (TopoDS_Vertex &) –
  • theMinDistance (float) –
  • theFaceAttribute (Handle_BRepMesh_FaceAttribute &) –
Return type:

gp_XY

BRepMesh_ShapeTool_IsDegenerated()
  • Checks is the given edge degenerated. Checks geometrical parameters in case if IsDegenerated flag is not set. @param theEdge edge to be checked. @param theFace face within which parametric space edge will be checked for geometrical degenerativity.
Parameters:
  • theEdge (TopoDS_Edge &) –
  • theFace (TopoDS_Face &) –
Return type:

bool

BRepMesh_ShapeTool_MaxFaceTolerance()
  • Returns maximum tolerance of the given face. Considers tolerances of edges and vertices contained in the given face.
Parameters:theFace (TopoDS_Face &) –
Return type:float
BRepMesh_ShapeTool_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.
Parameters:
  • theEdge (TopoDS_Edge &) –
  • theTriangulation (Handle_Poly_Triangulation &) –
  • theLocation (TopLoc_Location &) –
Return type:

void

BRepMesh_ShapeTool_NullifyFace()
  • Nullifies triangulation stored in the face. @param theFace face to be updated by null triangulation.
Parameters:theFace (TopoDS_Face &) –
Return type:void
BRepMesh_ShapeTool_RelativeEdgeDeflection()
  • Returns relative deflection for edge with respect to shape size. @param theEdge edge for which relative deflection should be computed. @param theDeflection absolute deflection. @param theMaxShapeSize maximum size of a shape. @param theAdjustmentCoefficient coefficient of adjustment between maximum size of shape and calculated relative deflection. returns relative deflection for the edge.
Parameters:
  • theEdge (TopoDS_Edge &) –
  • theDeflection (float) –
  • theMaxShapeSize (float) –
  • theAdjustmentCoefficient (float &) –
Return type:

float

BRepMesh_ShapeTool_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.
Parameters:
  • theEdge (TopoDS_Edge &) –
  • thePolygon (Handle_Poly_PolygonOnTriangulation &) –
  • theTriangulation (Handle_Poly_Triangulation &) –
  • theLocation (TopLoc_Location &) –
Return type:

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.
Parameters:
  • theEdge (TopoDS_Edge &) –
  • thePolygon1 (Handle_Poly_PolygonOnTriangulation &) –
  • thePolygon2 (Handle_Poly_PolygonOnTriangulation &) –
  • theTriangulation (Handle_Poly_Triangulation &) –
  • theLocation (TopLoc_Location &) –
Return type:

void

BRepMesh_ShapeTool_UseLocation()
  • Applies location to the given point and return result. @param thePnt point to be transformed. @param theLoc location to be applied.
Parameters:
  • thePnt (gp_Pnt) –
  • theLoc (TopLoc_Location &) –
Return type:

gp_Pnt

class BRepMesh_Triangle(*args)

Bases: object

  • Default constructor.
Return type:None
  • Constructor. @param theEdges array of edges of triangle. @param theOrientations array of edge’s orientations. @param theMovability movability of triangle.
Parameters:
  • Standard_Integer(&theEdges)
  • Standard_Boolean(&theOrientations)
  • theMovability (BRepMesh_DegreeOfFreedom) –
Return type:

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()
  • Returns hash code for this triangle. @param theUpper upper index in the container. returns hash code.
Parameters:theUpper (int) –
Return type: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.
Parameters:
  • Standard_Integer(&theEdges)
  • Standard_Boolean(&theOrientations)
  • theMovability (BRepMesh_DegreeOfFreedom) –
Return type:

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.
Parameters:theOther (BRepMesh_Triangle &) –
Return type:bool
Movability()
  • Returns movability of the triangle.
Return type:inline BRepMesh_DegreeOfFreedom
SetMovability()
  • Sets movability of the triangle.
Parameters:theMovability (BRepMesh_DegreeOfFreedom) –
Return type:inline void
thisown

The membership flag

class BRepMesh_Vertex(*args)

Bases: object

  • Default constructor
Return type: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.
Parameters:
  • theUV (gp_XY) –
  • theLocation3d (int) –
  • theMovability (BRepMesh_DegreeOfFreedom) –
Return type:

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.
Parameters:
  • theU (float) –
  • theV (float) –
  • theMovability (BRepMesh_DegreeOfFreedom) –
Return type:

None

ChangeCoord()
  • Returns position of the vertex in parametric space for modification.
Return type:inline gp_XY
Coord()
  • Returns position of the vertex in parametric space.
Return type:inline gp_XY
HashCode()
  • Returns hash code for this vertex. @param theUpper upper index in the container. returns hash code.
Parameters:Upper (int) –
Return type: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.
Parameters:
  • theUV (gp_XY) –
  • theLocation3d (int) –
  • theMovability (BRepMesh_DegreeOfFreedom) –
Return type:

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.
Parameters:theOther (BRepMesh_Vertex &) –
Return type:bool
Location3d()
  • Returns index of 3d point associated with the vertex.
Return type:inline int
Movability()
  • Returns movability of the vertex.
Return type:inline BRepMesh_DegreeOfFreedom
SetMovability()
  • Sets movability of the vertex.
Parameters:theMovability (BRepMesh_DegreeOfFreedom) –
Return type:inline void
thisown

The membership flag

class BRepMesh_VertexInspector(*args)

Bases: object

  • Constructor. @param theReservedSize size to be reserved for vector of vertices. @param theAllocator memory allocator to be used by internal collections.
Parameters:
  • theReservedSize (int) –
  • theAllocator (Handle_NCollection_IncAllocator &) –
Return type:

None

Add()
  • Registers the given vertex. @param theVertex vertex to be registered.
Parameters:theVertex (BRepMesh_Vertex &) –
Return type:int
ChangeVertices()
  • Returns set of mesh vertices for modification.
Return type:inline BRepMesh::HVectorOfVertex
Clear()
  • Clear inspector’s internal data structures.
Return type:inline void
Delete()
  • Deletes vertex with the given index. @param theIndex index of vertex to be removed.
Parameters:theIndex (int) –
Return type:inline void
GetCoincidentPoint()
  • Returns index of point coinciding with regerence one.
Return type:inline int
GetListOfDelPoints()
  • Returns list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node.
Return type:inline BRepMesh::ListOfInteger
GetVertex()
  • Returns vertex with the given index.
Parameters:theIndex (int) –
Return type: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.
Parameters:theTargetIndex (int) –
Return type:NCollection_CellFilter_Action
static IsEqual()
  • Checks indices for equlity.
Parameters:
  • theIndex (int) –
  • theTargetIndex (int) –
Return type:

bool

NbVertices()
  • Returns number of registered vertices.
Return type:inline int
SetPoint()
  • Set reference point to be checked.
Parameters:thePoint (gp_XY) –
Return type:inline void
SetTolerance()
  • Sets the tolerance to be used for identification of coincident vertices equal for both dimensions.
Parameters:theTolerance (float) –
Return type: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.
Parameters:
  • theToleranceX (float) –
  • theToleranceY (float) –
Return type:

inline void

Vertices()
  • Returns set of mesh vertices.
Return type:inline BRepMesh::HVectorOfVertex
thisown

The membership flag

BRepMesh_VertexInspector_IsEqual()
  • Checks indices for equlity.
Parameters:
  • theIndex (int) –
  • theTargetIndex (int) –
Return type:

bool

class BRepMesh_VertexTool(*args)

Bases: object

  • Constructor. @param theReservedSize size to be reserved for vector of vertices. @param theAllocator memory allocator to be used by internal collections.
Parameters:
  • theReservedSize (int) –
  • theAllocator (Handle_NCollection_IncAllocator &) –
Return type:

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.
Parameters:
  • theVertex (BRepMesh_Vertex &) –
  • isForceAdd (bool) –
Return type:

int

ChangeVertices()
  • Returns set of mesh vertices.
Return type:inline BRepMesh::HVectorOfVertex
Delete()
  • Deletes vertex with the given index from the tool.
Parameters:theIndex (int) –
Return type:None
Extent()
  • Returns a number of vertices.
Return type:inline int
FindIndex()
  • Returns index of the given vertex.
Parameters:theVertex (BRepMesh_Vertex &) –
Return type:int
FindKey()
  • Returns vertex by the given index.
Parameters:theIndex (int) –
Return type: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.
Return type:inline BRepMesh::ListOfInteger
IsEmpty()
  • Returns True when the map contains no keys.
Return type:inline bool
RemoveLast()
  • Remove last node from the structure.
Return type:inline void
SetCellSize()
  • Sets new size of cell for cellfilter equal in both directions.
Parameters:theSize (float) –
Return type:None
  • Sets new size of cell for cellfilter. @param theSizeX size for X dimension. @param theSizeY size for Y dimension.
Parameters:
Return type:

None

SetTolerance()
  • Sets the tolerance to be used for identification of coincident vertices equal for both dimensions.
Parameters:theTolerance (float) –
Return type:None
  • Sets the tolerance to be used for identification of coincident vertices. @param theToleranceX tolerance for X dimension. @param theToleranceY tolerance for Y dimension.
Parameters:
  • theToleranceX (float) –
  • theToleranceY (float) –
Return type:

None

StatisticsToString()

BRepMesh_VertexTool_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.
Parameters:
  • theIndex (int) –
  • theVertex (BRepMesh_Vertex &) –
Return type:

None

Vertices()
  • Returns set of mesh vertices.
Return type:inline BRepMesh::HVectorOfVertex
thisown

The membership flag

class BRepMesh_WireChecker(*args)

Bases: object

  • Constructor. @param theFace Face to be checked. @param theTolUV Tolerance to be used for calculations in parametric space. @param theEdges Map of edges with associated polygon on triangulation. @param theVertexMap Map of face vertices. @param theStructure Discretized representation of face 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.
Parameters:
  • theFace (TopoDS_Face &) –
  • theTolUV (float) –
  • theEdges (BRepMesh::HDMapOfShapePairOfPolygon &) –
  • theVertexMap (BRepMesh::HIMapOfInteger &) –
  • theStructure (Handle_BRepMesh_DataStructureOfDelaun &) –
  • theUmin (float) –
  • theUmax (float) –
  • theVmin (float) –
  • theVmax (float) –
  • isInParallel (bool) –
Return type:

None

ReCompute()
  • Recompute data using parameters passed in constructor. @param[out] theClassifier Classifier to be updated using calculated data.
Parameters:theClassifier (BRepMesh::HClassifier &) –
Return type:None
Status()
  • Returns status of the check.
Return type:inline BRepMesh_Status
thisown

The membership flag

class Handle_BRepMesh_DataStructureOfDelaun(*args)

Bases: OCC.Standard.Handle_Standard_Transient

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

The membership flag

class Handle_BRepMesh_DiscretRoot(*args)

Bases: OCC.Standard.Handle_Standard_Transient

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

The membership flag

class Handle_BRepMesh_FastDiscret(*args)

Bases: OCC.Standard.Handle_Standard_Transient

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

The membership flag

class Handle_BRepMesh_FastDiscretFace(*args)

Bases: OCC.Standard.Handle_Standard_Transient

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

The membership flag

class Handle_BRepMesh_IEdgeTool(*args)

Bases: OCC.Standard.Handle_Standard_Transient

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

The membership flag

class Handle_BRepMesh_IncrementalMesh(*args)

Bases: OCC.BRepMesh.Handle_BRepMesh_DiscretRoot

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

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases