OCC.BOPInt module

class OCC.BOPInt.BOPInt_Context(*args)

Bases: OCC.MMgt.MMgt_TShared

ComputePE()
  • Computes parameter of the Point theP on the edge aE. Returns zero if the distance between point and edge is less than sum of tolerance value of edge and theTopP, otherwise and for following conditions returns negative value 1. the edge is degenerated (-1) 2. the edge does not contain 3d curve and pcurves (-2) 3. projection algorithm failed (-3)
Parameters:
  • theP (gp_Pnt) –
  • theTolP (float) –
  • theE (TopoDS_Edge &) –
  • theT (float &) –
Return type:

int

ComputeVE()
  • Computes parameter of the vertex aV on the edge aE. Returns zero if the distance between vertex and edge is less than sum of tolerances, otherwise and for following conditions returns negative value 1. the edge is degenerated (-1) 2. the edge does not contain 3d curve and pcurves (-2) 3. projection algorithm failed (-3) Computes parameter aT of the vertex aV on the edge aE. Returns zero if the distance between vertex and edge is less than sum of tolerances, otherwise and for following conditions returns negative value 1. the edge is degenerated (-1) 2. the edge does not contain 3d curve and pcurves (-2) 3. projection algorithm failed (-3) Output parameters bToUpdateVertex - the flag that indicates whether the vertex tolerance should be modified or not aDist - the value of the distance between the vertex and the edge
Parameters:
  • aV (TopoDS_Vertex &) –
  • aE (TopoDS_Edge &) –
  • aT (float &) –
Return type:

int

ComputeVF()
  • Computes UV parameters of the vertex aV on face aF Returns zero if the distance between vertex and face is less than or equal the sum of tolerances and the projection point lays inside boundaries of the face. For following conditions returns negative value 1. projection algorithm failed (-1) 2. distance is more than sum of tolerances (-2) 3. projection point out or on the boundaries of face (-3)
Parameters:
  • aV (TopoDS_Vertex &) –
  • aF (TopoDS_Face &) –
  • U (float &) –
  • V (float &) –
Return type:

int

FClass2d()
  • Returns a reference to point classifier for given face
Parameters:aF (TopoDS_Face &) –
Return type:IntTools_FClass2d
GetHandle()

BOPInt_Context_GetHandle(BOPInt_Context self) -> Handle_BOPInt_Context

Hatcher()
  • Returns a reference to 2D hatcher for given face
Parameters:aF (TopoDS_Face &) –
Return type:Geom2dHatch_Hatcher
IsPointInFace()
  • Returns true if the point aP2D is inside the boundaries of the face aF, otherwise returns false
Parameters:
  • aF (TopoDS_Face &) –
  • aP2D (gp_Pnt2d) –
Return type:

bool

IsPointInOnFace()
  • Returns true if the point aP2D is inside or on the boundaries of aF
Parameters:
  • aF (TopoDS_Face &) –
  • aP2D (gp_Pnt2d) –
Return type:

bool

IsValidBlockForFace()
  • Returns true if IsValidPointForFace returns true for some 3d point that lay on the curve aIC bounded by parameters aT1 and aT2
Parameters:
  • aT1 (float) –
  • aT2 (float) –
  • aIC (IntTools_Curve &) –
  • aF (TopoDS_Face &) –
  • aTol (float) –
Return type:

bool

IsValidBlockForFaces()
  • Returns true if IsValidBlockForFace returns true for both faces aF1 and aF2
Parameters:
  • aT1 (float) –
  • aT2 (float) –
  • aIC (IntTools_Curve &) –
  • aF1 (TopoDS_Face &) –
  • aF2 (TopoDS_Face &) –
  • aTol (float) –
Return type:

bool

IsValidPointForFace()
  • Returns true if the distance between point aP3D and face aF is less or equal to tolerance aTol and projection point is inside or on the boundaries of the face aF
Parameters:
  • aP3D (gp_Pnt) –
  • aF (TopoDS_Face &) –
  • aTol (float) –
Return type:

bool

IsValidPointForFaces()
  • Returns true if IsValidPointForFace returns true for both face aF1 and aF2
Parameters:
  • aP3D (gp_Pnt) –
  • aF1 (TopoDS_Face &) –
  • aF2 (TopoDS_Face &) –
  • aTol (float) –
Return type:

bool

IsVertexOnLine()
  • Computes parameter of the vertex aV on the curve aIC. Returns true if the distance between vertex and curve is less than sum of tolerance of aV and aTolC, otherwise or if projection algorithm failed returns false (in this case aT isn’t significant)
Parameters:
  • aV (TopoDS_Vertex &) –
  • aIC (IntTools_Curve &) –
  • aTolC (float) –
  • aT (float &) –
Return type:

bool

  • Computes parameter of the vertex aV on the curve aIC. Returns true if the distance between vertex and curve is less than sum of tolerance of aV and aTolC, otherwise or if projection algorithm failed returns false (in this case aT isn’t significant)
Parameters:
  • aV (TopoDS_Vertex &) –
  • aTolV (float) –
  • aIC (IntTools_Curve &) –
  • aTolC (float) –
  • aT (float &) –
Return type:

bool

ProjPC()
  • Returns a reference to point projector for given edge
Parameters:aE (TopoDS_Edge &) –
Return type:GeomAPI_ProjectPointOnCurve
ProjPS()
  • Returns a reference to point projector for given face
Parameters:aF (TopoDS_Face &) –
Return type:GeomAPI_ProjectPointOnSurf
ProjPT()
  • Returns a reference to point projector for given curve
