OCC.Core.IntTools module¶
IntTools module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_inttools.html
-
class
IntTools_Array1OfRange
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
First
()¶
-
Init
()¶
-
IsAllocated
()¶
-
IsDeletable
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Move
()¶
-
Resize
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
next
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_Array1OfRoots
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
First
()¶
-
Init
()¶
-
IsAllocated
()¶
-
IsDeletable
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Move
()¶
-
Resize
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
next
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_BaseRangeSample
(*args)¶ Bases:
object
- Return type
None:param theDepth: :type theDepth: int :rtype: None
-
SetDepth
()¶ - Parameters
theDepth –
- type theDepth
int
- rtype
None
-
property
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 :param theEdge: :type theEdge: TopoDS_Edge :param theFace: :type theFace: TopoDS_Face :rtype: None* Initializes the algorithm :param theCurve: :type theCurve: BRepAdaptor_Curve :param theSurface: :type theSurface: BRepAdaptor_Surface :param theBeanTolerance: :type theBeanTolerance: float :param theFaceTolerance: :type theFaceTolerance: float :rtype: None* Initializes the algorithm theUMinParameter, .. are used for optimization purposes :param theCurve: :type theCurve: BRepAdaptor_Curve :param theSurface: :type theSurface: BRepAdaptor_Surface :param theFirstParOnCurve: :type theFirstParOnCurve: float :param theLastParOnCurve: :type theLastParOnCurve: float :param theUMinParameter: :type theUMinParameter: float :param theUMaxParameter: :type theUMaxParameter: float :param theVMinParameter: :type theVMinParameter: float :param theVMaxParameter: :type theVMaxParameter: float :param theBeanTolerance: :type theBeanTolerance: float :param theFaceTolerance: :type theFaceTolerance: float :rtype: None
-
Context
()¶ - Gets the intersecton context
- rtype
opencascade::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
- param theEdge
- type theEdge
TopoDS_Edge
- param theFace
- type theFace
TopoDS_Face
- rtype
None* Initializes the algorithm
- param theCurve
- type theCurve
BRepAdaptor_Curve
- param theSurface
- type theSurface
BRepAdaptor_Surface
- param theBeanTolerance
- type theBeanTolerance
float
- param theFaceTolerance
- type theFaceTolerance
float
- rtype
None* Initializes the algorithm theUMinParameter, … are used for optimization purposes
- param theCurve
- type theCurve
BRepAdaptor_Curve
- param theSurface
- type theSurface
BRepAdaptor_Surface
- param theFirstParOnCurve
- type theFirstParOnCurve
float
- param theLastParOnCurve
- type theLastParOnCurve
float
- param theUMinParameter
- type theUMinParameter
float
- param theUMaxParameter
- type theUMaxParameter
float
- param theVMinParameter
- type theVMinParameter
float
- param theVMaxParameter
- type theVMaxParameter
float
- param theBeanTolerance
- type theBeanTolerance
float
- param theFaceTolerance
- type theFaceTolerance
float
- rtype
None
-
IsDone
()¶ - Returns Done/NotDone state of the algorithm.
- rtype
bool
-
Perform
()¶ - Launches the algorithm
- rtype
None
-
Result
()¶ - Return type
IntTools_SequenceOfRanges:param theResults: :type theResults: IntTools_SequenceOfRanges :rtype: None
-
SetBeanParameters
()¶ - Set restrictions for curve
- param theFirstParOnCurve
- type theFirstParOnCurve
float
- param theLastParOnCurve
- type theLastParOnCurve
float
- rtype
None
-
SetContext
()¶ - Sets the intersecton context
- param theContext
- type theContext
IntTools_Context
- rtype
None
-
SetSurfaceParameters
()¶ - Set restrictions for surface
- param theUMinParameter
- type theUMinParameter
float
- param theUMaxParameter
- type theUMaxParameter
float
- param theVMinParameter
- type theVMinParameter
float
- param theVMaxParameter
- type theVMaxParameter
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_CommonPrt
(*args)¶ Bases:
object
- Empty constructor
- rtype
None* Copy constructor
- param aCPrt
- type aCPrt
IntTools_CommonPrt
- rtype
None
-
AllNullFlag
()¶ - Modifier
- rtype
bool
-
AppendRange2
()¶ - Appends the range of second edge.
- param aR
- type aR
IntTools_Range
- rtype
None* Appends the range of second edge.
- param tf
- type tf
float
- param tl
- type tl
float
- rtype
None
-
Assign
()¶ - Parameters
Other –
- type Other
IntTools_CommonPrt
- rtype
IntTools_CommonPrt
-
BoundingPoints
()¶ - Selector
- param aP1
- type aP1
gp_Pnt
- param aP2
- type aP2
gp_Pnt
- rtype
None
-
ChangeRanges2
()¶ - Returns the ranges of second edge.
- rtype
IntTools_SequenceOfRanges
-
Copy
()¶ - Copies me to anOther
- param anOther
- type anOther
IntTools_CommonPrt
- rtype
None
-
Edge1
()¶ - Returns the first edge.
- rtype
TopoDS_Edge
-
Edge2
()¶ - Returns the second edge
- rtype
TopoDS_Edge
-
Range1
()¶ - Returns the range of first edge
- rtype
IntTools_Range* Returns the range of first edge.
- param tf
- type tf
float
- param tl
- type tl
float
- rtype
None
-
Ranges2
()¶ - Returns the ranges of second edge.
- rtype
IntTools_SequenceOfRanges
-
Set
()¶ - Parameters
Other –
- type Other
IntTools_CommonPrt
- rtype
IntTools_CommonPrt
-
SetAllNullFlag
()¶ - Selector
- param aFlag
- type aFlag
bool
- rtype
None
-
SetBoundingPoints
()¶ - Modifier
- param aP1
- type aP1
gp_Pnt
- param aP2
- type aP2
gp_Pnt
- rtype
None
-
SetEdge1
()¶ - Sets the first edge.
- param anE
- type anE
TopoDS_Edge
- rtype
None
-
SetEdge2
()¶ - Sets the second edge.
- param anE
- type anE
TopoDS_Edge
- rtype
None
-
SetRange1
()¶ - Sets the range of first edge.
- param aR
- type aR
IntTools_Range
- rtype
None* Sets the range of first edge.
- param tf
- type tf
float
- param tl
- type tl
float
- rtype
None
-
SetType
()¶ - Sets the type of the common part Vertex or Edge
- param aType
- type aType
TopAbs_ShapeEnum
- rtype
None
-
SetVertexParameter1
()¶ - Sets a parameter of first vertex
- param tV
- type tV
float
- rtype
None
-
SetVertexParameter2
()¶ - Sets a parameter of second vertex
- param tV
- type tV
float
- rtype
None
-
Type
()¶ - Returns the type of the common part
- rtype
TopAbs_ShapeEnum
-
VertexParameter1
()¶ - Returns parameter of first vertex
- rtype
float
-
VertexParameter2
()¶ - Returns parameter of second vertex
- rtype
float
-
property
thisown
¶ The membership flag
-
class
IntTools_Context
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Return type
None:param theAllocator: :type theAllocator: NCollection_BaseAllocator :rtype: None
-
BndBox
()¶ - Parameters
theS –
- type theS
TopoDS_Shape
- rtype
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)
- param theP
- type theP
gp_Pnt
- param theTolP
- type theTolP
float
- param theE
- type theE
TopoDS_Edge
- param theT
- type theT
float
- param theDist
- type theDist
float
- rtype
int
-
ComputeVE
()¶ - Computes parameter of the vertex aV on the edge aE and correct tolerance value for the vertex on the edge. Returns zero if the distance between vertex and edge is less than sum of tolerances and the fuzzy value, 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)
- param theV
- type theV
TopoDS_Vertex
- param theE
- type theE
TopoDS_Edge
- param theT
- type theT
float
- param theTol
- type theTol
float
- param theFuzz
default value is Precision::Confusion()
- type theFuzz
float
- rtype
int
-
ComputeVF
()¶ - Computes UV parameters of the vertex aV on face aF and correct tolerance value for the vertex on the face. Returns zero if the distance between vertex and face is less than or equal the sum of tolerances and the fuzzy value 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)
- param theVertex
- type theVertex
TopoDS_Vertex
- param theFace
- type theFace
TopoDS_Face
- param theU
- type theU
float
- param theV
- type theV
float
- param theTol
- type theTol
float
- param theFuzz
default value is Precision::Confusion()
- type theFuzz
float
- rtype
int
-
static
DownCast
(t)¶
-
FClass2d
()¶ - Returns a reference to point classifier for given face
- param aF
- type aF
TopoDS_Face
- rtype
IntTools_FClass2d
-
Hatcher
()¶ - Returns a reference to 2D hatcher for given face
- param aF
- type aF
TopoDS_Face
- rtype
Geom2dHatch_Hatcher
-
IsInfiniteFace
()¶ - Returns true if the solid <theFace> has infinite bounds
- param theFace
- type theFace
TopoDS_Face
- rtype
bool
-
IsPointInFace
()¶ - Returns true if the point aP2D is inside the boundaries of the face aF, otherwise returns false
- param aF
- type aF
TopoDS_Face
- param aP2D
- type aP2D
gp_Pnt2d
- rtype
bool* Returns true if the point aP2D is inside the boundaries of the face aF, otherwise returns false
- param aP3D
- type aP3D
gp_Pnt
- param aF
- type aF
TopoDS_Face
- param aTol
- type aTol
float
- rtype
bool
-
IsPointInOnFace
()¶ - Returns true if the point aP2D is inside or on the boundaries of aF
- param aF
- type aF
TopoDS_Face
- param aP2D
- type aP2D
gp_Pnt2d
- rtype
bool
-
IsValidBlockForFace
()¶ - Returns true if IsValidPointForFace returns true for some 3d point that lay on the curve aIC bounded by parameters aT1 and aT2
- param aT1
- type aT1
float
- param aT2
- type aT2
float
- param aIC
- type aIC
IntTools_Curve
- param aF
- type aF
TopoDS_Face
- param aTol
- type aTol
float
- rtype
bool
-
IsValidBlockForFaces
()¶ - Returns true if IsValidBlockForFace returns true for both faces aF1 and aF2
- param aT1
- type aT1
float
- param aT2
- type aT2
float
- param aIC
- type aIC
IntTools_Curve
- param aF1
- type aF1
TopoDS_Face
- param aF2
- type aF2
TopoDS_Face
- param aTol
- type aTol
float
- rtype
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
- param aP3D
- type aP3D
gp_Pnt
- param aF
- type aF
TopoDS_Face
- param aTol
- type aTol
float
- rtype
bool
-
IsValidPointForFaces
()¶ - Returns true if IsValidPointForFace returns true for both face aF1 and aF2
- param aP3D
- type aP3D
gp_Pnt
- param aF1
- type aF1
TopoDS_Face
- param aF2
- type aF2
TopoDS_Face
- param aTol
- type aTol
float
- rtype
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)
- param aV
- type aV
TopoDS_Vertex
- param aIC
- type aIC
IntTools_Curve
- param aTolC
- type aTolC
float
- param aT
- type aT
float
- rtype
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)
- param aV
- type aV
TopoDS_Vertex
- param aTolV
- type aTolV
float
- param aIC
- type aIC
IntTools_Curve
- param aTolC
- type aTolC
float
- param aT
- type aT
float
- rtype
bool
-
OBB
()¶ - Builds and stores an Oriented Bounding Box for the shape. Returns a reference to OBB.
- param theShape
- type theShape
TopoDS_Shape
- param theFuzzyValue
default value is Precision::Confusion()
- type theFuzzyValue
float
- rtype
Bnd_OBB
-
ProjPC
()¶ - Returns a reference to point projector for given edge
- param aE
- type aE
TopoDS_Edge
- rtype
GeomAPI_ProjectPointOnCurve
-
ProjPS
()¶ - Returns a reference to point projector for given face
- param aF
- type aF
TopoDS_Face
- rtype
GeomAPI_ProjectPointOnSurf
-
ProjPT
()¶ - Returns a reference to point projector for given curve
- param aC
- type aC
Geom_Curve
- rtype
GeomAPI_ProjectPointOnCurve
-
ProjectPointOnEdge
()¶ - Computes parameter of the point aP on the edge aE. Returns false if projection algorithm failed other wiese returns true.
- param aP
- type aP
gp_Pnt
- param aE
- type aE
TopoDS_Edge
- param aT
- type aT
float
- rtype
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
- param theValue
- type theValue
float
- rtype
None
-
SolidClassifier
()¶ - Returns a reference to solid classifier for given solid
- param aSolid
- type aSolid
TopoDS_Solid
- rtype
BRepClass3d_SolidClassifier
-
StatePointFace
()¶ - Returns the state of the point aP2D relative to face aF
- param aF
- type aF
TopoDS_Face
- param aP2D
- type aP2D
gp_Pnt2d
- rtype
TopAbs_State
-
SurfaceAdaptor
()¶ - Returns a reference to surface adaptor for given face
- param theFace
- type theFace
TopoDS_Face
- rtype
BRepAdaptor_Surface
-
SurfaceData
()¶ - Returns a reference to surface localization data for given face
- param aF
- type aF
TopoDS_Face
- rtype
IntTools_SurfaceRangeLocalizeData
-
UVBounds
()¶ - Computes the boundaries of the face using surface adaptor
- param theFace
- type theFace
TopoDS_Face
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param VMin
- type VMin
float
- param VMax
- type VMax
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_Curve
(*args)¶ Bases:
object
- Empty constructor
- rtype
None* Constructor taking 3d curve, two 2d curves and two tolerance values
- param the3dCurve3d
- type the3dCurve3d
Geom_Curve
- param the2dCurve1
- type the2dCurve1
Geom2d_Curve
- param the2dCurve2
- type the2dCurve2
Geom2d_Curve
- param theTolerance
default value is 0.0
- type theTolerance
float
- param theTangentialTolerance
default value is 0.0
- type theTangentialTolerance
float
- rtype
None
-
Bounds
()¶ - If the 3d curve is bounded curve the method will return True and modify the output parameters with boundary parameters of the curve and corresponded 3d points. If the curve does not have bounds, the method will return false and the output parameters will stay untouched.
- param theFirst
- type theFirst
float
- param theLast
- type theLast
float
- param theFirstPnt
- type theFirstPnt
gp_Pnt
- param theLastPnt
- type theLastPnt
gp_Pnt
- rtype
bool
-
Curve
()¶ - Returns 3d curve
- rtype
opencascade::handle<Geom_Curve>
-
D0
()¶ - Computes 3d point corresponded to the given parameter if this parameter is inside the boundaries of the curve. Returns True in this case. Otherwise, the point will not be computed and the method will return False.
- param thePar
- type thePar
float
- param thePnt
- type thePnt
gp_Pnt
- rtype
bool
-
FirstCurve2d
()¶ - Returns first 2d curve
- rtype
opencascade::handle<Geom2d_Curve>
-
HasBounds
()¶ - Returns True if 3d curve is BoundedCurve
- rtype
bool
-
SecondCurve2d
()¶ - Returns second 2d curve
- rtype
opencascade::handle<Geom2d_Curve>
-
SetCurve
()¶ - Sets the 3d curve
- param the3dCurve
- type the3dCurve
Geom_Curve
- rtype
None
-
SetCurves
()¶ - Sets the curves
- param the3dCurve
- type the3dCurve
Geom_Curve
- param the2dCurve1
- type the2dCurve1
Geom2d_Curve
- param the2dCurve2
- type the2dCurve2
Geom2d_Curve
- rtype
None
-
SetFirstCurve2d
()¶ - Sets the first 2d curve
- param the2dCurve1
- type the2dCurve1
Geom2d_Curve
- rtype
None
-
SetSecondCurve2d
()¶ - Sets the second 2d curve
- param the2dCurve2
- type the2dCurve2
Geom2d_Curve
- rtype
None
-
SetTangentialTolerance
()¶ - Sets the tangential tolerance
- param theTangentialTolerance
- type theTangentialTolerance
float
- rtype
None
-
SetTolerance
()¶ - Sets the tolerance for the curve
- param theTolerance
- type theTolerance
float
- rtype
None
-
TangentialTolerance
()¶ - Returns the tangential tolerance
- rtype
float
-
Tolerance
()¶ - Returns the tolerance
- rtype
float
-
Type
()¶ - Returns the type of the 3d curve
- rtype
GeomAbs_CurveType
-
property
thisown
¶ The membership flag
-
class
IntTools_CurveRangeLocalizeData
(*args)¶ Bases:
object
- Parameters
theNbSample –
- type theNbSample
int
- param theMinRange
- type theMinRange
float
- rtype
None
-
AddBox
()¶ - Parameters
theRange –
- type theRange
IntTools_CurveRangeSample
- param theBox
- type theBox
Bnd_Box
- rtype
None
-
AddOutRange
()¶ - Parameters
theRange –
- type theRange
IntTools_CurveRangeSample
- rtype
None
-
FindBox
()¶ - Parameters
theRange –
- type theRange
IntTools_CurveRangeSample
- param theBox
- type theBox
Bnd_Box
- rtype
bool
-
IsRangeOut
()¶ - Parameters
theRange –
- type theRange
IntTools_CurveRangeSample
- rtype
bool
-
ListRangeOut
()¶ - Parameters
theList –
- type theList
IntTools_ListOfCurveRangeSample
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_CurveRangeSample
(*args)¶ Bases:
OCC.Core.IntTools.IntTools_BaseRangeSample
- Return type
None:param theIndex: :type theIndex: int :rtype: None
-
GetRange
()¶ - Parameters
theFirst –
- type theFirst
float
- param theLast
- type theLast
float
- param theNbSample
- type theNbSample
int
- rtype
IntTools_Range
-
GetRangeIndexDeeper
()¶ - Parameters
theNbSample –
- type theNbSample
int
- rtype
int
-
IsEqual
()¶ - Parameters
Other –
- type Other
IntTools_CurveRangeSample
- rtype
bool
-
SetRangeIndex
()¶ - Parameters
theIndex –
- type theIndex
int
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_CurveRangeSampleMapHasher
¶ Bases:
object
-
static
HashCode
()¶ - Computes a hash code for the given key, in the range [1, theUpperBound] @param theKey the key which hash code is to be computed @param theUpperBound the upper bound of the range a computing hash code must be within returns a computed hash code, in the range [1, theUpperBound]
- param theKey
- type theKey
IntTools_CurveRangeSample
- param theUpperBound
- type theUpperBound
int
- rtype
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.
- param S1
- type S1
IntTools_CurveRangeSample
- param S2
- type S2
IntTools_CurveRangeSample
- rtype
bool
-
property
thisown
¶ The membership flag
-
static
-
class
IntTools_DataMapOfCurveSampleBox
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_DataMapOfSurfaceSampleBox
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_EdgeEdge
(*args)¶ Bases:
object
- Empty contructor
- rtype
None* Contructor
- param theEdge1
- type theEdge1
TopoDS_Edge
- param theEdge2
- type theEdge2
TopoDS_Edge
- rtype
None* Contructor
- param theEdge1
- type theEdge1
TopoDS_Edge
- param aT11
- type aT11
float
- param aT12
- type aT12
float
- param theEdge2
- type theEdge2
TopoDS_Edge
- param aT21
- type aT21
float
- param aT22
- type aT22
float
- rtype
None
-
CommonParts
()¶ - Returns common parts
- rtype
IntTools_SequenceOfCommonPrts
-
FuzzyValue
()¶ - Returns Fuzzy value
- rtype
float
-
IsCoincidenceCheckedQuickly
()¶ - Returns the flag myQuickCoincidenceCheck
- rtype
bool
-
IsDone
()¶ - Returns True if common part(s) is(are) found
- rtype
bool
-
Perform
()¶ - Performs the intersection between edges
- rtype
None
-
SetEdge1
()¶ - Sets the first edge
- param theEdge
- type theEdge
TopoDS_Edge
- rtype
None* Sets the first edge and its range
- param theEdge
- type theEdge
TopoDS_Edge
- param aT1
- type aT1
float
- param aT2
- type aT2
float
- rtype
None
-
SetEdge2
()¶ - Sets the second edge
- param theEdge
- type theEdge
TopoDS_Edge
- rtype
None* Sets the first edge and its range
- param theEdge
- type theEdge
TopoDS_Edge
- param aT1
- type aT1
float
- param aT2
- type aT2
float
- rtype
None
-
SetFuzzyValue
()¶ - Sets the Fuzzy value
- param theFuzz
- type theFuzz
float
- rtype
None
-
SetRange1
()¶ - Sets the range for the first edge
- param theRange1
- type theRange1
IntTools_Range
- rtype
None* Sets the range for the first edge
- param aT1
- type aT1
float
- param aT2
- type aT2
float
- rtype
None
-
SetRange2
()¶ - Sets the range for the second edge
- param theRange
- type theRange
IntTools_Range
- rtype
None* Sets the range for the second edge
- param aT1
- type aT1
float
- param aT2
- type aT2
float
- rtype
None
-
UseQuickCoincidenceCheck
()¶ - Sets the flag myQuickCoincidenceCheck
- param bFlag
- type bFlag
bool
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_EdgeFace
(*args)¶ Bases:
object
- @name Constructors Empty Constructor
- rtype
None
-
CommonParts
()¶ - @name Obtaining results Returns resulting common parts
- rtype
IntTools_SequenceOfCommonPrts
-
Context
()¶ - Returns the intersection context
- rtype
opencascade::handle<IntTools_Context>
-
Edge
()¶ - Returns the edge
- rtype
TopoDS_Edge
-
ErrorStatus
()¶ - Returns the code of completion: 0 - means successful completion; 1 - the process was not started; 2,3 - invalid source data for the algorithm; 4 - projection failed.
- rtype
int
-
Face
()¶ - Returns the face
- rtype
TopoDS_Face
-
FuzzyValue
()¶ - Returns the Fuzzy value
- rtype
float
-
IsCoincidenceCheckedQuickly
()¶ - Returns the flag myQuickCoincidenceCheck
- rtype
bool
-
IsDone
()¶ - @name Checking validity of the intersection Returns True if computation was successful. Otherwise returns False.
- rtype
bool
-
Perform
()¶ - @name Performing the operation Launches the process
- rtype
None
-
Range
()¶ - Returns intersection range of the edge
- rtype
IntTools_Range
-
SetContext
()¶ - Sets the intersection context
- param theContext
- type theContext
IntTools_Context
- rtype
None
-
SetEdge
()¶ - @name Setters/Getters Sets the edge for intersection
- param theEdge
- type theEdge
TopoDS_Edge
- rtype
None
-
SetFace
()¶ - Sets the face for intersection
- param theFace
- type theFace
TopoDS_Face
- rtype
None
-
SetFuzzyValue
()¶ - Sets the Fuzzy value
- param theFuzz
- type theFuzz
float
- rtype
None
-
SetRange
()¶ - Sets the boundaries for the edge. The algorithm processes edge inside these boundaries.
- param theRange
- type theRange
IntTools_Range
- rtype
None* Sets the boundaries for the edge. The algorithm processes edge inside these boundaries.
- param theFirst
- type theFirst
float
- param theLast
- type theLast
float
- rtype
None
-
UseQuickCoincidenceCheck
()¶ - Sets the flag for quick coincidence check. It is safe to use the quick check for coincidence only if both of the following conditions are met: - The vertices of edge are lying on the face; - The edge does not intersect the boundaries of the face on the given range.
- param theFlag
- type theFlag
bool
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_FClass2d
(*args)¶ Bases:
object
- Empty constructor
- rtype
None* Initializes algorithm by the face F and tolerance Tol
- param F
- type F
TopoDS_Face
- param Tol
- type Tol
float
- rtype
None
-
Destroy
()¶ - Destructor
- rtype
None
-
Init
()¶ - Initializes algorithm by the face F and tolerance Tol
- param F
- type F
TopoDS_Face
- param Tol
- type Tol
float
- rtype
None
-
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.
- param Puv
- type Puv
gp_Pnt2d
- param RecadreOnPeriodic
default value is Standard_True
- type RecadreOnPeriodic
bool
- rtype
TopAbs_State
-
PerformInfinitePoint
()¶ - Returns state of infinite 2d point relatively to (0, 0)
- rtype
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)
- param Puv
- type Puv
gp_Pnt2d
- param Tol
- type Tol
float
- param RecadreOnPeriodic
default value is Standard_True
- type RecadreOnPeriodic
bool
- rtype
TopAbs_State
-
property
thisown
¶ The membership flag
-
class
IntTools_FaceFace
(*args)¶ Bases:
object
- Empty constructor.
- rtype
None
-
Context
()¶ - Gets the intersecton context
- rtype
opencascade::handle<IntTools_Context>
-
Face1
()¶ - Returns first of processed faces
- rtype
TopoDS_Face
-
Face2
()¶ - Returns second of processed faces
- rtype
TopoDS_Face
-
FuzzyValue
()¶ - Returns Fuzzy value
- rtype
float
-
IsDone
()¶ - Returns True if the intersection was successful
- rtype
bool
-
Lines
()¶ - Returns sequence of 3d curves as result of intersection
- rtype
IntTools_SequenceOfCurves
-
Perform
()¶ - Intersects underliing surfaces of F1 and F2 Use sum of tolerance of F1 and F2 as intersection criteria
- param F1
- type F1
TopoDS_Face
- param F2
- type F2
TopoDS_Face
- rtype
None
-
Points
()¶ - Returns sequence of 3d curves as result of intersection
- rtype
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.
- param bToSplit
default value is Standard_True
- type bToSplit
bool
- rtype
None
-
SetContext
()¶ - Sets the intersecton context
- param aContext
- type aContext
IntTools_Context
- rtype
None
-
SetFuzzyValue
()¶ - Sets the Fuzzy value
- param theFuzz
- type theFuzz
float
- rtype
None
-
SetList
()¶ - Parameters
ListOfPnts –
- type ListOfPnts
IntSurf_ListOfPntOn2S
- rtype
None
-
SetParameters
()¶ - Modifier
- param ApproxCurves
- type ApproxCurves
bool
- param ComputeCurveOnS1
- type ComputeCurveOnS1
bool
- param ComputeCurveOnS2
- type ComputeCurveOnS2
bool
- param ApproximationTolerance
- type ApproximationTolerance
float
- rtype
None
-
TangentFaces
()¶ - Returns True if faces are tangent
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
IntTools_ListIteratorOfListOfBox
(*args)¶ Bases:
object
-
ChangeValue
()¶
-
More
()¶
-
Next
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_ListIteratorOfListOfCurveRangeSample
(*args)¶ Bases:
object
-
ChangeValue
()¶
-
More
()¶
-
Next
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_ListIteratorOfListOfSurfaceRangeSample
(*args)¶ Bases:
object
-
ChangeValue
()¶
-
More
()¶
-
Next
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_ListOfBox
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
Clear
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
Last
()¶
-
Prepend
()¶
-
Remove
()¶
-
RemoveFirst
()¶
-
Reverse
()¶
-
Set
()¶
-
Size
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_ListOfCurveRangeSample
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
Clear
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
Last
()¶
-
Prepend
()¶
-
Remove
()¶
-
RemoveFirst
()¶
-
Reverse
()¶
-
Set
()¶
-
Size
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_ListOfSurfaceRangeSample
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
Clear
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
Last
()¶
-
Prepend
()¶
-
Remove
()¶
-
RemoveFirst
()¶
-
Reverse
()¶
-
Set
()¶
-
Size
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_MapOfCurveSample
(*args)¶ Bases:
object
-
Add
()¶
-
Added
()¶
-
Assign
()¶
-
Clear
()¶
-
Contains
()¶
-
Differ
()¶
-
Difference
()¶
-
Exchange
()¶
-
HasIntersection
()¶
-
Intersect
()¶
-
Intersection
()¶
-
IsEqual
()¶
-
ReSize
()¶
-
Remove
()¶
-
Set
()¶
-
Size
()¶
-
Subtract
()¶
-
Subtraction
()¶
-
Union
()¶
-
Unite
()¶
-
cbegin
()¶
-
cend
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_MapOfSurfaceSample
(*args)¶ Bases:
object
-
Add
()¶
-
Added
()¶
-
Assign
()¶
-
Clear
()¶
-
Contains
()¶
-
Differ
()¶
-
Difference
()¶
-
Exchange
()¶
-
HasIntersection
()¶
-
Intersect
()¶
-
Intersection
()¶
-
IsEqual
()¶
-
ReSize
()¶
-
Remove
()¶
-
Set
()¶
-
Size
()¶
-
Subtract
()¶
-
Subtraction
()¶
-
Union
()¶
-
Unite
()¶
-
cbegin
()¶
-
cend
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_MarkedRangeSet
(*args)¶ Bases:
object
- Empty constructor
- rtype
None* build set of ranges which consists of one range with boundary values theFirstBoundary and theLastBoundary
- param theFirstBoundary
- type theFirstBoundary
float
- param theLastBoundary
- type theLastBoundary
float
- param theInitFlag
- type theInitFlag
int
- rtype
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
- param theSortedArray
- type theSortedArray
IntTools_CArray1OfReal
- param theInitFlag
- type theInitFlag
int
- rtype
None
-
Flag
()¶ - Returns flag of the range with index theIndex
- param theIndex
- type theIndex
int
- rtype
int
-
GetIndex
()¶ - Returns index of range which contains theValue. If theValue do not belong any range returns 0.
- param theValue
- type theValue
float
- rtype
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.
- param theValue
- type theValue
float
- param UseLower
- type UseLower
bool
- rtype
int
-
GetIndices
()¶ - Parameters
theValue –
- type theValue
float
- rtype
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
- param theFirstBoundary
- type theFirstBoundary
float
- param theLastBoundary
- type theLastBoundary
float
- param theFlag
- type theFlag
int
- rtype
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
- param theRange
- type theRange
IntTools_Range
- param theFlag
- type theFlag
int
- rtype
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
- param theFirstBoundary
- type theFirstBoundary
float
- param theLastBoundary
- type theLastBoundary
float
- param theFlag
- type theFlag
int
- param theIndex
- type theIndex
int
- rtype
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
- param theRange
- type theRange
IntTools_Range
- param theFlag
- type theFlag
int
- param theIndex
- type theIndex
int
- rtype
bool
-
Length
()¶ - Returns number of ranges
- rtype
int
-
Range
()¶ - Returns the range with index theIndex. the Index can be from 1 to Length()
- param theIndex
- type theIndex
int
- rtype
IntTools_Range
-
SetBoundaries
()¶ - build set of ranges which consists of one range with boundary values theFirstBoundary and theLastBoundary
- param theFirstBoundary
- type theFirstBoundary
float
- param theLastBoundary
- type theLastBoundary
float
- param theInitFlag
- type theInitFlag
int
- rtype
None
-
SetFlag
()¶ - Set flag theFlag for range with index theIndex
- param theIndex
- type theIndex
int
- param theFlag
- type theFlag
int
- rtype
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
- param theSortedArray
- type theSortedArray
IntTools_CArray1OfReal
- param theInitFlag
- type theInitFlag
int
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_PntOn2Faces
(*args)¶ Bases:
object
- Empty constructor
- rtype
None* Initializes me by two points aP1 and aP2
- param aP1
- type aP1
IntTools_PntOnFace
- param aP2
- type aP2
IntTools_PntOnFace
- rtype
None
-
IsValid
()¶ - Selector
- rtype
bool
-
P1
()¶ - Selector
- rtype
IntTools_PntOnFace
-
P2
()¶ - Selector
- rtype
IntTools_PntOnFace
-
SetP1
()¶ - Modifier
- param aP1
- type aP1
IntTools_PntOnFace
- rtype
None
-
SetP2
()¶ - Modifier
- param aP2
- type aP2
IntTools_PntOnFace
- rtype
None
-
SetValid
()¶ - Modifier
- param bF
- type bF
bool
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_PntOnFace
(*args)¶ Bases:
object
- Empty constructor
- rtype
None
-
Face
()¶ - Selector
- rtype
TopoDS_Face
-
Init
()¶ - Initializes me by aFace, a 3d point and it’s UV parameters on face
- param aF
- type aF
TopoDS_Face
- param aP
- type aP
gp_Pnt
- param U
- type U
float
- param V
- type V
float
- rtype
None
-
Parameters
()¶ - Selector
- param U
- type U
float
- param V
- type V
float
- rtype
None
-
Pnt
()¶ - Selector
- rtype
gp_Pnt
-
SetFace
()¶ - Modifier
- param aF
- type aF
TopoDS_Face
- rtype
None
-
SetParameters
()¶ - Modifier
- param U
- type U
float
- param V
- type V
float
- rtype
None
-
SetPnt
()¶ - Modifier
- param aP
- type aP
gp_Pnt
- rtype
None
-
SetValid
()¶ - Modifier
- param bF
- type bF
bool
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_Range
(*args)¶ Bases:
object
- Empty constructor
- rtype
None* Initialize me by range boundaries
- param aFirst
- type aFirst
float
- param aLast
- type aLast
float
- rtype
None
-
First
()¶ - Selector
- rtype
float
-
Last
()¶ - Selector
- rtype
float
-
Range
()¶ - Selector
- param aFirst
- type aFirst
float
- param aLast
- type aLast
float
- rtype
None
-
SetFirst
()¶ - Modifier
- param aFirst
- type aFirst
float
- rtype
None
-
SetLast
()¶ - Modifier
- param aLast
- type aLast
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_Root
(*args)¶ Bases:
object
- Empty constructor
- rtype
None* Initializes my by range of parameters and type of root
- param aRoot
- type aRoot
float
- param aType
- type aType
int
- rtype
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).
- param t1
- type t1
float
- param t2
- type t2
float
- param f1
- type f1
float
- param f2
- type f2
float
- rtype
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.
- rtype
bool
-
LayerHeight
()¶ - Not used in Edge/Edge algorithm
- rtype
float
-
Root
()¶ - Returns the Root value
- rtype
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).
- param t1
- type t1
float
- param t2
- type t2
float
- param f1
- type f1
float
- param f2
- type f2
float
- rtype
None
-
SetLayerHeight
()¶ - Not used in Edge/Edge algorithm
- param aHeight
- type aHeight
float
- rtype
None
-
SetRoot
()¶ - Sets the Root’s value
- param aRoot
- type aRoot
float
- rtype
None
-
SetStateAfter
()¶ - Set the value of the state after the root (at t=Root-dt)
- param aState
- type aState
TopAbs_State
- rtype
None
-
SetStateBefore
()¶ - Set the value of the state before the root (at t=Root-dt)
- param aState
- type aState
TopAbs_State
- rtype
None
-
SetType
()¶ - Sets the Root’s Type
- param aType
- type aType
int
- rtype
None
-
StateAfter
()¶ - Returns the state after the root
- rtype
TopAbs_State
-
StateBefore
()¶ - Returns the state before the root
- rtype
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] );
- rtype
int
-
property
thisown
¶ The membership flag
-
class
IntTools_SequenceOfCommonPrts
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_SequenceOfCurves
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_SequenceOfPntOn2Faces
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_SequenceOfRanges
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_SequenceOfRoots
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntTools_ShrunkRange
(*args)¶ Bases:
object
- Return type
-
Context
()¶ - Return type
opencascade::handle<IntTools_Context>
-
Edge
()¶ - Return type
-
IsDone
()¶ - Returns True in case the shrunk range is computed
- rtype
bool
-
IsSplittable
()¶ - Returns False in case the shrunk range is too short and the edge cannot be split, otherwise returns True
- rtype
bool
-
Length
()¶ - Returns the length of the edge if computed.
- rtype
float
-
SetContext
()¶ - Parameters
aCtx –
- type aCtx
IntTools_Context
- rtype
None
-
SetData
()¶ - Parameters
aE –
- type aE
TopoDS_Edge
- param aT1
- type aT1
float
- param aT2
- type aT2
float
- param aV1
- type aV1
TopoDS_Vertex
- param aV2
- type aV2
TopoDS_Vertex
- rtype
None
-
SetShrunkRange
()¶ - Parameters
aT1 –
- type aT1
float
- param aT2
- type aT2
float
- rtype
None
-
ShrunkRange
()¶ - Parameters
aT1 –
- type aT1
float
- param aT2
- type aT2
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_SurfaceRangeLocalizeData
(*args)¶ Bases:
object
- Return type
None:param theNbSampleU: :type theNbSampleU: int :param theNbSampleV: :type theNbSampleV: int :param theMinRangeU: :type theMinRangeU: float :param theMinRangeV: :type theMinRangeV: float :rtype: None:param Other: :type Other: IntTools_SurfaceRangeLocalizeData :rtype: None
-
AddBox
()¶ - Parameters
theRange –
- type theRange
IntTools_SurfaceRangeSample
- param theBox
- type theBox
Bnd_Box
- rtype
None
-
AddOutRange
()¶ - Parameters
theRange –
- type theRange
IntTools_SurfaceRangeSample
- rtype
None
-
Assign
()¶ - Parameters
Other –
- type Other
IntTools_SurfaceRangeLocalizeData
- rtype
IntTools_SurfaceRangeLocalizeData
-
ClearGrid
()¶ - Clears the grid of points.
- rtype
None
-
FindBox
()¶ - Parameters
theRange –
- type theRange
IntTools_SurfaceRangeSample
- param theBox
- type theBox
Bnd_Box
- rtype
bool
-
GetGridDeflection
()¶ - Query the grid deflection.
- rtype
float
-
GetGridPoint
()¶ - Set the grid point.
- param theUIndex
- type theUIndex
int
- param theVIndex
- type theVIndex
int
- rtype
gp_Pnt
-
GetNBUPointsInFrame
()¶ - Returns the number of grid points on U direction in frame.
- rtype
int
-
GetNBVPointsInFrame
()¶ - Returns the number of grid points on V direction in frame.
- rtype
int
-
GetPointInFrame
()¶ - Returns the grid point in frame.
- param theUIndex
- type theUIndex
int
- param theVIndex
- type theVIndex
int
- rtype
gp_Pnt
-
GetRangeUGrid
()¶ - Query the range U of the grid of points.
- rtype
int
-
GetRangeVGrid
()¶ - Query the range V of the grid of points.
- rtype
int
-
GetUParam
()¶ - Query the U parameter of the grid points at that index.
- param theIndex
- type theIndex
int
- rtype
float
-
GetUParamInFrame
()¶ - Query the U parameter of the grid points at that index in frame.
- param theIndex
- type theIndex
int
- rtype
float
-
GetVParam
()¶ - Query the V parameter of the grid points at that index.
- param theIndex
- type theIndex
int
- rtype
float
-
GetVParamInFrame
()¶ - Query the V parameter of the grid points at that index in frame.
- param theIndex
- type theIndex
int
- rtype
float
-
IsRangeOut
()¶ - Parameters
theRange –
- type theRange
IntTools_SurfaceRangeSample
- rtype
bool
-
ListRangeOut
()¶ - Parameters
theList –
- type theList
IntTools_ListOfSurfaceRangeSample
- rtype
None
-
Set
()¶ - Parameters
Other –
- type Other
IntTools_SurfaceRangeLocalizeData
- rtype
IntTools_SurfaceRangeLocalizeData
-
SetFrame
()¶ - Sets the frame area. Used to work with grid points.
- param theUMin
- type theUMin
float
- param theUMax
- type theUMax
float
- param theVMin
- type theVMin
float
- param theVMax
- type theVMax
float
- rtype
None
-
SetGridDeflection
()¶ - Set the grid deflection.
- param theDeflection
- type theDeflection
float
- rtype
None
-
SetGridPoint
()¶ - Set the grid point.
- param theUIndex
- type theUIndex
int
- param theVIndex
- type theVIndex
int
- param thePoint
- type thePoint
gp_Pnt
- rtype
None
-
SetRangeUGrid
()¶ - Set the range U of the grid of points.
- param theNbUGrid
- type theNbUGrid
int
- rtype
None
-
SetRangeVGrid
()¶ - Set the range V of the grid of points.
- param theNbVGrid
- type theNbVGrid
int
- rtype
None
-
SetUParam
()¶ - Set the U parameter of the grid points at that index.
- param theIndex
- type theIndex
int
- param theUParam
- type theUParam
float
- rtype
None
-
SetVParam
()¶ - Set the V parameter of the grid points at that index.
- param theIndex
- type theIndex
int
- param theVParam
- type theVParam
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_SurfaceRangeSample
(*args)¶ Bases:
object
- Return type
None:param theIndexU: :type theIndexU: int :param theDepthU: :type theDepthU: int :param theIndexV: :type theIndexV: int :param theDepthV: :type theDepthV: int :rtype: None:param theRangeU: :type theRangeU: IntTools_CurveRangeSample :param theRangeV: :type theRangeV: IntTools_CurveRangeSample :rtype: None:param Other: :type Other: IntTools_SurfaceRangeSample :rtype: None
-
Assign
()¶ - Parameters
Other –
- type Other
IntTools_SurfaceRangeSample
- rtype
IntTools_SurfaceRangeSample
-
GetDepths
()¶ - Parameters
theDepthU –
- type theDepthU
int
- param theDepthV
- type theDepthV
int
- rtype
None
-
GetIndexes
()¶ - Parameters
theIndexU –
- type theIndexU
int
- param theIndexV
- type theIndexV
int
- rtype
None
-
GetRangeIndexUDeeper
()¶ - Parameters
theNbSampleU –
- type theNbSampleU
int
- rtype
int
-
GetRangeIndexVDeeper
()¶ - Parameters
theNbSampleV –
- type theNbSampleV
int
- rtype
int
-
GetRangeU
()¶ - Parameters
theFirstU –
- type theFirstU
float
- param theLastU
- type theLastU
float
- param theNbSampleU
- type theNbSampleU
int
- rtype
IntTools_Range
-
GetRangeV
()¶ - Parameters
theFirstV –
- type theFirstV
float
- param theLastV
- type theLastV
float
- param theNbSampleV
- type theNbSampleV
int
- rtype
IntTools_Range
-
GetRanges
()¶ - Parameters
theRangeU –
- type theRangeU
IntTools_CurveRangeSample
- param theRangeV
- type theRangeV
IntTools_CurveRangeSample
- rtype
None
-
GetSampleRangeU
()¶ - Return type
-
GetSampleRangeV
()¶ - Return type
-
IsEqual
()¶ - Parameters
Other –
- type Other
IntTools_SurfaceRangeSample
- rtype
bool
-
Set
()¶ - Parameters
Other –
- type Other
IntTools_SurfaceRangeSample
- rtype
IntTools_SurfaceRangeSample
-
SetDepthU
()¶ - Parameters
theDepthU –
- type theDepthU
int
- rtype
None
-
SetDepthV
()¶ - Parameters
theDepthV –
- type theDepthV
int
- rtype
None
-
SetIndexU
()¶ - Parameters
theIndexU –
- type theIndexU
int
- rtype
None
-
SetIndexV
()¶ - Parameters
theIndexV –
- type theIndexV
int
- rtype
None
-
SetIndexes
()¶ - Parameters
theIndexU –
- type theIndexU
int
- param theIndexV
- type theIndexV
int
- rtype
None
-
SetRanges
()¶ - Parameters
theRangeU –
- type theRangeU
IntTools_CurveRangeSample
- param theRangeV
- type theRangeV
IntTools_CurveRangeSample
- rtype
None
-
SetSampleRangeU
()¶ - Parameters
theRangeSampleU –
- type theRangeSampleU
IntTools_CurveRangeSample
- rtype
None
-
SetSampleRangeV
()¶ - Parameters
theRangeSampleV –
- type theRangeSampleV
IntTools_CurveRangeSample
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntTools_SurfaceRangeSampleMapHasher
¶ Bases:
object
-
static
HashCode
()¶ - Computes a hash code for the given key, in the range [1, theUpperBound] @param theKey the key which hash code is to be computed @param theUpperBound the upper bound of the range a computing hash code must be within returns a computed hash code, in the range [1, theUpperBound]
- param theKey
- type theKey
IntTools_SurfaceRangeSample
- param theUpperBound
- type theUpperBound
int
- rtype
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.
- param S1
- type S1
IntTools_SurfaceRangeSample
- param S2
- type S2
IntTools_SurfaceRangeSample
- rtype
bool
-
property
thisown
¶ The membership flag
-
static
-
class
IntTools_Tools
¶ Bases:
object
-
static
CheckCurve
()¶ - Checks if the curve is not covered by the default tolerance (confusion). Builds bounding box for the curve and stores it into <theBox>.
- param theCurve
- type theCurve
IntTools_Curve
- param theBox
- type theBox
Bnd_Box
- rtype
bool
-
static
ClassifyPointByFace
()¶ - Parameters
aF –
- type aF
TopoDS_Face
- param P
- type P
gp_Pnt2d
- rtype
TopAbs_State
-
static
ComputeIntRange
()¶ - Computes the correct Intersection range for Line/Line, Line/Plane and Plane/Plane intersections
- param theTol1
- type theTol1
float
- param theTol2
- type theTol2
float
- param theAngle
- type theAngle
float
- rtype
float
-
static
ComputeTolerance
()¶ - Computes the max distance between points taken from 3D and 2D curves by the same parameter
- param theCurve3D
- type theCurve3D
Geom_Curve
- param theCurve2D
- type theCurve2D
Geom2d_Curve
- param theSurf
- type theSurf
Geom_Surface
- param theFirst
- type theFirst
float
- param theLast
- type theLast
float
- param theMaxDist
- type theMaxDist
float
- param theMaxPar
- type theMaxPar
float
- param theTolRange
default value is Precision::Confusion()
- type theTolRange
float
- rtype
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
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
int
-
static
CurveTolerance
()¶ - Returns adaptive tolerance for given aTolBase if aC is trimmed curve and basis curve is parabola, otherwise returns value of aTolBase
- param aC
- type aC
Geom_Curve
- param aTolBase
- type aTolBase
float
- rtype
float
-
static
HasInternalEdge
()¶ - Returns True if wire aW contains edges with INTERNAL orientation
- param aW
- type aW
TopoDS_Wire
- rtype
bool
-
static
IntermediatePoint
()¶ - Returns some value between aFirst and aLast
- param aFirst
- type aFirst
float
- param aLast
- type aLast
float
- rtype
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
- param aC
- type aC
Geom_Curve
- rtype
bool
-
static
IsDirsCoinside
()¶ - Returns True if D1 and D2 coinside
- param D1
- type D1
gp_Dir
- param D2
- type D2
gp_Dir
- rtype
bool* Returns True if D1 and D2 coinside with given tolerance
- param D1
- type D1
gp_Dir
- param D2
- type D2
gp_Dir
- param aTol
- type aTol
float
- rtype
bool
-
static
IsInRange
()¶ - Checks if the range <theR> interfere with the range <theRRef>
- param theRRef
- type theRRef
IntTools_Range
- param theR
- type theR
IntTools_Range
- param theTol
- type theTol
float
- rtype
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.
- param E1
- type E1
TopoDS_Edge
- param E2
- type E2
TopoDS_Edge
- rtype
bool
-
static
IsOnPave
()¶ - Parameters
theT –
- type theT
float
- param theRange
- type theRange
IntTools_Range
- param theTol
- type theTol
float
- rtype
bool
-
static
IsOnPave1
()¶ - Parameters
theT –
- type theT
float
- param theRange
- type theRange
IntTools_Range
- param theTol
- type theTol
float
- rtype
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.
- param E
- type E
TopoDS_Edge
- param t
- type t
float
- rtype
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
- param E
- type E
TopoDS_Edge
- param V
- type V
TopoDS_Vertex
- param t
- type t
float
- rtype
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
- param aCmnPrt
- type aCmnPrt
IntTools_CommonPrt
- rtype
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
- param aP
- type aP
gp_Pnt
- param aTolPV
- type aTolPV
float
- param aV
- type aV
TopoDS_Vertex
- rtype
bool
-
static
MakeFaceFromWireAndFace
()¶ - Build a face based on surface of given face aF and bounded by wire aW
- param aW
- type aW
TopoDS_Wire
- param aF
- type aF
TopoDS_Face
- param aFNew
- type aFNew
TopoDS_Face
- rtype
void
-
static
RejectLines
()¶ - Puts curves from aSIn to aSOut except those curves that are coincide with first curve from aSIn.
- param aSIn
- type aSIn
IntTools_SequenceOfCurves
- param aSOut
- type aSOut
IntTools_SequenceOfCurves
- rtype
void
-
static
SegPln
()¶ - Parameters
theLin –
- type theLin
gp_Lin
- param theTLin1
- type theTLin1
float
- param theTLin2
- type theTLin2
float
- param theTolLin
- type theTolLin
float
- param thePln
- type thePln
gp_Pln
- param theTolPln
- type theTolPln
float
- param theP
- type theP
gp_Pnt
- param theT
- type theT
float
- param theTolP
- type theTolP
float
- param theTmin
- type theTmin
float
- param theTmax
- type theTmax
float
- rtype
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.
- param aC
- type aC
IntTools_Curve
- param aS
- type aS
IntTools_SequenceOfCurves
- rtype
int
-
static
VertexParameter
()¶ - Parameters
theCP –
- type theCP
IntTools_CommonPrt
- param theT
- type theT
float
- rtype
void
-
static
VertexParameters
()¶ - Parameters
theCP –
- type theCP
IntTools_CommonPrt
- param theT1
- type theT1
float
- param theT2
- type theT2
float
- rtype
void
-
property
thisown
¶ The membership flag
-
static
-
class
IntTools_TopolTool
(*args)¶ Bases:
OCC.Core.Adaptor3d.Adaptor3d_TopolTool
- Empty constructor
- rtype
None* Initializes me by surface
- param theSurface
- type theSurface
Adaptor3d_HSurface
- rtype
None
-
static
DownCast
(t)¶
-
Initialize
()¶ - Redefined empty initializer //! Warning: Raises the exception NotImplemented
- rtype
void* Initializes me by surface
- param theSurface
- type theSurface
Adaptor3d_HSurface
- rtype
void
-
property
thisown
¶ The membership flag
-
class
IntTools_WLineTool
¶ Bases:
object
-
static
DecompositionOfWLine
()¶ - Parameters
theWLine –
- type theWLine
IntPatch_WLine
- param theSurface1
- type theSurface1
GeomAdaptor_HSurface
- param theSurface2
- type theSurface2
GeomAdaptor_HSurface
- param theFace1
- type theFace1
TopoDS_Face
- param theFace2
- type theFace2
TopoDS_Face
- param theLConstructor
- type theLConstructor
GeomInt_LineConstructor
- param theAvoidLConstructor
- type theAvoidLConstructor
bool
- param theTol
- type theTol
float
- param theNewLines
- type theNewLines
IntPatch_SequenceOfLine
- param theReachedTol3d
- type theReachedTol3d
float
- param &
- type &
IntTools_Context
- rtype
bool
-
static
NotUseSurfacesForApprox
()¶ - Parameters
aF1 –
- type aF1
TopoDS_Face
- param aF2
- type aF2
TopoDS_Face
- param WL
- type WL
IntPatch_WLine
- param ifprm
- type ifprm
int
- param ilprm
- type ilprm
int
- rtype
bool
-
property
thisown
¶ The membership flag
-
static
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
property
thisown
¶ The membership flag
-
value
()¶
-
-
class
inttools
¶ Bases:
object
-
static
FindRootStates
()¶ - Find the states (before and after) for each Root from the sequence aSeq
- param aSeq
- type aSeq
IntTools_SequenceOfRoots
- param anEpsNull
- type anEpsNull
float
- rtype
void
-
static
GetRadius
()¶ - Parameters
C –
- type C
BRepAdaptor_Curve
- param t1
- type t1
float
- param t3
- type t3
float
- param R
- type R
float
- rtype
int
-
static
Length
()¶ - returns the length of the edge;
- param E
- type E
TopoDS_Edge
- rtype
float
-
static
Parameter
()¶ - Parameters
P –
- type P
gp_Pnt
- param Curve
- type Curve
Geom_Curve
- param aParm
- type aParm
float
- rtype
int
-
static
PrepareArgs
()¶ - Parameters
C –
- type C
BRepAdaptor_Curve
- param tMax
- type tMax
float
- param tMin
- type tMin
float
- param Discret
- type Discret
int
- param Deflect
- type Deflect
float
- param anArgs
- type anArgs
IntTools_CArray1OfReal
- rtype
int
-
static
RemoveIdenticalRoots
()¶ - Remove from the sequence aSeq the Roots that have values ti and tj such as |ti-tj] < anEpsT.
- param aSeq
- type aSeq
IntTools_SequenceOfRoots
- param anEpsT
- type anEpsT
float
- rtype
void
-
static
SortRoots
()¶ - Sort the sequence aSeq of the Roots to arrange the Roons in increasing order
- param aSeq
- type aSeq
IntTools_SequenceOfRoots
- param anEpsT
- type anEpsT
float
- rtype
void
-
property
thisown
¶ The membership flag
-
static