OCC.IntTools module

Contains classes for intersection and classification- purposes and accompanying classes

class Handle_IntTools_Context(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_IntTools_ListNodeOfListOfBox(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_IntTools_ListNodeOfListOfCurveRangeSample(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_IntTools_ListNodeOfListOfSurfaceRangeSample(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class Handle_IntTools_SequenceNodeOfSequenceOfCurves(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class Handle_IntTools_SequenceNodeOfSequenceOfRanges(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class Handle_IntTools_SequenceNodeOfSequenceOfRoots(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class Handle_IntTools_StdMapNodeOfMapOfCurveSample(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_IntTools_StdMapNodeOfMapOfSurfaceSample(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_IntTools_TopolTool(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_TopolTool

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

The membership flag

class IntTools_Array1OfRange(*args)

Bases: object

Parameters:
  • Low (int) –
  • Up (int) –
  • Item (IntTools_Range &) –
  • Low
  • Up
Return type:

None

Return type:

None

Assign()
Parameters:Other (IntTools_Array1OfRange &) –
Return type:IntTools_Array1OfRange
ChangeValue()
Parameters:Index (int) –
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 (int) –
  • Value (IntTools_Range &) –
Return type:

None

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

The membership flag

class IntTools_Array1OfRoots(*args)

Bases: object

Parameters:
  • Low (int) –
  • Up (int) –
  • Item (IntTools_Root &) –
  • Low
  • Up
Return type:

None

Return type:

None

Assign()
Parameters:Other (IntTools_Array1OfRoots &) –
Return type:IntTools_Array1OfRoots
ChangeValue()
Parameters:Index (int) –
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 (int) –
  • Value (IntTools_Root &) –
Return type:

None

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

The membership flag

class IntTools_BaseRangeSample(*args)

Bases: object

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

The membership flag

class IntTools_BeanFaceIntersector(*args)

Bases: object

Return type:None
  • 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

Context()
  • Gets the intersecton context
Return type:Handle_IntTools_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_IntTools_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 IntTools_CommonPrt(*args)

Bases: object

  • Empty constructor
Return type:None
  • Copy constructor
Parameters:aCPrt (IntTools_CommonPrt &) –
Return type:None
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:
Return type:

None

Assign()
Parameters:Other (IntTools_CommonPrt &) –
Return type:IntTools_CommonPrt
BoundingPoints()
  • Selector
Parameters:
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:
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:
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 IntTools_Compare(*args)

Bases: object

  • Empty constructor
Return type:None
  • Initializes me by tolerance
Parameters:aTol (float) –
Return type:None
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 IntTools_CompareRange(*args)

Bases: object

  • Empty constructor
Return type:None
  • Initializes me by tolerance
Parameters:aTol (float) –
Return type:None
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 IntTools_Context(*args)

Bases: OCC.MMgt.MMgt_TShared

Return type:None
Parameters:theAllocator (BOPCol_BaseAllocator &) –
Return type:None
BndBox()
Parameters:theS (TopoDS_Shape &) –
Return type:Bnd_Box
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)
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()
Hatcher()
  • Returns a reference to 2D hatcher for given face
Parameters:aF (TopoDS_Face &) –
Return type:Geom2dHatch_Hatcher
IsInfiniteFace()
  • Returns true if the solid <theFace> has infinite bounds
Parameters:theFace (TopoDS_Face &) –
Return type:bool
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

  • Returns true if the point aP2D is inside the boundaries of the face aF, otherwise returns false
Parameters:
  • aP3D (gp_Pnt) –
  • aF (TopoDS_Face &) –
  • aTol (float) –
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

SetPOnSProjectionTolerance()
  • Sets tolerance to be used for projection of point on surface. Clears map of already cached projectors in order to maintain correct value for all projectors
Parameters:theValue (float) –
Return type:None
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 IntTools_Curve(*args)

Bases: object

  • Empty constructor
Return type:None
  • Initializes me by a 3d curve and two 2d curves
Parameters:
  • Curve3d (Handle_Geom_Curve &) –
  • FirstCurve2d (Handle_Geom2d_Curve &) –
  • SecondCurve2d (Handle_Geom2d_Curve &) –
Return type:

None

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 IntTools_CurveRangeLocalizeData(*args)

Bases: object

Parameters:
  • theNbSample (int) –
  • theMinRange (float) –
Return type:

None

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 IntTools_CurveRangeSample(*args)

Bases: OCC.IntTools.IntTools_BaseRangeSample

Return type:None
Parameters:theIndex (int) –
Return type:None
GetRange()
Parameters:
Return type:

IntTools_Range

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

The membership flag

class IntTools_DataMapIteratorOfDataMapOfCurveSampleBox(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

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

The membership flag

class IntTools_DataMapIteratorOfDataMapOfSurfaceSampleBox(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

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

The membership flag

class IntTools_DataMapNodeOfDataMapOfCurveSampleBox(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • K (IntTools_CurveRangeSample &) –
  • I (Bnd_Box &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

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

The membership flag

class IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • K (IntTools_SurfaceRangeSample &) –
  • I (Bnd_Box &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

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

The membership flag

class IntTools_DataMapOfCurveSampleBox(*args)

Bases: OCC.TCollection.TCollection_BasicMap

Parameters:NbBuckets (int) – default value is 1
Return type:None
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 (int) –
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 IntTools_DataMapOfSurfaceSampleBox(*args)

Bases: OCC.TCollection.TCollection_BasicMap

Parameters:NbBuckets (int) – default value is 1
Return type:None
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 (int) –
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 IntTools_EdgeEdge(*args)

Bases: object

  • Empty contructor
Return type:None
  • Contructor
Parameters:
  • theEdge1 (TopoDS_Edge &) –
  • theEdge2 (TopoDS_Edge &) –
Return type:

None

  • Contructor
Parameters:
  • theEdge1 (TopoDS_Edge &) –
  • aT11 (float) –
  • aT12 (float) –
  • theEdge2 (TopoDS_Edge &) –
  • aT21 (float) –
  • aT22 (float) –
Return type:

None

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

None

thisown

The membership flag

class IntTools_EdgeFace(*args)

Bases: object

  • Empty Constructor
Return type:None
CommonParts()
  • Returns results
Return type:IntTools_SequenceOfCommonPrts
Context()
  • Gets the intersecton context
Return type:Handle_IntTools_Context
Edge()
  • Returns edge
Return type:TopoDS_Edge
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
Face()
  • Returns face
Return type:TopoDS_Face
IsDone()
  • Returns true if computation was done successfully, otherwise returns false
Return type:bool
static IsEqDistance()
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_IntTools_Context &) –
Return type:None
SetDeflection()
  • Initializes algorithm by deflection value
Parameters:aDeflection (float) –
Return type:None
SetDiscretize()
  • Initializes algorithm by discretization value
Parameters:aDiscret (int) –
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:
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
TolE()
  • Returns tolerance of the edge
Return type:float
TolF()
  • Returns tolerance of the face
Return type:float
thisown

The membership flag

IntTools_EdgeFace_IsEqDistance()
Parameters:
  • aP (gp_Pnt) –
  • aS (BRepAdaptor_Surface &) –
  • aT (float) –
  • aD (float &) –
Return type:

bool

class IntTools_FClass2d(*args)

Bases: object

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

None

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

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

thisown

The membership flag

class IntTools_FaceFace(*args)

Bases: object

  • Empty constructor.
Return type:None
Context()
  • Gets the intersecton context
Return type:Handle_IntTools_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
SetContext()
  • Sets the intersecton context
Parameters:aContext (Handle_IntTools_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 IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • K1 (Handle_Standard_Transient &) –
  • K2 (int) –
  • I (Standard_Address &) –
  • n1 (TCollection_MapNodePtr &) –
  • n2 (TCollection_MapNodePtr &) –
Return type:

None

GetHandle()
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 IntTools_IndexedDataMapOfTransientAddress(*args)

Bases: OCC.TCollection.TCollection_BasicMap

Parameters:NbBuckets (int) – default value is 1
Return type:None
Add()
Parameters:
  • K (Handle_Standard_Transient &) –
  • I (Standard_Address &) –
Return type:

int

Assign()
Parameters:Other (IntTools_IndexedDataMapOfTransientAddress &) –
Return type:IntTools_IndexedDataMapOfTransientAddress
ChangeFromIndex()
Parameters:I (int) –
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 (int) –
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 (int) –
Return type:Handle_Standard_Transient
ReSize()
Parameters:NbBuckets (int) –
Return type:None
RemoveLast()
Return type:None
Set()
Parameters:Other (IntTools_IndexedDataMapOfTransientAddress &) –
Return type:IntTools_IndexedDataMapOfTransientAddress
Substitute()
Parameters:
  • I (int) –
  • K (Handle_Standard_Transient &) –
  • T (Standard_Address &) –
Return type:

None

thisown

The membership flag

class IntTools_ListIteratorOfListOfBox(*args)

Bases: object

Return type:None
Parameters:L (IntTools_ListOfBox &) –
Return type:None
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 IntTools_ListIteratorOfListOfCurveRangeSample(*args)

Bases: object

Return type:None
Parameters:L (IntTools_ListOfCurveRangeSample &) –
Return type:None
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 IntTools_ListIteratorOfListOfSurfaceRangeSample(*args)

Bases: object

Return type:None
Parameters:L (IntTools_ListOfSurfaceRangeSample &) –
Return type:None
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 IntTools_ListNodeOfListOfBox(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • I (Bnd_Box &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:Bnd_Box
thisown

The membership flag

class IntTools_ListNodeOfListOfCurveRangeSample(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • I (IntTools_CurveRangeSample &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:IntTools_CurveRangeSample
thisown

The membership flag

class IntTools_ListNodeOfListOfSurfaceRangeSample(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • I (IntTools_SurfaceRangeSample &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:IntTools_SurfaceRangeSample
thisown

The membership flag

class IntTools_ListOfBox(*args)

Bases: object

Return type:None
Parameters:Other (IntTools_ListOfBox &) –
Return type:None
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 IntTools_ListOfCurveRangeSample(*args)

Bases: object

Return type:None
Parameters:Other (IntTools_ListOfCurveRangeSample &) –
Return type:None
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 IntTools_ListOfSurfaceRangeSample(*args)

Bases: object

Return type:None
Parameters:Other (IntTools_ListOfSurfaceRangeSample &) –
Return type:None
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 IntTools_MapIteratorOfMapOfCurveSample(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

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

The membership flag

class IntTools_MapIteratorOfMapOfSurfaceSample(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

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

The membership flag

class IntTools_MapOfCurveSample(*args)

Bases: OCC.TCollection.TCollection_BasicMap

Parameters:
  • NbBuckets (int) – default value is 1
  • Other (IntTools_MapOfCurveSample &) –
Return type:

None

Return type:

None

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 (int) –
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 IntTools_MapOfSurfaceSample(*args)

Bases: OCC.TCollection.TCollection_BasicMap

Parameters:
  • NbBuckets (int) – default value is 1
  • Other (IntTools_MapOfSurfaceSample &) –
Return type:

None

Return type:

None

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 (int) –
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 IntTools_MarkedRangeSet(*args)

Bases: object

  • Empty constructor
Return type:None
  • build set of ranges which consists of one range with boundary values theFirstBoundary and theLastBoundary
Parameters:
  • theFirstBoundary (float) –
  • theLastBoundary (float) –
  • theInitFlag (int) –
Return type:

None

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

None

Flag()
  • Returns flag of the range with index theIndex
Parameters:theIndex (int) –
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:
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 (int) –
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 (int) –
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 (int) –
  • theIndex (int) –
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 (int) –
  • theIndex (int) –
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 (int) –
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 (int) –
Return type:

None

SetFlag()
  • Set flag theFlag for range with index theIndex
Parameters:
  • theIndex (int) –
  • theFlag (int) –
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 (int) –
Return type:

None

thisown

The membership flag

class IntTools_PntOn2Faces(*args)

Bases: object

  • Empty constructor
Return type:None
  • Initializes me by two points aP1 and aP2
Parameters:
  • aP1 (IntTools_PntOnFace &) –
  • aP2 (IntTools_PntOnFace &) –
Return type:

None

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 IntTools_PntOnFace(*args)

Bases: object

  • Empty constructor
Return type:None
Face()
  • Selector
Return type:TopoDS_Face
Init()
  • Initializes me by aFace, a 3d point and it’s UV parameters on face
Parameters:
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:
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 IntTools_QuickSort

Bases: object

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

void

thisown

The membership flag

class IntTools_QuickSortRange

Bases: object

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

void

thisown

The membership flag

IntTools_QuickSortRange_Sort()
Parameters:
  • TheArray (IntTools_Array1OfRange &) –
  • Comp (IntTools_CompareRange &) –
Return type:

void

IntTools_QuickSort_Sort()
Parameters:
  • TheArray (IntTools_Array1OfRoots &) –
  • Comp (IntTools_Compare &) –
Return type:

void

class IntTools_Range(*args)

Bases: object

  • Empty constructor
Return type:None
  • Initialize me by range boundaries
Parameters:
Return type:

None

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 IntTools_Root(*args)

Bases: object

  • Empty constructor
Return type:None
  • Initializes my by range of parameters and type of root
Parameters:
Return type:

None

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:
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 (int) –
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 IntTools_SequenceNodeOfSequenceOfCommonPrts(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (IntTools_CommonPrt &) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:IntTools_CommonPrt
thisown

The membership flag

class IntTools_SequenceNodeOfSequenceOfCurves(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (IntTools_Curve &) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:IntTools_Curve
thisown

The membership flag

class IntTools_SequenceNodeOfSequenceOfPntOn2Faces(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (IntTools_PntOn2Faces &) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:IntTools_PntOn2Faces
thisown

The membership flag

class IntTools_SequenceNodeOfSequenceOfRanges(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (IntTools_Range &) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:IntTools_Range
thisown

The membership flag

class IntTools_SequenceNodeOfSequenceOfRoots(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (IntTools_Root &) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:IntTools_Root
thisown

The membership flag

class IntTools_SequenceOfCommonPrts(*args)

Bases: OCC.TCollection.TCollection_BaseSequence

Return type:None
Parameters:Other (IntTools_SequenceOfCommonPrts &) –
Return type:None
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 (int) –
Return type:IntTools_CommonPrt
Clear()
Return type:None
First()
Return type:IntTools_CommonPrt
InsertAfter()
Parameters:
  • Index (int) –
  • T (IntTools_CommonPrt &) –
  • Index
  • S (IntTools_SequenceOfCommonPrts &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • 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 (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

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

None

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

None

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

The membership flag

class IntTools_SequenceOfCurves(*args)

Bases: OCC.TCollection.TCollection_BaseSequence

Return type:None
Parameters:Other (IntTools_SequenceOfCurves &) –
Return type:None
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 (int) –
Return type:IntTools_Curve
Clear()
Return type:None
First()
Return type:IntTools_Curve
InsertAfter()
Parameters:
  • Index (int) –
  • T (IntTools_Curve &) –
  • Index
  • S (IntTools_SequenceOfCurves &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • 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 (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

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

None

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

None

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

The membership flag

class IntTools_SequenceOfPntOn2Faces(*args)

Bases: OCC.TCollection.TCollection_BaseSequence

Return type:None
Parameters:Other (IntTools_SequenceOfPntOn2Faces &) –
Return type:None
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 (int) –
Return type:IntTools_PntOn2Faces
Clear()
Return type:None
First()
Return type:IntTools_PntOn2Faces
InsertAfter()
Parameters:
  • Index (int) –
  • T (IntTools_PntOn2Faces &) –
  • Index
  • S (IntTools_SequenceOfPntOn2Faces &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • 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 (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

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

None

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

None

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

The membership flag

class IntTools_SequenceOfRanges(*args)

Bases: OCC.TCollection.TCollection_BaseSequence

Return type:None
Parameters:Other (IntTools_SequenceOfRanges &) –
Return type:None
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 (int) –
Return type:IntTools_Range
Clear()
Return type:None
First()
Return type:IntTools_Range
InsertAfter()
Parameters:
  • Index (int) –
  • T (IntTools_Range &) –
  • Index
  • S (IntTools_SequenceOfRanges &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • 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 (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

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

None

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

None

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

The membership flag

class IntTools_SequenceOfRoots(*args)

Bases: OCC.TCollection.TCollection_BaseSequence

Return type:None
Parameters:Other (IntTools_SequenceOfRoots &) –
Return type:None
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 (int) –
Return type:IntTools_Root
Clear()
Return type:None
First()
Return type:IntTools_Root
InsertAfter()
Parameters:
  • Index (int) –
  • T (IntTools_Root &) –
  • Index
  • S (IntTools_SequenceOfRoots &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • 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 (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

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

None

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

None

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

The membership flag

class IntTools_ShrunkRange(*args)

Bases: object

Return type:None
BndBox()
Return type:Bnd_Box
Context()
Return type:Handle_IntTools_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_IntTools_Context &) –
Return type:None
SetData()
Parameters:
  • aE (TopoDS_Edge &) –
  • aT1 (float) –
  • aT2 (float) –
  • aV1 (TopoDS_Vertex &) –
  • aV2 (TopoDS_Vertex &) –
Return type:

None

SetShrunkRange()
Parameters:
Return type:

None

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

None

thisown

The membership flag

class IntTools_StdMapNodeOfMapOfCurveSample(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • K (IntTools_CurveRangeSample &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

GetHandle()
Key()
Return type:IntTools_CurveRangeSample
thisown

The membership flag

class IntTools_StdMapNodeOfMapOfSurfaceSample(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • K (IntTools_SurfaceRangeSample &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

GetHandle()
Key()
Return type:IntTools_SurfaceRangeSample
thisown

The membership flag

class IntTools_SurfaceRangeLocalizeData(*args)

Bases: object

Return type:

None

Parameters:
  • theNbSampleU (int) –
  • theNbSampleV (int) –
  • theMinRangeU (float) –
  • theMinRangeV (float) –
  • Other (IntTools_SurfaceRangeLocalizeData &) –
Return type:

None

Return type:

None

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 (int) –
  • theVIndex (int) –
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 (int) –
  • theVIndex (int) –
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 (int) –
Return type:float
GetUParamInFrame()
  • Query the U parameter of the grid points at that index in frame.
Parameters:theIndex (int) –
Return type:float
GetVParam()
  • Query the V parameter of the grid points at that index.
Parameters:theIndex (int) –
Return type:float
GetVParamInFrame()
  • Query the V parameter of the grid points at that index in frame.
Parameters:theIndex (int) –
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:
Return type:

None

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

None

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

None

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

None

thisown

The membership flag

class IntTools_SurfaceRangeSample(*args)

Bases: object

Return type:

None

Parameters:
  • theIndexU (int) –
  • theDepthU (int) –
  • theIndexV (int) –
  • theDepthV (int) –
  • theRangeU (IntTools_CurveRangeSample &) –
  • theRangeV (IntTools_CurveRangeSample &) –
  • Other (IntTools_SurfaceRangeSample &) –
Return type:

None

Return type:

None

Return type:

None

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

None

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

None

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

IntTools_Range

GetRangeV()
Parameters:
  • theFirstV (float) –
  • theLastV (float) –
  • theNbSampleV (int) –
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 (int) –
Return type:None
SetDepthV()
Parameters:theDepthV (int) –
Return type:None
SetIndexU()
Parameters:theIndexU (int) –
Return type:None
SetIndexV()
Parameters:theIndexV (int) –
Return type:None
SetIndexes()
Parameters:
  • theIndexU (int) –
  • theIndexV (int) –
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 IntTools_SurfaceRangeSampleMapHasher

Bases: object

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

int

static IsEqual()
  • 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

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

int

IntTools_SurfaceRangeSampleMapHasher_IsEqual()
  • 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 IntTools_Tools

Bases: object

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

bool

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

TopAbs_State

static ComputeTolerance()
  • Computes the max distance between points taken from 3D and 2D curves by the same parameter
Parameters:
  • theCurve3D (Handle_Geom_Curve &) –
  • theCurve2D (Handle_Geom2d_Curve &) –
  • theSurf (Handle_Geom_Surface &) –
  • theFirst (float) –
  • theLast (float) –
  • theMaxDist (float &) –
  • theMaxPar (float &) –
Return type:

bool

static ComputeVV()
  • 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()
  • 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()
  • Returns True if wire aW contains edges with INTERNAL orientation
Parameters:aW (TopoDS_Wire &) –
Return type:bool
static IntermediatePoint()
  • Returns some value between aFirst and aLast
Parameters:
Return type:

float

static IsClosed()
  • 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()
  • Returns True if D1 and D2 coinside
Parameters:
Return type:

bool

  • Returns True if D1 and D2 coinside with given tolerance
Parameters:
Return type:

bool

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

bool

static IsMiddlePointsEqual()
  • 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 IsOnPave()
Parameters:
  • theT (float) –
  • theRange (IntTools_Range &) –
  • theTol (float) –
Return type:

bool

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

bool

static IsVertex()
  • 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()
  • 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()
  • 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 SegPln()
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 SplitCurve()
  • 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

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

void

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

void

thisown

The membership flag

IntTools_Tools_CheckCurve()
Parameters:
  • theC (Handle_Geom_Curve &) –
  • theTol (float) –
  • theBox (Bnd_Box &) –
Return type:

bool

IntTools_Tools_ClassifyPointByFace()
Parameters:
  • aF (TopoDS_Face &) –
  • P (gp_Pnt2d) –
Return type:

TopAbs_State

IntTools_Tools_ComputeTolerance()
  • Computes the max distance between points taken from 3D and 2D curves by the same parameter
Parameters:
  • theCurve3D (Handle_Geom_Curve &) –
  • theCurve2D (Handle_Geom2d_Curve &) –
  • theSurf (Handle_Geom_Surface &) –
  • theFirst (float) –
  • theLast (float) –
  • theMaxDist (float &) –
  • theMaxPar (float &) –
Return type:

bool

IntTools_Tools_ComputeVV()
  • 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

IntTools_Tools_CurveTolerance()
  • 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

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

float

IntTools_Tools_IsClosed()
  • 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
IntTools_Tools_IsDirsCoinside()
  • Returns True if D1 and D2 coinside
Parameters:
Return type:

bool

  • Returns True if D1 and D2 coinside with given tolerance
Parameters:
Return type:

bool

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

bool

IntTools_Tools_IsMiddlePointsEqual()
  • 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

IntTools_Tools_IsOnPave()
Parameters:
  • theT (float) –
  • theRange (IntTools_Range &) –
  • theTol (float) –
Return type:

bool

IntTools_Tools_IsOnPave1()
Parameters:
  • theT (float) –
  • theRange (IntTools_Range &) –
  • theTol (float) –
Return type:

bool

IntTools_Tools_IsVertex()
  • 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

IntTools_Tools_MakeFaceFromWireAndFace()
  • 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

IntTools_Tools_RejectLines()
  • 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

IntTools_Tools_SegPln()
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

IntTools_Tools_SplitCurve()
  • 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

IntTools_Tools_VertexParameter()
Parameters:
  • theCP (IntTools_CommonPrt &) –
  • theT (float &) –
Return type:

void

IntTools_Tools_VertexParameters()
Parameters:
  • theCP (IntTools_CommonPrt &) –
  • theT1 (float &) –
  • theT2 (float &) –
Return type:

void

class IntTools_TopolTool(*args)

Bases: OCC.Adaptor3d.Adaptor3d_TopolTool

  • Empty constructor
Return type:None
  • Initializes me by surface
Parameters:theSurface (Handle_Adaptor3d_HSurface &) –
Return type:None
GetHandle()
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 SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class inttools

Bases: object

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

void

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

int

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

int

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

int

static RemoveIdenticalRoots()
  • 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()
  • 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

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

void

inttools_GetRadius()
Parameters:
  • C (BRepAdaptor_Curve &) –
  • t1 (float) –
  • t3 (float) –
  • R (float &) –
Return type:

int

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

int

inttools_PrepareArgs()
Parameters:
  • C (BRepAdaptor_Curve &) –
  • tMax (float) –
  • tMin (float) –
  • Discret (int) –
  • Deflect (float) –
  • anArgs (IntTools_CArray1OfReal &) –
Return type:

int

inttools_RemoveIdenticalRoots()
  • 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

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

void

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

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