Parameters:aC (Handle_Geom_Curve &) –
Return type:GeomAPI_ProjectPointOnCurve
ProjectPointOnEdge()
  • Computes parameter of the point aP on the edge aE. Returns false if projection algorithm failed other wiese returns true.
Parameters:
  • aP (gp_Pnt) –
  • aE (TopoDS_Edge &) –
  • aT (float &) –
Return type:

bool

SolidClassifier()
  • Returns a reference to solid classifier for given solid
Parameters:aSolid (TopoDS_Solid &) –
Return type:BRepClass3d_SolidClassifier
StatePointFace()
  • Returns the state of the point aP2D relative to face aF
Parameters:
  • aF (TopoDS_Face &) –
  • aP2D (gp_Pnt2d) –
Return type:

TopAbs_State

SurfaceData()
  • Returns a reference to surface localization data for given face
Parameters:aF (TopoDS_Face &) –
Return type:IntTools_SurfaceRangeLocalizeData
thisown

The membership flag

class OCC.BOPInt.BOPInt_ShrunkRange

Bases: object

BndBox()
Return type:Bnd_Box
Context()
Return type:Handle_BOPInt_Context
Edge()
Return type:TopoDS_Edge
ErrorStatus()
  • Returns code of computing shrunk range completion 0 - means successful completion 1 - nothing has been done 2 - initial range is out of edge’s range 3 - first boundary of initial range is more than last boundary 4 - projection of first vertex failed 5 - projection of second vertex failed 6 - shrunk range can not be computed shrunk range is setted to initial range
Return type:int
Perform()
Return type:None
SetContext()
Parameters:aCtx (Handle_BOPInt_Context &) –
Return type:None
SetData()
Parameters:
  • aE (TopoDS_Edge &) –
  • aT1 (float) –
  • aT2 (float) –
  • aV1 (TopoDS_Vertex &) –
  • aV2 (TopoDS_Vertex &) –
Return type:

None

SetShrunkRange()
Parameters:
  • aT1 (float) –
  • aT2 (float) –
Return type:

None

ShrunkRange()
Parameters:
  • aT1 (float &) –
  • aT2 (float &) –
Return type:

None

thisown

The membership flag

class OCC.BOPInt.BOPInt_Tools(*args, **kwargs)

Bases: object

static CheckCurve(*args)
Parameters:
  • theC (Handle_Geom_Curve &) –
  • theTol (float) –
  • theBox (Bnd_Box &) –
Return type:

bool

static IsInRange(*args)
  • Checks if the range <theR> interfere with the range <theRRef>
Parameters:
  • theRRef (IntTools_Range &) –
  • theR (IntTools_Range &) –
  • theTol (float) –
Return type:

bool

static IsOnPave(*args)
Parameters:
  • theT (float) –
  • theRange (IntTools_Range &) –
  • theTol (float) –
Return type:

bool

static IsOnPave1(*args)
Parameters:
  • theT (float) –
  • theRange (IntTools_Range &) –
  • theTol (float) –
Return type:

bool

static SegPln(*args)
Parameters:
  • theLin (gp_Lin) –
  • theTLin1 (float) –
  • theTLin2 (float) –
  • theTolLin (float) –
  • thePln (gp_Pln) –
  • theTolPln (float) –
  • theP (gp_Pnt) –
  • theT (float &) –
  • theTolP (float &) –
  • theTmin (float &) –
  • theTmax (float &) –
Return type:

int

static VertexParameter(*args)
Parameters:
  • theCP (IntTools_CommonPrt &) –
  • theT (float &) –
Return type:

void

static VertexParameters(*args)
Parameters:
  • theCP (IntTools_CommonPrt &) –
  • theT1 (float &) –
  • theT2 (float &) –
Return type:

void

thisown

The membership flag

OCC.BOPInt.BOPInt_Tools_CheckCurve(*args)
Parameters:
  • theC (Handle_Geom_Curve &) –
  • theTol (float) –
  • theBox (Bnd_Box &) –
Return type:

bool

OCC.BOPInt.BOPInt_Tools_IsInRange(*args)
  • Checks if the range <theR> interfere with the range <theRRef>
Parameters:
  • theRRef (IntTools_Range &) –
  • theR (IntTools_Range &) –
  • theTol (float) –
Return type:

bool

OCC.BOPInt.BOPInt_Tools_IsOnPave(*args)
Parameters:
  • theT (float) –
  • theRange (IntTools_Range &) –
  • theTol (float) –
Return type:

bool

OCC.BOPInt.BOPInt_Tools_IsOnPave1(*args)
Parameters:
  • theT (float) –
  • theRange (IntTools_Range &) –
  • theTol (float) –
Return type:

bool

OCC.BOPInt.BOPInt_Tools_SegPln(*args)
Parameters:
  • theLin (gp_Lin) –
  • theTLin1 (float) –
  • theTLin2 (float) –
  • theTolLin (float) –
  • thePln (gp_Pln) –
  • theTolPln (float) –
  • theP (gp_Pnt) –
  • theT (float &) –
  • theTolP (float &) –
  • theTmin (float &) –
  • theTmax (float &) –
Return type:

int

OCC.BOPInt.BOPInt_Tools_VertexParameter(*args)
Parameters:
  • theCP (IntTools_CommonPrt &) –
  • theT (float &) –
Return type:

void

OCC.BOPInt.BOPInt_Tools_VertexParameters(*args)
Parameters:
  • theCP (IntTools_CommonPrt &) –
  • theT1 (float &) –
  • theT2 (float &) –
Return type:

void

class OCC.BOPInt.Handle_BOPInt_Context(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

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

Bases: object

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

The membership flag

value()