OCC.IntTools module

class OCC.IntTools.Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_ListNodeOfListOfBox(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_ListNodeOfListOfCurveRangeSample(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_ListNodeOfListOfSurfaceRangeSample(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_SequenceNodeOfSequenceOfCurves(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_SequenceNodeOfSequenceOfRanges(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_SequenceNodeOfSequenceOfRoots(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_StdMapNodeOfMapOfCurveSample(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_StdMapNodeOfMapOfSurfaceSample(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.IntTools.Handle_IntTools_TopolTool(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_TopolTool

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

The membership flag

class OCC.IntTools.IntTools_Array1OfRange(*args)

Bases: object

Assign()
Parameters:Other (IntTools_Array1OfRange &) –
Return type:IntTools_Array1OfRange
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:IntTools_Range
Destroy()
Return type:None
Init()
Parameters:V (IntTools_Range &) –
Return type:None
IsAllocated()
Return type:bool
Length()
Return type:int
Lower()
Return type:int
Set()
Parameters:Other (IntTools_Array1OfRange &) –
Return type:IntTools_Array1OfRange
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • Value (IntTools_Range &) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (Standard_Integer) –
Return type:IntTools_Range
thisown

The membership flag

class OCC.IntTools.IntTools_Array1OfRoots(*args)

Bases: object

Assign()
Parameters:Other (IntTools_Array1OfRoots &) –
Return type:IntTools_Array1OfRoots
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:IntTools_Root
Destroy()
Return type:None
Init()
Parameters:V (IntTools_Root &) –
Return type:None
IsAllocated()
Return type:bool
Length()
Return type:int
Lower()
Return type:int
Set()
Parameters:Other (IntTools_Array1OfRoots &) –
Return type:IntTools_Array1OfRoots
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • Value (IntTools_Root &) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (Standard_Integer) –
Return type:IntTools_Root
thisown

The membership flag

class OCC.IntTools.IntTools_BaseRangeSample(*args)

Bases: object

GetDepth()
Return type:int
SetDepth()
Parameters:theDepth (Standard_Integer) –
Return type:None
thisown

The membership flag

class OCC.IntTools.IntTools_BeanFaceIntersector(*args)

Bases: object

Context()
  • Gets the intersecton context
Return type:Handle_BOPInt_Context
Init()
  • Initializes the algorithm Warning: The parts of the edge which are on the surface of the face and belong to the whole in the face (if there is) is considered as result
Parameters:
  • theEdge (TopoDS_Edge &) –
  • theFace (TopoDS_Face &) –
Return type:

None

  • Initializes the algorithm
Parameters:
  • theCurve (BRepAdaptor_Curve &) –
  • theSurface (BRepAdaptor_Surface &) –
  • theBeanTolerance (float) –
  • theFaceTolerance (float) –
Return type:

None

  • Initializes the algorithm theUMinParameter, ... are used for optimization purposes
Parameters:
  • theCurve (BRepAdaptor_Curve &) –
  • theSurface (BRepAdaptor_Surface &) –
  • theFirstParOnCurve (float) –
  • theLastParOnCurve (float) –
  • theUMinParameter (float) –
  • theUMaxParameter (float) –
  • theVMinParameter (float) –
  • theVMaxParameter (float) –
  • theBeanTolerance (float) –
  • theFaceTolerance (float) –
Return type:

None

IsDone()
Return type:bool
Perform()
  • Launches the algorithm
Return type:None
Result()
Return type:IntTools_SequenceOfRanges
Parameters:theResults (IntTools_SequenceOfRanges &) –
Return type:None
SetBeanParameters()
  • Set restrictions for curve
Parameters:
  • theFirstParOnCurve (float) –
  • theLastParOnCurve (float) –
Return type:

None

SetContext()
  • Sets the intersecton context
Parameters:theContext (Handle_BOPInt_Context &) –
Return type:None
SetSurfaceParameters()
  • Set restrictions for surface
Parameters:
  • theUMinParameter (float) –
  • theUMaxParameter (float) –
  • theVMinParameter (float) –
  • theVMaxParameter (float) –
Return type:

None

thisown

The membership flag

class OCC.IntTools.IntTools_CommonPrt(*args)

Bases: object

AllNullFlag()
  • Modifier
Return type:bool
AppendRange2()
  • Appends the range of second edge.
Parameters:aR (IntTools_Range &) –
Return type:None
  • Appends the range of second edge.
Parameters:
  • tf (float) –
  • tl (float) –
Return type:

None

Assign()
Parameters:Other (IntTools_CommonPrt &) –
Return type:IntTools_CommonPrt
BoundingPoints()
  • Selector
Parameters:
  • aP1 (gp_Pnt) –
  • aP2 (gp_Pnt) –
Return type:

None

ChangeRanges2()
  • Returns the ranges of second edge.
Return type:IntTools_SequenceOfRanges
Copy()
  • Copies me to anOther
Parameters:anOther (IntTools_CommonPrt &) –
Return type:None
Edge1()
  • Returns the first edge.
Return type:TopoDS_Edge
Edge2()
  • Returns the second edge
Return type:TopoDS_Edge
Range1()
  • Returns the range of first edge
Return type:IntTools_Range
  • Returns the range of first edge.
Parameters:
  • tf (float &) –
  • tl (float &) –
Return type:

None

Ranges2()
  • Returns the ranges of second edge.
Return type:IntTools_SequenceOfRanges
Set()
Parameters:Other (IntTools_CommonPrt &) –
Return type:IntTools_CommonPrt
SetAllNullFlag()
  • Selector
Parameters:aFlag (bool) –
Return type:None
SetBoundingPoints()
  • Modifier
Parameters:
  • aP1 (gp_Pnt) –
  • aP2 (gp_Pnt) –
Return type:

None

SetEdge1()
  • Sets the first edge.
Parameters:anE (TopoDS_Edge &) –
Return type:None
SetEdge2()
  • Sets the second edge.
Parameters:anE (TopoDS_Edge &) –
Return type:None
SetRange1()
  • Sets the range of first edge.
Parameters:aR (IntTools_Range &) –
Return type:None
  • Sets the range of first edge.
Parameters:
  • tf (float) –
  • tl (float) –
Return type:

None

SetType()
  • Sets the type of the common part Vertex or Edge
Parameters:aType (TopAbs_ShapeEnum) –
Return type:None
SetVertexParameter1()
  • Sets a parameter of first vertex
Parameters:tV (float) –
Return type:None
SetVertexParameter2()
  • Sets a parameter of second vertex
Parameters:tV (float) –
Return type:None
Type()
  • Returns the type of the common part
Return type:TopAbs_ShapeEnum
VertexParameter1()
  • Returns parameter of first vertex
Return type:float
VertexParameter2()
  • Returns parameter of second vertex
Return type:float
thisown

The membership flag

class OCC.IntTools.IntTools_Compare(*args)

Bases: object

IsEqual()
  • Returns True when <Right> and <Left> are equal.
Parameters:
  • Left (IntTools_Root &) –
  • Right (IntTools_Root &) –
Return type:

bool

IsGreater()
  • Returns True if <Left> is greater than <Right>.
Parameters:
  • Left (IntTools_Root &) –
  • Right (IntTools_Root &) –
Return type:

bool

IsLower()
  • Returns True if <Left> is lower than <Right>.
Parameters:
  • Left (IntTools_Root &) –
  • Right (IntTools_Root &) –
Return type:

bool

thisown

The membership flag

class OCC.IntTools.IntTools_CompareRange(*args)

Bases: object

IsEqual()
  • Returns True when <Right> and <Left> are equal.
Parameters:
  • Left (IntTools_Range &) –
  • Right (IntTools_Range &) –
Return type:

bool

IsGreater()
  • Returns True if <Left> is greater than <Right>.
Parameters:
  • Left (IntTools_Range &) –
  • Right (IntTools_Range &) –
Return type:

bool

IsLower()
  • Returns True if <Left> is lower than <Right>.
Parameters:
  • Left (IntTools_Range &) –
  • Right (IntTools_Range &) –
Return type:

bool

thisown

The membership flag

class OCC.IntTools.IntTools_Curve(*args)

Bases: object

Bounds()
  • Returns boundary parameters and corresponded 3d point. Warning: If HasBounds returns false the returned parameters are equal to zero.
Parameters:
  • aT1 (float &) –
  • aT2 (float &) –
  • aP1 (gp_Pnt) –
  • aP2 (gp_Pnt) –
Return type:

None

Curve()
  • Selector
Return type:Handle_Geom_Curve
D0()
  • Computes 3d point corresponded to parameter aT1 Returns true if given parameter aT1 is inside the boundaries of the curve
Parameters:
  • aT1 (float &) –
  • aP1 (gp_Pnt) –
Return type:

bool

FirstCurve2d()
  • Selector
Return type:Handle_Geom2d_Curve
HasBounds()
  • Returns true if 3d curve is BoundedCurve from Geom
Return type:bool
SecondCurve2d()
  • Selector
Return type:Handle_Geom2d_Curve
SetCurve()
  • Modifier
Parameters:Curve3d (Handle_Geom_Curve &) –
Return type:None
SetCurves()
  • Modifier
Parameters:
  • Curve3d (Handle_Geom_Curve &) –
  • FirstCurve2d (Handle_Geom2d_Curve &) –
  • SecondCurve2d (Handle_Geom2d_Curve &) –
Return type:

None

SetFirstCurve2d()
  • Modifier
Parameters:FirstCurve2d (Handle_Geom2d_Curve &) –
Return type:None
SetSecondCurve2d()
  • Modifier
Parameters:SecondCurve2d (Handle_Geom2d_Curve &) –
Return type:None
Type()
  • Returns the type of 3d curve
Return type:GeomAbs_CurveType
thisown

The membership flag

class OCC.IntTools.IntTools_CurveRangeLocalizeData(*args)

Bases: object

AddBox()
Parameters:
  • theRange (IntTools_CurveRangeSample &) –
  • theBox (Bnd_Box &) –
Return type:

None

AddOutRange()
Parameters:theRange (IntTools_CurveRangeSample &) –
Return type:None
FindBox()
Parameters:
  • theRange (IntTools_CurveRangeSample &) –
  • theBox (Bnd_Box &) –
Return type:

bool

GetMinRange()
Return type:float
GetNbSample()
Return type:int
IsRangeOut()
Parameters:theRange (IntTools_CurveRangeSample &) –
Return type:bool
ListRangeOut()
Parameters:theList (IntTools_ListOfCurveRangeSample &) –
Return type:None
thisown

The membership flag

class OCC.IntTools.IntTools_CurveRangeSample(*args)

Bases: OCC.IntTools.IntTools_BaseRangeSample

GetRange()
Parameters:
  • theFirst (float) –
  • theLast (float) –
  • theNbSample (Standard_Integer) –
Return type:

IntTools_Range

GetRangeIndex()
Return type:int
GetRangeIndexDeeper()
Parameters:theNbSample (Standard_Integer) –
Return type:int
IsEqual()
Parameters:Other (IntTools_CurveRangeSample &) –
Return type:bool
SetRangeIndex()
Parameters:theIndex (Standard_Integer) –
Return type:None
thisown

The membership flag

class OCC.IntTools.IntTools_CurveRangeSampleMapHasher(*args, **kwargs)

Bases: object

static HashCode(*args)
  • Returns a HasCode value for the Key <K> in the range 0..Upper.
Parameters:
  • K (IntTools_CurveRangeSample &) –
  • Upper (Standard_Integer) –
Return type:

int

static IsEqual(*args)
  • Returns True when the two keys are the same. Two same keys must have the same hashcode, the contrary is not necessary.
Parameters:
  • S1 (IntTools_CurveRangeSample &) –
  • S2 (IntTools_CurveRangeSample &) –
Return type:

bool

thisown

The membership flag

OCC.IntTools.IntTools_CurveRangeSampleMapHasher_HashCode(*args)
  • Returns a HasCode value for the Key <K> in the range 0..Upper.
Parameters:
  • K (IntTools_CurveRangeSample &) –
  • Upper (Standard_Integer) –
Return type:

int

OCC.IntTools.IntTools_CurveRangeSampleMapHasher_IsEqual(*args)
  • Returns True when the two keys are the same. Two same keys must have the same hashcode, the contrary is not necessary.
Parameters:
  • S1 (IntTools_CurveRangeSample &) –
  • S2 (IntTools_CurveRangeSample &) –
Return type:

bool

class OCC.IntTools.IntTools_DataMapIteratorOfDataMapOfCurveSampleBox(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (IntTools_DataMapOfCurveSampleBox &) –
Return type:None
Key()
Return type:IntTools_CurveRangeSample
Value()
Return type:Bnd_Box
thisown

The membership flag

class OCC.IntTools.IntTools_DataMapIteratorOfDataMapOfSurfaceSampleBox(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (IntTools_DataMapOfSurfaceSampleBox &) –
Return type:None
Key()
Return type:IntTools_SurfaceRangeSample
Value()
Return type:Bnd_Box
thisown

The membership flag

class OCC.IntTools.IntTools_DataMapNodeOfDataMapOfCurveSampleBox(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

IntTools_DataMapNodeOfDataMapOfCurveSampleBox_GetHandle(IntTools_DataMapNodeOfDataMapOfCurveSampleBox self) -> Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox

Key()
Return type:IntTools_CurveRangeSample
Value()
Return type:Bnd_Box
thisown

The membership flag

class OCC.IntTools.IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox_GetHandle(IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox self) -> Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox

Key()
Return type:IntTools_SurfaceRangeSample
Value()
Return type:Bnd_Box
thisown

The membership flag

class OCC.IntTools.IntTools_DataMapOfCurveSampleBox(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (IntTools_DataMapOfCurveSampleBox &) –
Return type:IntTools_DataMapOfCurveSampleBox
Bind()
Parameters:
  • K (IntTools_CurveRangeSample &) –
  • I (Bnd_Box &) –
Return type:

bool

ChangeFind()
Parameters:K (IntTools_CurveRangeSample &) –
Return type:Bnd_Box
ChangeFind1()
Parameters:K (IntTools_CurveRangeSample &) –
Return type:Standard_Address
Clear()
Return type:None
Find()
Parameters:K (IntTools_CurveRangeSample &) –
Return type:Bnd_Box
Find1()
Parameters:K (IntTools_CurveRangeSample &) –
Return type:Standard_Address
IsBound()
Parameters:K (IntTools_CurveRangeSample &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Set()
Parameters:Other (IntTools_DataMapOfCurveSampleBox &) –
Return type:IntTools_DataMapOfCurveSampleBox
UnBind()
Parameters:K (IntTools_CurveRangeSample &) –
Return type:bool
thisown

The membership flag

class OCC.IntTools.IntTools_DataMapOfSurfaceSampleBox(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (IntTools_DataMapOfSurfaceSampleBox &) –
Return type:IntTools_DataMapOfSurfaceSampleBox
Bind()
Parameters:
  • K (IntTools_SurfaceRangeSample &) –
  • I (Bnd_Box &) –
Return type:

bool

ChangeFind()
Parameters:K (IntTools_SurfaceRangeSample &) –
Return type:Bnd_Box
ChangeFind1()
Parameters:K (IntTools_SurfaceRangeSample &) –
Return type:Standard_Address
Clear()
Return type:None
Find()
Parameters:K (IntTools_SurfaceRangeSample &) –
Return type:Bnd_Box
Find1()
Parameters:K (IntTools_SurfaceRangeSample &) –
Return type:Standard_Address
IsBound()
Parameters:K (IntTools_SurfaceRangeSample &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Set()
Parameters:Other (IntTools_DataMapOfSurfaceSampleBox &) –
Return type:IntTools_DataMapOfSurfaceSampleBox
UnBind()
Parameters:K (IntTools_SurfaceRangeSample &) –
Return type:bool
thisown

The membership flag

class OCC.IntTools.IntTools_EdgeEdge(*args)

Bases: object

CommonParts()
  • Returns common parts
Return type:IntTools_SequenceOfCommonPrts
IsDone()
  • Returns True if common part(s) is(are) found
Return type:bool
Perform()
  • Performs the intersection between edges
Return type:None
SetEdge1()
  • Sets the first edge
Parameters:theEdge (TopoDS_Edge &) –
Return type:None
  • Sets the first edge and its range
Parameters:
  • theEdge (TopoDS_Edge &) –
  • aT1 (float) –
  • aT2 (float) –
Return type:

None

SetEdge2()
  • Sets the second edge
Parameters:theEdge (TopoDS_Edge &) –
Return type:None
  • Sets the first edge and its range
Parameters:
  • theEdge (TopoDS_Edge &) –
  • aT1 (float) –
  • aT2 (float) –
Return type:

None

SetRange1()
  • Sets the range for the first edge
Parameters:theRange1 (IntTools_Range &) –
Return type:None
  • Sets the range for the first edge
Parameters:
  • aT1 (float) –
  • aT2 (float) –
Return type:

None

SetRange2()
  • Sets the range for the second edge
Parameters:theRange (IntTools_Range &) –
Return type:None
  • Sets the range for the second edge
Parameters:
  • aT1 (float) –
  • aT2 (float) –
Return type:

None

thisown

The membership flag

class OCC.IntTools.IntTools_EdgeFace

Bases: object

CommonParts()
  • Returns results
Return type:IntTools_SequenceOfCommonPrts
Context()
  • Gets the intersecton context
Return type:Handle_BOPInt_Context
ErrorStatus()
  • Returns code of completion 0 - means successful completion 1 - the process was not started 2,3,4,5 - invalid source data for the algorithm 6 - discretization failed 7 - no projectable ranges found 11 - distance computing error
Return type:int
IsDone()
  • Returns true if computation was done successfully, otherwise returns false
Return type:bool
static IsEqDistance(*args)
Parameters:
  • aP (gp_Pnt) –
  • aS (BRepAdaptor_Surface &) –
  • aT (float) –
  • aD (float &) –
Return type:

bool

Perform()
  • Launches the process
Return type:None
Range()
  • Returns boundaries for edge
Return type:IntTools_Range
SetContext()
  • Sets the intersecton context
Parameters:theContext (Handle_BOPInt_Context &) –
Return type:None
SetDeflection()
  • Initializes algorithm by deflection value
Parameters:aDeflection (float) –
Return type:None
SetDiscretize()
  • Initializes algorithm by discretization value
Parameters:aDiscret (Standard_Integer) –
Return type:None
SetEdge()
  • Initializes algorithm by the edge anEdge
Parameters:anEdge (TopoDS_Edge &) –
Return type:None
SetEpsilonNull()
  • Initializes algorithm by distance tolerance
Parameters:anEpsNull (float) –
Return type:None
SetEpsilonT()
  • Initializes algorithm by parameter tolerance
Parameters:anEpsT (float) –
Return type:None
SetFace()
  • Initializes algorithm by the face aFace
Parameters:aFace (TopoDS_Face &) –
Return type:None
SetRange()
  • Sets boundaries for edge. The algorithm processes edge inside these boundaries.
Parameters:aRange (IntTools_Range &) –
Return type:None
  • Sets boundaries for edge. The algorithm processes edge inside these boundaries.
Parameters:
  • aFirst (float) –
  • aLast (float) –
Return type:

None

SetTolE()
  • Initializes algorithm by edge tolerance
Parameters:aTolEdge1 (float) –
Return type:None
SetTolF()
  • Initializes algorithm by face tolerance
Parameters:aTolFace (float) –
Return type:None
thisown

The membership flag

OCC.IntTools.IntTools_EdgeFace_IsEqDistance(*args)
Parameters:
  • aP (gp_Pnt) –
  • aS (BRepAdaptor_Surface &) –
  • aT (float) –
  • aD (float &) –
Return type:

bool

class OCC.IntTools.IntTools_FClass2d(*args)

Bases: object

Destroy()
  • Destructor
Return type:None
Init()
  • Initializes algorithm by the face F and tolerance Tol
Parameters:
  • F (TopoDS_Face &) –
  • Tol (float) –
Return type:

None

IsHole()
Return type:bool
Perform()
  • Returns state of the 2d point Puv. If RecadreOnPeriodic is true (defalut value), for the periodic surface 2d point, adjusted to period, is classified.
Parameters:
  • Puv (gp_Pnt2d) –
  • RecadreOnPeriodic (bool) – default value is Standard_True
Return type:

TopAbs_State

  • Returns state of the 2d point Puv. If RecadreOnPeriodic is true (defalut value), for the periodic surface 2d point, adjusted to period, is classified.
Parameters:
  • Puv (gp_Pnt2d) –
  • RecadreOnPeriodic (bool) – default value is Standard_True
Return type:

TopAbs_State

PerformInfinitePoint()
  • Returns state of infinite 2d point relatively to (0, 0)
Return type:TopAbs_State
TestOnRestriction()
  • Test a point with +- an offset (Tol) and returns On if some points are OUT an some are IN (Caution: Internal use . see the code for more details)
Parameters:
  • Puv (gp_Pnt2d) –
  • Tol (float) –
  • RecadreOnPeriodic (bool) – default value is Standard_True
Return type:

TopAbs_State

  • Test a point with +- an offset (Tol) and returns On if some points are OUT an some are IN (Caution: Internal use . see the code for more details)
Parameters:
  • Puv (gp_Pnt2d) –
  • Tol (float) –
  • RecadreOnPeriodic (bool) – default value is Standard_True
Return type:

TopAbs_State

thisown

The membership flag

class OCC.IntTools.IntTools_FaceFace

Bases: object

Context()
  • Gets the intersecton context
Return type:Handle_BOPInt_Context
Face1()
  • Returns first of processed faces
Return type:TopoDS_Face
Face2()
  • Returns second of processed faces
Return type:TopoDS_Face
IsDone()
  • Returns True if the intersection was successful
Return type:bool
Lines()
  • Returns sequence of 3d curves as result of intersection
Return type:IntTools_SequenceOfCurves
Perform()
  • Intersects underliing surfaces of F1 and F2 Use sum of tolerance of F1 and F2 as intersection criteria
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
Return type:

None

Points()
  • Returns sequence of 3d curves as result of intersection
Return type:IntTools_SequenceOfPntOn2Faces
PrepareLines3D()
  • Provides post-processing the result lines. <bToSplit> - the flag. In case of <bToSplit> is true the closed 3D-curves will be splitted on parts. In case of <bToSplit> is false the closed 3D-curves remain untouched.
Parameters:bToSplit (bool) – default value is Standard_True
Return type:None
  • Provides post-processing the result lines. <bToSplit> - the flag. In case of <bToSplit> is true the closed 3D-curves will be splitted on parts. In case of <bToSplit> is false the closed 3D-curves remain untouched.
Parameters:bToSplit (bool) – default value is Standard_True
Return type:None
SetContext()
  • Sets the intersecton context
Parameters:aContext (Handle_BOPInt_Context &) –
Return type:None
SetList()
Parameters:ListOfPnts (IntSurf_ListOfPntOn2S &) –
Return type:None
SetParameters()
  • Modifier
Parameters:
  • ApproxCurves (bool) –
  • ComputeCurveOnS1 (bool) –
  • ComputeCurveOnS2 (bool) –
  • ApproximationTolerance (float) –
Return type:

None

TangentFaces()
  • Returns True if faces are tangent
Return type:bool
TolReached2d()
  • Returns tolerance reached during approximation. If approximation was not done, returns zero.
Return type:float
TolReached3d()
  • Returns tolerance reached during approximation. If approximation was not done, returns zero.
Return type:float
thisown

The membership flag

class OCC.IntTools.IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress_GetHandle(IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress self) -> Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress

GetKey2()

IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress_GetKey2(IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress self) -> Standard_Integer

Key1()
Return type:Handle_Standard_Transient
Next2()
Return type:TCollection_MapNodePtr
SetKey2()

IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress_SetKey2(IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress self, Standard_Integer value)

Value()
Return type:Standard_Address
thisown

The membership flag

class OCC.IntTools.IntTools_IndexedDataMapOfTransientAddress(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Add()
Parameters:
  • K (Handle_Standard_Transient &) –
  • I (Standard_Address &) –
Return type:

int

Assign()
Parameters:Other (IntTools_IndexedDataMapOfTransientAddress &) –
Return type:IntTools_IndexedDataMapOfTransientAddress
ChangeFromIndex()
Parameters:I (Standard_Integer) –
Return type:Standard_Address
ChangeFromKey()
Parameters:K (Handle_Standard_Transient &) –
Return type:Standard_Address
ChangeFromKey1()
Parameters:K (Handle_Standard_Transient &) –
Return type:Standard_Address
Clear()
Return type:None
Contains()
Parameters:K (Handle_Standard_Transient &) –
Return type:bool
FindFromIndex()
Parameters:I (Standard_Integer) –
Return type:Standard_Address
FindFromKey()
Parameters:K (Handle_Standard_Transient &) –
Return type:Standard_Address
FindFromKey1()
Parameters:K (Handle_Standard_Transient &) –
Return type:Standard_Address
FindIndex()
Parameters:K (Handle_Standard_Transient &) –
Return type:int
FindKey()
Parameters:I (Standard_Integer) –
Return type:Handle_Standard_Transient
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
RemoveLast()
Return type:None
Set()
Parameters:Other (IntTools_IndexedDataMapOfTransientAddress &) –
Return type:IntTools_IndexedDataMapOfTransientAddress
Substitute()
Parameters:
  • I (Standard_Integer) –
  • K (Handle_Standard_Transient &) –
  • T (Standard_Address &) –
Return type:

None

thisown

The membership flag

class OCC.IntTools.IntTools_ListIteratorOfListOfBox(*args)

Bases: object

Initialize()
Parameters:L (IntTools_ListOfBox &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:Bnd_Box
thisown

The membership flag

class OCC.IntTools.IntTools_ListIteratorOfListOfCurveRangeSample(*args)

Bases: object

Initialize()
Parameters:L (IntTools_ListOfCurveRangeSample &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:IntTools_CurveRangeSample
thisown

The membership flag

class OCC.IntTools.IntTools_ListIteratorOfListOfSurfaceRangeSample(*args)

Bases: object

Initialize()
Parameters:L (IntTools_ListOfSurfaceRangeSample &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:IntTools_SurfaceRangeSample
thisown

The membership flag

class OCC.IntTools.IntTools_ListNodeOfListOfBox(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

IntTools_ListNodeOfListOfBox_GetHandle(IntTools_ListNodeOfListOfBox self) -> Handle_IntTools_ListNodeOfListOfBox

Value()
Return type:Bnd_Box
thisown

The membership flag

class OCC.IntTools.IntTools_ListNodeOfListOfCurveRangeSample(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

IntTools_ListNodeOfListOfCurveRangeSample_GetHandle(IntTools_ListNodeOfListOfCurveRangeSample self) -> Handle_IntTools_ListNodeOfListOfCurveRangeSample

Value()
Return type:IntTools_CurveRangeSample
thisown

The membership flag

class OCC.IntTools.IntTools_ListNodeOfListOfSurfaceRangeSample(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

IntTools_ListNodeOfListOfSurfaceRangeSample_GetHandle(IntTools_ListNodeOfListOfSurfaceRangeSample self) -> Handle_IntTools_ListNodeOfListOfSurfaceRangeSample

Value()
Return type:IntTools_SurfaceRangeSample
thisown

The membership flag

class OCC.IntTools.IntTools_ListOfBox

Bases: object

Append()
Parameters:
  • I (Bnd_Box &) –
  • I
  • theIt (IntTools_ListIteratorOfListOfBox &) –
  • Other (IntTools_ListOfBox &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (IntTools_ListOfBox &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:Bnd_Box
InsertAfter()
Parameters:
  • I (Bnd_Box &) –
  • It (IntTools_ListIteratorOfListOfBox &) –
  • Other (IntTools_ListOfBox &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (Bnd_Box &) –
  • It (IntTools_ListIteratorOfListOfBox &) –
  • Other (IntTools_ListOfBox &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:Bnd_Box
Prepend()
Parameters:
  • I (Bnd_Box &) –
  • I
  • theIt (IntTools_ListIteratorOfListOfBox &) –
  • Other (IntTools_ListOfBox &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (IntTools_ListIteratorOfListOfBox &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (IntTools_ListOfBox &) –
Return type:None
thisown

The membership flag

class OCC.IntTools.IntTools_ListOfCurveRangeSample

Bases: object

Append()
Parameters:
  • I (IntTools_CurveRangeSample &) –
  • I
  • theIt (IntTools_ListIteratorOfListOfCurveRangeSample &) –
  • Other (IntTools_ListOfCurveRangeSample &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (IntTools_ListOfCurveRangeSample &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:IntTools_CurveRangeSample
InsertAfter()
Parameters:
  • I (IntTools_CurveRangeSample &) –
  • It (IntTools_ListIteratorOfListOfCurveRangeSample &) –
  • Other (IntTools_ListOfCurveRangeSample &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (IntTools_CurveRangeSample &) –
  • It (IntTools_ListIteratorOfListOfCurveRangeSample &) –
  • Other (IntTools_ListOfCurveRangeSample &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:IntTools_CurveRangeSample
Prepend()
Parameters:
  • I (IntTools_CurveRangeSample &) –
  • I
  • theIt (IntTools_ListIteratorOfListOfCurveRangeSample &) –
  • Other (IntTools_ListOfCurveRangeSample &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (IntTools_ListIteratorOfListOfCurveRangeSample &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (IntTools_ListOfCurveRangeSample &) –
Return type:None
thisown

The membership flag

class OCC.IntTools.IntTools_ListOfSurfaceRangeSample

Bases: object

Append()
Parameters:
  • I (IntTools_SurfaceRangeSample &) –
  • I
  • theIt (IntTools_ListIteratorOfListOfSurfaceRangeSample &) –
  • Other (IntTools_ListOfSurfaceRangeSample &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (IntTools_ListOfSurfaceRangeSample &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:IntTools_SurfaceRangeSample
InsertAfter()
Parameters:
  • I (IntTools_SurfaceRangeSample &) –
  • It (IntTools_ListIteratorOfListOfSurfaceRangeSample &) –
  • Other (IntTools_ListOfSurfaceRangeSample &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (IntTools_SurfaceRangeSample &) –
  • It (IntTools_ListIteratorOfListOfSurfaceRangeSample &) –
  • Other (IntTools_ListOfSurfaceRangeSample &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:IntTools_SurfaceRangeSample
Prepend()
Parameters:
  • I (IntTools_SurfaceRangeSample &) –
  • I
  • theIt (IntTools_ListIteratorOfListOfSurfaceRangeSample &) –
  • Other (IntTools_ListOfSurfaceRangeSample &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (IntTools_ListIteratorOfListOfSurfaceRangeSample &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (IntTools_ListOfSurfaceRangeSample &) –
Return type:None
thisown

The membership flag

class OCC.IntTools.IntTools_MapIteratorOfMapOfCurveSample(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (IntTools_MapOfCurveSample &) –
Return type:None
Key()
Return type:IntTools_CurveRangeSample
thisown

The membership flag

class OCC.IntTools.IntTools_MapIteratorOfMapOfSurfaceSample(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (IntTools_MapOfSurfaceSample &) –
Return type:None
Key()
Return type:IntTools_SurfaceRangeSample
thisown

The membership flag

class OCC.IntTools.IntTools_MapOfCurveSample(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Add()
Parameters:aKey (IntTools_CurveRangeSample &) –
Return type:bool
Assign()
Parameters:Other (IntTools_MapOfCurveSample &) –
Return type:IntTools_MapOfCurveSample
Clear()
Return type:None
Contains()
Parameters:aKey (IntTools_CurveRangeSample &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Remove()
Parameters:aKey (IntTools_CurveRangeSample &) –
Return type:bool
Set()
Parameters:Other (IntTools_MapOfCurveSample &) –
Return type:IntTools_MapOfCurveSample
thisown

The membership flag

class OCC.IntTools.IntTools_MapOfSurfaceSample(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Add()
Parameters:aKey (IntTools_SurfaceRangeSample &) –
Return type:bool
Assign()
Parameters:Other (IntTools_MapOfSurfaceSample &) –
Return type:IntTools_MapOfSurfaceSample
Clear()
Return type:None
Contains()
Parameters:aKey (IntTools_SurfaceRangeSample &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Remove()
Parameters:aKey (IntTools_SurfaceRangeSample &) –
Return type:bool
Set()
Parameters:Other (IntTools_MapOfSurfaceSample &) –
Return type:IntTools_MapOfSurfaceSample
thisown

The membership flag

class OCC.IntTools.IntTools_MarkedRangeSet(*args)

Bases: object

Flag()
  • Returns flag of the range with index theIndex
Parameters:theIndex (Standard_Integer) –
Return type:int
GetIndex()
  • Returns index of range which contains theValue. If theValue do not belong any range returns 0.
Parameters:theValue (float) –
Return type:int
  • Returns index of range which contains theValue If theValue do not belong any range returns 0. If UseLower is Standard_True then lower boundary of the range can be equal to theValue, otherwise upper boundary of the range can be equal to theValue.
Parameters:
  • theValue (float) –
  • UseLower (bool) –
Return type:

int

GetIndices()
Parameters:theValue (float) –
Return type:TColStd_SequenceOfInteger
InsertRange()
  • Inserts a new range marked with flag theFlag It replace the existing ranges or parts of ranges and their flags. Returns True if the range is inside the initial boundaries, otherwise or in case of some error returns False
Parameters:
  • theFirstBoundary (float) –
  • theLastBoundary (float) –
  • theFlag (Standard_Integer) –
Return type:

bool

  • Inserts a new range marked with flag theFlag It replace the existing ranges or parts of ranges and their flags. Returns True if the range is inside the initial boundaries, otherwise or in case of some error returns False
Parameters:
  • theRange (IntTools_Range &) –
  • theFlag (Standard_Integer) –
Return type:

bool

  • Inserts a new range marked with flag theFlag It replace the existing ranges or parts of ranges and their flags. The index theIndex is a position where the range will be inserted. Returns True if the range is inside the initial boundaries, otherwise or in case of some error returns False
Parameters:
  • theFirstBoundary (float) –
  • theLastBoundary (float) –
  • theFlag (Standard_Integer) –
  • theIndex (Standard_Integer) –
Return type:

bool

  • Inserts a new range marked with flag theFlag It replace the existing ranges or parts of ranges and their flags. The index theIndex is a position where the range will be inserted. Returns True if the range is inside the initial boundaries, otherwise or in case of some error returns False
Parameters:
  • theRange (IntTools_Range &) –
  • theFlag (Standard_Integer) –
  • theIndex (Standard_Integer) –
Return type:

bool

Length()
  • Returns number of ranges
Return type:int
Range()
  • Returns the range with index theIndex. the Index can be from 1 to Length()
Parameters:theIndex (Standard_Integer) –
Return type:IntTools_Range
SetBoundaries()
  • build set of ranges which consists of one range with boundary values theFirstBoundary and theLastBoundary
Parameters:
  • theFirstBoundary (float) –
  • theLastBoundary (float) –
  • theInitFlag (Standard_Integer) –
Return type:

None

SetFlag()
  • Set flag theFlag for range with index theIndex
Parameters:
  • theIndex (Standard_Integer) –
  • theFlag (Standard_Integer) –
Return type:

None

SetRanges()
  • Build set of ranges based on the array of progressive sorted values Warning: The function do not check if the values of array are not sorted It should be checked before function invocation
Parameters:
  • theSortedArray (IntTools_CArray1OfReal &) –
  • theInitFlag (Standard_Integer) –
Return type:

None

thisown

The membership flag

class OCC.IntTools.IntTools_PntOn2Faces(*args)

Bases: object

IsValid()
  • Selector
Return type:bool
P1()
  • Selector
Return type:IntTools_PntOnFace
P2()
  • Selector
Return type:IntTools_PntOnFace
SetP1()
  • Modifier
Parameters:aP1 (IntTools_PntOnFace &) –
Return type:None
SetP2()
  • Modifier
Parameters:aP2 (IntTools_PntOnFace &) –
Return type:None
SetValid()
  • Modifier
Parameters:bF (bool) –
Return type:None
thisown

The membership flag

class OCC.IntTools.IntTools_PntOnFace

Bases: object

Face()
  • Selector
Return type:TopoDS_Face
Init()
  • Initializes me by aFace, a 3d point and it’s UV parameters on face
Parameters:
  • aF (TopoDS_Face &) –
  • aP (gp_Pnt) –
  • U (float) –
  • V (float) –
Return type:

None

Parameters()
  • Selector
Parameters:
  • U (float &) –
  • V (float &) –
Return type:

None

Pnt()
  • Selector
Return type:gp_Pnt
SetFace()
  • Modifier
Parameters:aF (TopoDS_Face &) –
Return type:None
SetParameters()
  • Modifier
Parameters:
  • U (float) –
  • V (float) –
Return type:

None

SetPnt()
  • Modifier
Parameters:aP (gp_Pnt) –
Return type:None
SetValid()
  • Modifier
Parameters:bF (bool) –
Return type:None
thisown

The membership flag

class OCC.IntTools.IntTools_QuickSort(*args, **kwargs)

Bases: object

static Sort(*args)
Parameters:
  • TheArray (IntTools_Array1OfRoots &) –
  • Comp (IntTools_Compare &) –
Return type:

void

thisown

The membership flag

class OCC.IntTools.IntTools_QuickSortRange(*args, **kwargs)

Bases: object

static Sort(*args)
Parameters:
  • TheArray (IntTools_Array1OfRange &) –
  • Comp (IntTools_CompareRange &) –
Return type:

void

thisown

The membership flag

OCC.IntTools.IntTools_QuickSortRange_Sort(*args)
Parameters:
  • TheArray (IntTools_Array1OfRange &) –
  • Comp (IntTools_CompareRange &) –
Return type:

void

OCC.IntTools.IntTools_QuickSort_Sort(*args)
Parameters:
  • TheArray (IntTools_Array1OfRoots &) –
  • Comp (IntTools_Compare &) –
Return type:

void

class OCC.IntTools.IntTools_Range(*args)

Bases: object

First()
  • Selector
Return type:float
Last()
  • Selector
Return type:float
Range()
  • Selector
Parameters:
  • aFirst (float &) –
  • aLast (float &) –
Return type:

None

SetFirst()
  • Modifier
Parameters:aFirst (float) –
Return type:None
SetLast()
  • Modifier
Parameters:aLast (float) –
Return type:None
thisown

The membership flag

class OCC.IntTools.IntTools_Root(*args)

Bases: object

Interval()
  • Returns the values of interval from which the Root was found [t1,t2] and the corresponding values of the function on the bounds f(t1), f(t2).
Parameters:
  • t1 (float &) –
  • t2 (float &) –
  • f1 (float &) –
  • f2 (float &) –
Return type:

None

IsValid()
  • Returns the validity flag for the root, True if myStateBefore==TopAbs_OUT && myStateAfter==TopAbs_IN or myStateBefore==TopAbs_OUT && myStateAfter==TopAbs_ON or myStateBefore==TopAbs_ON && myStateAfter==TopAbs_OUT or myStateBefore==TopAbs_IN && myStateAfter==TopAbs_OUT . For other cases it returns False.
Return type:bool
LayerHeight()
  • Not used in Edge/Edge algorithm
Return type:float
Root()
  • Returns the Root value
Return type:float
SetInterval()
  • Sets the interval from which the Root was found [t1,t2] and the corresponding values of the function on the bounds f(t1), f(t2).
Parameters:
  • t1 (float) –
  • t2 (float) –
  • f1 (float) –
  • f2 (float) –
Return type:

None

SetLayerHeight()
  • Not used in Edge/Edge algorithm
Parameters:aHeight (float) –
Return type:None
SetRoot()
  • Sets the Root’s value
Parameters:aRoot (float) –
Return type:None
SetStateAfter()
  • Set the value of the state after the root (at t=Root-dt)
Parameters:aState (TopAbs_State) –
Return type:None
SetStateBefore()
  • Set the value of the state before the root (at t=Root-dt)
Parameters:aState (TopAbs_State) –
Return type:None
SetType()
  • Sets the Root’s Type
Parameters:aType (Standard_Integer) –
Return type:None
StateAfter()
  • Returns the state after the root
Return type:TopAbs_State
StateBefore()
  • Returns the state before the root
Return type:TopAbs_State
Type()
  • Returns the type of the root =0 - Simple (was found by bisection method); =2 - Smart when f1=0, f2!=0 or vice versa (was found by Fibbonacci method); =1 - Pure (pure zero for all t [t1,t2] );
Return type:int
thisown

The membership flag

class OCC.IntTools.IntTools_SequenceNodeOfSequenceOfCommonPrts(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

IntTools_SequenceNodeOfSequenceOfCommonPrts_GetHandle(IntTools_SequenceNodeOfSequenceOfCommonPrts self) -> Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts

Value()
Return type:IntTools_CommonPrt
thisown

The membership flag

class OCC.IntTools.IntTools_SequenceNodeOfSequenceOfCurves(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

IntTools_SequenceNodeOfSequenceOfCurves_GetHandle(IntTools_SequenceNodeOfSequenceOfCurves self) -> Handle_IntTools_SequenceNodeOfSequenceOfCurves

Value()
Return type:IntTools_Curve
thisown

The membership flag

class OCC.IntTools.IntTools_SequenceNodeOfSequenceOfPntOn2Faces(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

IntTools_SequenceNodeOfSequenceOfPntOn2Faces_GetHandle(IntTools_SequenceNodeOfSequenceOfPntOn2Faces self) -> Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces

Value()
Return type:IntTools_PntOn2Faces
thisown

The membership flag

class OCC.IntTools.IntTools_SequenceNodeOfSequenceOfRanges(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

IntTools_SequenceNodeOfSequenceOfRanges_GetHandle(IntTools_SequenceNodeOfSequenceOfRanges self) -> Handle_IntTools_SequenceNodeOfSequenceOfRanges

Value()
Return type:IntTools_Range
thisown

The membership flag

class OCC.IntTools.IntTools_SequenceNodeOfSequenceOfRoots(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

IntTools_SequenceNodeOfSequenceOfRoots_GetHandle(IntTools_SequenceNodeOfSequenceOfRoots self) -> Handle_IntTools_SequenceNodeOfSequenceOfRoots

Value()
Return type:IntTools_Root
thisown

The membership flag

class OCC.IntTools.IntTools_SequenceOfCommonPrts

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (IntTools_CommonPrt &) –
  • S (IntTools_SequenceOfCommonPrts &) –
Return type:

None

Return type:

None

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

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (IntTools_CommonPrt &) –
  • Index
  • S (IntTools_SequenceOfCommonPrts &) –
Return type:

None

Return type:

None

Last()
Return type:IntTools_CommonPrt
Prepend()
Parameters:
  • T (IntTools_CommonPrt &) –
  • S (IntTools_SequenceOfCommonPrts &) –
Return type:

None

Return type:

None

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

None

Return type:

None

Set()
Parameters:Other (IntTools_SequenceOfCommonPrts &) –
Return type:IntTools_SequenceOfCommonPrts
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (IntTools_CommonPrt &) –
Return type:

None

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

None

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

The membership flag

class OCC.IntTools.IntTools_SequenceOfCurves

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (IntTools_Curve &) –
  • S (IntTools_SequenceOfCurves &) –
Return type:

None

Return type:

None

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

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (IntTools_Curve &) –
  • Index
  • S (IntTools_SequenceOfCurves &) –
Return type:

None

Return type:

None

Last()
Return type:IntTools_Curve
Prepend()
Parameters:
  • T (IntTools_Curve &) –
  • S (IntTools_SequenceOfCurves &) –
Return type:

None

Return type:

None

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

None

Return type:

None

Set()
Parameters:Other (IntTools_SequenceOfCurves &) –
Return type:IntTools_SequenceOfCurves
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (IntTools_Curve &) –
Return type:

None

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

None

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

The membership flag

class OCC.IntTools.IntTools_SequenceOfPntOn2Faces

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (IntTools_PntOn2Faces &) –
  • S (IntTools_SequenceOfPntOn2Faces &) –
Return type:

None

Return type:

None

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

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (IntTools_PntOn2Faces &) –
  • Index
  • S (IntTools_SequenceOfPntOn2Faces &) –
Return type:

None

Return type:

None

Last()
Return type:IntTools_PntOn2Faces
Prepend()
Parameters:
  • T (IntTools_PntOn2Faces &) –
  • S (IntTools_SequenceOfPntOn2Faces &) –
Return type:

None

Return type:

None

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

None

Return type:

None

Set()
Parameters:Other (IntTools_SequenceOfPntOn2Faces &) –
Return type:IntTools_SequenceOfPntOn2Faces
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (IntTools_PntOn2Faces &) –
Return type:

None

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

None

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

The membership flag

class OCC.IntTools.IntTools_SequenceOfRanges

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (IntTools_Range &) –
  • S (IntTools_SequenceOfRanges &) –
Return type:

None

Return type:

None

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

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (IntTools_Range &) –
  • Index
  • S (IntTools_SequenceOfRanges &) –
Return type:

None

Return type:

None

Last()
Return type:IntTools_Range
Prepend()
Parameters:
  • T (IntTools_Range &) –
  • S (IntTools_SequenceOfRanges &) –
Return type:

None

Return type:

None

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

None

Return type:

None

Set()
Parameters:Other (IntTools_SequenceOfRanges &) –
Return type:IntTools_SequenceOfRanges
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (IntTools_Range &) –
Return type:

None

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

None

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

The membership flag

class OCC.IntTools.IntTools_SequenceOfRoots

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (IntTools_Root &) –
  • S (IntTools_SequenceOfRoots &) –
Return type:

None

Return type:

None

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

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (IntTools_Root &) –
  • Index
  • S (IntTools_SequenceOfRoots &) –
Return type:

None

Return type:

None

Last()
Return type:IntTools_Root
Prepend()
Parameters:
  • T (IntTools_Root &) –
  • S (IntTools_SequenceOfRoots &) –
Return type:

None

Return type:

None

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

None

Return type:

None

Set()
Parameters:Other (IntTools_SequenceOfRoots &) –
Return type:IntTools_SequenceOfRoots
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (IntTools_Root &) –
Return type:

None

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

None

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

The membership flag

class OCC.IntTools.IntTools_StdMapNodeOfMapOfCurveSample(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

IntTools_StdMapNodeOfMapOfCurveSample_GetHandle(IntTools_StdMapNodeOfMapOfCurveSample self) -> Handle_IntTools_StdMapNodeOfMapOfCurveSample

Key()
Return type:IntTools_CurveRangeSample
thisown

The membership flag

class OCC.IntTools.IntTools_StdMapNodeOfMapOfSurfaceSample(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

IntTools_StdMapNodeOfMapOfSurfaceSample_GetHandle(IntTools_StdMapNodeOfMapOfSurfaceSample self) -> Handle_IntTools_StdMapNodeOfMapOfSurfaceSample

Key()
Return type:IntTools_SurfaceRangeSample
thisown

The membership flag

class OCC.IntTools.IntTools_SurfaceRangeLocalizeData(*args)

Bases: object

AddBox()
Parameters:
  • theRange (IntTools_SurfaceRangeSample &) –
  • theBox (Bnd_Box &) –
Return type:

None

AddOutRange()
Parameters:theRange (IntTools_SurfaceRangeSample &) –
Return type:None
Assign()
Parameters:Other (IntTools_SurfaceRangeLocalizeData &) –
Return type:IntTools_SurfaceRangeLocalizeData
ClearGrid()
  • Clears the grid of points.
Return type:None
FindBox()
Parameters:
  • theRange (IntTools_SurfaceRangeSample &) –
  • theBox (Bnd_Box &) –
Return type:

bool

GetGridDeflection()
  • Query the grid deflection.
Return type:float
GetGridPoint()
  • Set the grid point.
Parameters:
  • theUIndex (Standard_Integer) –
  • theVIndex (Standard_Integer) –
Return type:

gp_Pnt

GetMinRangeU()
Return type:float
GetMinRangeV()
Return type:float
GetNBUPointsInFrame()
  • Returns the number of grid points on U direction in frame.
Return type:int
GetNBVPointsInFrame()
  • Returns the number of grid points on V direction in frame.
Return type:int
GetNbSampleU()
Return type:int
GetNbSampleV()
Return type:int
GetPointInFrame()
  • Returns the grid point in frame.
Parameters:
  • theUIndex (Standard_Integer) –
  • theVIndex (Standard_Integer) –
Return type:

gp_Pnt

GetRangeUGrid()
  • Query the range U of the grid of points.
Return type:int
GetRangeVGrid()
  • Query the range V of the grid of points.
Return type:int
GetUParam()
  • Query the U parameter of the grid points at that index.
Parameters:theIndex (Standard_Integer) –
Return type:float
GetUParamInFrame()
  • Query the U parameter of the grid points at that index in frame.
Parameters:theIndex (Standard_Integer) –
Return type:float
GetVParam()
  • Query the V parameter of the grid points at that index.
Parameters:theIndex (Standard_Integer) –
Return type:float
GetVParamInFrame()
  • Query the V parameter of the grid points at that index in frame.
Parameters:theIndex (Standard_Integer) –
Return type:float
IsRangeOut()
Parameters:theRange (IntTools_SurfaceRangeSample &) –
Return type:bool
ListRangeOut()
Parameters:theList (IntTools_ListOfSurfaceRangeSample &) –
Return type:None
RemoveRangeOutAll()
Return type:None
Set()
Parameters:Other (IntTools_SurfaceRangeLocalizeData &) –
Return type:IntTools_SurfaceRangeLocalizeData
SetFrame()
  • Sets the frame area. Used to work with grid points.
Parameters:
  • theUMin (float) –
  • theUMax (float) –
  • theVMin (float) –
  • theVMax (float) –
Return type:

None

SetGridDeflection()
  • Set the grid deflection.
Parameters:theDeflection (float) –
Return type:None
SetGridPoint()
  • Set the grid point.
Parameters:
  • theUIndex (Standard_Integer) –
  • theVIndex (Standard_Integer) –
  • thePoint (gp_Pnt) –
Return type:

None

SetRangeUGrid()
  • Set the range U of the grid of points.
Parameters:theNbUGrid (Standard_Integer) –
Return type:None
SetRangeVGrid()
  • Set the range V of the grid of points.
Parameters:theNbVGrid (Standard_Integer) –
Return type:None
SetUParam()
  • Set the U parameter of the grid points at that index.
Parameters:
  • theIndex (Standard_Integer) –
  • theUParam (float) –
Return type:

None

SetVParam()
  • Set the V parameter of the grid points at that index.
Parameters:
  • theIndex (Standard_Integer) –
  • theVParam (float) –
Return type:

None

thisown

The membership flag

class OCC.IntTools.IntTools_SurfaceRangeSample(*args)

Bases: object

Assign()
Parameters:Other (IntTools_SurfaceRangeSample &) –
Return type:IntTools_SurfaceRangeSample
GetDepthU()
Return type:int
GetDepthV()
Return type:int
GetDepths()
Parameters:
  • theDepthU (Standard_Integer &) –
  • theDepthV (Standard_Integer &) –
Return type:

None

GetIndexU()
Return type:int
GetIndexV()
Return type:int
GetIndexes()
Parameters:
  • theIndexU (Standard_Integer &) –
  • theIndexV (Standard_Integer &) –
Return type:

None

GetRangeIndexUDeeper()
Parameters:theNbSampleU (Standard_Integer) –
Return type:int
GetRangeIndexVDeeper()
Parameters:theNbSampleV (Standard_Integer) –
Return type:int
GetRangeU()
Parameters:
  • theFirstU (float) –
  • theLastU (float) –
  • theNbSampleU (Standard_Integer) –
Return type:

IntTools_Range

GetRangeV()
Parameters:
  • theFirstV (float) –
  • theLastV (float) –
  • theNbSampleV (Standard_Integer) –
Return type:

IntTools_Range

GetRanges()
Parameters:
  • theRangeU (IntTools_CurveRangeSample &) –
  • theRangeV (IntTools_CurveRangeSample &) –
Return type:

None

GetSampleRangeU()
Return type:IntTools_CurveRangeSample
GetSampleRangeV()
Return type:IntTools_CurveRangeSample
IsEqual()
Parameters:Other (IntTools_SurfaceRangeSample &) –
Return type:bool
Set()
Parameters:Other (IntTools_SurfaceRangeSample &) –
Return type:IntTools_SurfaceRangeSample
SetDepthU()
Parameters:theDepthU (Standard_Integer) –
Return type:None
SetDepthV()
Parameters:theDepthV (Standard_Integer) –
Return type:None
SetIndexU()
Parameters:theIndexU (Standard_Integer) –
Return type:None
SetIndexV()
Parameters:theIndexV (Standard_Integer) –
Return type:None
SetIndexes()
Parameters:
  • theIndexU (Standard_Integer) –
  • theIndexV (Standard_Integer) –
Return type:

None

SetRanges()
Parameters:
  • theRangeU (IntTools_CurveRangeSample &) –
  • theRangeV (IntTools_CurveRangeSample &) –
Return type:

None

SetSampleRangeU()
Parameters:theRangeSampleU (IntTools_CurveRangeSample &) –
Return type:None
SetSampleRangeV()
Parameters:theRangeSampleV (IntTools_CurveRangeSample &) –
Return type:None
thisown

The membership flag

class OCC.IntTools.IntTools_SurfaceRangeSampleMapHasher(*args, **kwargs)

Bases: object

static HashCode(*args)
  • Returns a HasCode value for the Key <K> in the range 0..Upper.
Parameters:
  • K (IntTools_SurfaceRangeSample &) –
  • Upper (Standard_Integer) –
Return type:

int

static IsEqual(*args)
  • Returns True when the two keys are the same. Two same keys must have the same hashcode, the contrary is not necessary.
Parameters:
  • S1 (IntTools_SurfaceRangeSample &) –
  • S2 (IntTools_SurfaceRangeSample &) –
Return type:

bool

thisown

The membership flag

OCC.IntTools.IntTools_SurfaceRangeSampleMapHasher_HashCode(*args)
  • Returns a HasCode value for the Key <K> in the range 0..Upper.
Parameters:
  • K (IntTools_SurfaceRangeSample &) –
  • Upper (Standard_Integer) –
Return type:

int

OCC.IntTools.IntTools_SurfaceRangeSampleMapHasher_IsEqual(*args)
  • Returns True when the two keys are the same. Two same keys must have the same hashcode, the contrary is not necessary.
Parameters:
  • S1 (IntTools_SurfaceRangeSample &) –
  • S2 (IntTools_SurfaceRangeSample &) –
Return type:

bool

class OCC.IntTools.IntTools_Tools(*args, **kwargs)

Bases: object

static ClassifyPointByFace(*args)
Parameters:
  • aF (TopoDS_Face &) –
  • P (gp_Pnt2d) –
Return type:

TopAbs_State

static ComputeVV(*args)
  • Computes distance between vertex V1 and vertex V2, if the distance is less than sum of vertex tolerances returns zero, otherwise returns negative value
Parameters:
  • V1 (TopoDS_Vertex &) –
  • V2 (TopoDS_Vertex &) –
Return type:

int

static CurveTolerance(*args)
  • Returns adaptive tolerance for given aTolBase if aC is trimmed curve and basis curve is parabola, otherwise returns value of aTolBase
Parameters:
  • aC (Handle_Geom_Curve &) –
  • aTolBase (float) –
Return type:

float

static HasInternalEdge(*args)
  • Returns True if wire aW contains edges with INTERNAL orientation
Parameters:aW (TopoDS_Wire &) –
Return type:bool
static IntermediatePoint(*args)
  • Returns some value between aFirst and aLast
Parameters:
  • aFirst (float) –
  • aLast (float) –
Return type:

float

static IsClosed(*args)
  • Returns True if aC is BoundedCurve from Geom and the distance between first point of the curve aC and last point is less than 1.e-12
Parameters:aC (Handle_Geom_Curve &) –
Return type:bool
static IsDirsCoinside(*args)
  • Returns True if D1 and D2 coinside
Parameters:
  • D1 (gp_Dir) –
  • D2 (gp_Dir) –
Return type:

bool

  • Returns True if D1 and D2 coinside with given tolerance
Parameters:
  • D1 (gp_Dir) –
  • D2 (gp_Dir) –
  • aTol (float) –
Return type:

bool

static IsMiddlePointsEqual(*args)
  • Gets boundary of parameters of E1 and E2. Computes 3d points on each corresponded to average parameters. Returns True if distance between computed points is less than sum of edge tolerance, otherwise returns False.
Parameters:
  • E1 (TopoDS_Edge &) –
  • E2 (TopoDS_Edge &) –
Return type:

bool

static IsVertex(*args)
  • Computes square distance between a point on the edge E corresponded to parameter t and vertices of edge E. Returns True if this distance is less than square tolerance of vertex, otherwise returns false.
Parameters:
  • E (TopoDS_Edge &) –
  • t (float) –
Return type:

bool

  • Returns True if square distance between vertex V and a point on the edge E corresponded to parameter t is less than square tolerance of V
Parameters:
  • E (TopoDS_Edge &) –
  • V (TopoDS_Vertex &) –
  • t (float) –
Return type:

bool

  • Returns True if IsVertx for middle parameter of fist range and first edge returns True and if IsVertex for middle parameter of second range and second range returns True, otherwise returns False
Parameters:aCmnPrt (IntTools_CommonPrt &) –
Return type:bool
  • Returns True if the distance between point aP and vertex aV is less or equal to sum of aTolPV and vertex tolerance, otherwise returns False
Parameters:
  • aP (gp_Pnt) –
  • aTolPV (float) –
  • aV (TopoDS_Vertex &) –
Return type:

bool

static MakeFaceFromWireAndFace(*args)
  • Build a face based on surface of given face aF and bounded by wire aW
Parameters:
  • aW (TopoDS_Wire &) –
  • aF (TopoDS_Face &) –
  • aFNew (TopoDS_Face &) –
Return type:

void

static RejectLines(*args)
  • Puts curves from aSIn to aSOut except those curves that are coincide with first curve from aSIn.
Parameters:
  • aSIn (IntTools_SequenceOfCurves &) –
  • aSOut (IntTools_SequenceOfCurves &) –
Return type:

void

static SplitCurve(*args)
  • Split aC by average parameter if aC is closed in 3D. Returns positive value if splitting has been done, otherwise returns zero.
Parameters:
  • aC (IntTools_Curve &) –
  • aS (IntTools_SequenceOfCurves &) –
Return type:

int

thisown

The membership flag

OCC.IntTools.IntTools_Tools_ClassifyPointByFace(*args)
Parameters:
  • aF (TopoDS_Face &) –
  • P (gp_Pnt2d) –
Return type:

TopAbs_State

OCC.IntTools.IntTools_Tools_ComputeVV(*args)
  • Computes distance between vertex V1 and vertex V2, if the distance is less than sum of vertex tolerances returns zero, otherwise returns negative value
Parameters:
  • V1 (TopoDS_Vertex &) –
  • V2 (TopoDS_Vertex &) –
Return type:

int

OCC.IntTools.IntTools_Tools_CurveTolerance(*args)
  • Returns adaptive tolerance for given aTolBase if aC is trimmed curve and basis curve is parabola, otherwise returns value of aTolBase
Parameters:
  • aC (Handle_Geom_Curve &) –
  • aTolBase (float) –
Return type:

float

OCC.IntTools.IntTools_Tools_HasInternalEdge(*args)
  • Returns True if wire aW contains edges with INTERNAL orientation
Parameters:aW (TopoDS_Wire &) –
Return type:bool
OCC.IntTools.IntTools_Tools_IntermediatePoint(*args)
  • Returns some value between aFirst and aLast
Parameters:
  • aFirst (float) –
  • aLast (float) –
Return type:

float

OCC.IntTools.IntTools_Tools_IsClosed(*args)
  • Returns True if aC is BoundedCurve from Geom and the distance between first point of the curve aC and last point is less than 1.e-12
Parameters:aC (Handle_Geom_Curve &) –
Return type:bool
OCC.IntTools.IntTools_Tools_IsDirsCoinside(*args)
  • Returns True if D1 and D2 coinside
Parameters:
  • D1 (gp_Dir) –
  • D2 (gp_Dir) –
Return type:

bool

  • Returns True if D1 and D2 coinside with given tolerance
Parameters:
  • D1 (gp_Dir) –
  • D2 (gp_Dir) –
  • aTol (float) –
Return type:

bool

OCC.IntTools.IntTools_Tools_IsMiddlePointsEqual(*args)
  • Gets boundary of parameters of E1 and E2. Computes 3d points on each corresponded to average parameters. Returns True if distance between computed points is less than sum of edge tolerance, otherwise returns False.
Parameters:
  • E1 (TopoDS_Edge &) –
  • E2 (TopoDS_Edge &) –
Return type:

bool

OCC.IntTools.IntTools_Tools_IsVertex(*args)
  • Computes square distance between a point on the edge E corresponded to parameter t and vertices of edge E. Returns True if this distance is less than square tolerance of vertex, otherwise returns false.
Parameters:
  • E (TopoDS_Edge &) –
  • t (float) –
Return type:

bool

  • Returns True if square distance between vertex V and a point on the edge E corresponded to parameter t is less than square tolerance of V
Parameters:
  • E (TopoDS_Edge &) –
  • V (TopoDS_Vertex &) –
  • t (float) –
Return type:

bool

  • Returns True if IsVertx for middle parameter of fist range and first edge returns True and if IsVertex for middle parameter of second range and second range returns True, otherwise returns False
Parameters:aCmnPrt (IntTools_CommonPrt &) –
Return type:bool
  • Returns True if the distance between point aP and vertex aV is less or equal to sum of aTolPV and vertex tolerance, otherwise returns False
Parameters:
  • aP (gp_Pnt) –
  • aTolPV (float) –
  • aV (TopoDS_Vertex &) –
Return type:

bool

OCC.IntTools.IntTools_Tools_MakeFaceFromWireAndFace(*args)
  • Build a face based on surface of given face aF and bounded by wire aW
Parameters:
  • aW (TopoDS_Wire &) –
  • aF (TopoDS_Face &) –
  • aFNew (TopoDS_Face &) –
Return type:

void

OCC.IntTools.IntTools_Tools_RejectLines(*args)
  • Puts curves from aSIn to aSOut except those curves that are coincide with first curve from aSIn.
Parameters:
  • aSIn (IntTools_SequenceOfCurves &) –
  • aSOut (IntTools_SequenceOfCurves &) –
Return type:

void

OCC.IntTools.IntTools_Tools_SplitCurve(*args)
  • Split aC by average parameter if aC is closed in 3D. Returns positive value if splitting has been done, otherwise returns zero.
Parameters:
  • aC (IntTools_Curve &) –
  • aS (IntTools_SequenceOfCurves &) –
Return type:

int

class OCC.IntTools.IntTools_TopolTool(*args)

Bases: OCC.Adaptor3d.Adaptor3d_TopolTool

GetHandle()

IntTools_TopolTool_GetHandle(IntTools_TopolTool self) -> Handle_IntTools_TopolTool

Initialize()
  • Redefined empty initializer Warning: Raises the exception NotImplemented
Return type:void
  • Initializes me by surface
Parameters:theSurface (Handle_Adaptor3d_HSurface &) –
Return type:void
thisown

The membership flag

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

Bases: object

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

The membership flag

value()
class OCC.IntTools.inttools(*args, **kwargs)

Bases: object

static FindRootStates(*args)
  • Find the states (before and after) for each Root from the sequence aSeq
Parameters:
  • aSeq (IntTools_SequenceOfRoots &) –
  • anEpsNull (float) –
Return type:

void

static GetRadius(*args)
Parameters:
  • C (BRepAdaptor_Curve &) –
  • t1 (float) –
  • t3 (float) –
  • R (float &) –
Return type:

int

static Length(*args)
  • returns the length of the edge;
Parameters:E (TopoDS_Edge &) –
Return type:float
static Parameter(*args)
Parameters:
  • P (gp_Pnt) –
  • Curve (Handle_Geom_Curve &) –
  • aParm (float &) –
Return type:

int

static PrepareArgs(*args)
Parameters:
  • C (BRepAdaptor_Curve &) –
  • tMax (float) –
  • tMin (float) –
  • Discret (Standard_Integer) –
  • Deflect (float) –
  • anArgs (IntTools_CArray1OfReal &) –
Return type:

int

static RemoveIdenticalRoots(*args)
  • Remove from the sequence aSeq the Roots that have values ti and tj such as |ti-tj] < anEpsT.
Parameters:
  • aSeq (IntTools_SequenceOfRoots &) –
  • anEpsT (float) –
Return type:

void

static SortRoots(*args)
  • Sort the sequence aSeq of the Roots to arrange the Roons in increasing order
Parameters:
  • aSeq (IntTools_SequenceOfRoots &) –
  • anEpsT (float) –
Return type:

void

thisown

The membership flag

OCC.IntTools.inttools_FindRootStates(*args)
  • Find the states (before and after) for each Root from the sequence aSeq
Parameters:
  • aSeq (IntTools_SequenceOfRoots &) –
  • anEpsNull (float) –
Return type:

void

OCC.IntTools.inttools_GetRadius(*args)
Parameters:
  • C (BRepAdaptor_Curve &) –
  • t1 (float) –
  • t3 (float) –
  • R (float &) –
Return type:

int

OCC.IntTools.inttools_Length(*args)
  • returns the length of the edge;
Parameters:E (TopoDS_Edge &) –
Return type:float
OCC.IntTools.inttools_Parameter(*args)
Parameters:
  • P (gp_Pnt) –
  • Curve (Handle_Geom_Curve &) –
  • aParm (float &) –
Return type:

int

OCC.IntTools.inttools_PrepareArgs(*args)
Parameters:
  • C (BRepAdaptor_Curve &) –
  • tMax (float) –
  • tMin (float) –
  • Discret (Standard_Integer) –
  • Deflect (float) –
  • anArgs (IntTools_CArray1OfReal &) –
Return type:

int

OCC.IntTools.inttools_RemoveIdenticalRoots(*args)
  • Remove from the sequence aSeq the Roots that have values ti and tj such as |ti-tj] < anEpsT.
Parameters:
  • aSeq (IntTools_SequenceOfRoots &) –
  • anEpsT (float) –
Return type:

void

OCC.IntTools.inttools_SortRoots(*args)
  • Sort the sequence aSeq of the Roots to arrange the Roons in increasing order
Parameters:
  • aSeq (IntTools_SequenceOfRoots &) –
  • anEpsT (float) –
Return type:

void