OCC.Core.IntPatch module¶
IntPatch module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_intpatch.html
-
class
IntPatch_ALine
(*args)¶ Bases:
OCC.Core.IntPatch.IntPatch_Line
- Creates an analytic intersection line when the transitions are In or Out.
- param C
- type C
IntAna_Curve
- param Tang
- type Tang
bool
- param Trans1
- type Trans1
IntSurf_TypeTrans
- param Trans2
- type Trans2
IntSurf_TypeTrans
- rtype
None* Creates an analytic intersection line when the transitions are Touch.
- param C
- type C
IntAna_Curve
- param Tang
- type Tang
bool
- param Situ1
- type Situ1
IntSurf_Situation
- param Situ2
- type Situ2
IntSurf_Situation
- rtype
None* Creates an analytic intersection line when the transitions are Undecided.
- param C
- type C
IntAna_Curve
- param Tang
- type Tang
bool
- rtype
None
-
AddVertex
()¶ - To add a vertex in the list.
- param Pnt
- type Pnt
IntPatch_Point
- rtype
None
-
ChangeVertex
()¶ - Allows modifying the vertex with index theIndex on the line.
- param theIndex
- type theIndex
int
- rtype
IntPatch_Point
-
ComputeVertexParameters
()¶ - Set the parameters of all the vertex on the line. if a vertex is already in the line, its parameter is modified else a new point in the line is inserted.
- param Tol
- type Tol
float
- rtype
None
-
Curve
()¶ - Return type
-
D1
()¶ - Returns Standard_True when the derivative at parameter U is defined on the analytic intersection line. In that case, Du is the derivative. Returns Standard_False when it is not possible to evaluate the derivative. In both cases, P is the point at parameter U on the intersection.
- param U
- type U
float
- param P
- type P
gp_Pnt
- param Du
- type Du
gp_Vec
- rtype
bool
-
static
DownCast
(t)¶
-
FindParameter
()¶ - Tries to find the parameters of the point P on the curve. If the method returns False, the ‘projection’ is impossible. If the method returns True at least one parameter has been found. theParams is always sorted in ascending order.
- param P
- type P
gp_Pnt
- param theParams
- type theParams
TColStd_ListOfReal
- rtype
None
-
FirstParameter
()¶ - Returns the first parameter on the intersection line. If IsIncluded returns True, Value and D1 methods can be call with a parameter equal to FirstParamater. Otherwise, the parameter must be greater than FirstParameter.
- param IsIncluded
- type IsIncluded
bool
- rtype
float
-
FirstPoint
()¶ - Returns the IntPoint corresponding to the FirstPoint. An exception is raised when HasFirstPoint returns False.
- rtype
IntPatch_Point
-
HasFirstPoint
()¶ - Returns True if the line has a known First point. This point is given by the method FirstPoint().
- rtype
bool
-
HasLastPoint
()¶ - Returns True if the line has a known Last point. This point is given by the method LastPoint().
- rtype
bool
-
LastParameter
()¶ - Returns the last parameter on the intersection line. If IsIncluded returns True, Value and D1 methods can be call with a parameter equal to LastParamater. Otherwise, the parameter must be less than LastParameter.
- param IsIncluded
- type IsIncluded
bool
- rtype
float
-
LastPoint
()¶ - Returns the IntPoint corresponding to the LastPoint. An exception is raised when HasLastPoint returns False.
- rtype
IntPatch_Point
-
Replace
()¶ - Replaces the element of range Index in the list of points.
- param Index
- type Index
int
- param Pnt
- type Pnt
IntPatch_Point
- rtype
None
-
SetFirstPoint
()¶ - Parameters
IndFirst –
- type IndFirst
int
- rtype
None
-
SetLastPoint
()¶ - Parameters
IndLast –
- type IndLast
int
- rtype
None
-
Value
()¶ - Returns the point of parameter U on the analytic intersection line.
- param U
- type U
float
- rtype
gp_Pnt
-
Vertex
()¶ - Returns the vertex of range Index on the line.
- param Index
- type Index
int
- rtype
IntPatch_Point
-
property
thisown
¶ The membership flag
-
class
IntPatch_ALineToWLine
(*args)¶ Bases:
object
- Constructor
- param theS1
- type theS1
Adaptor3d_HSurface
- param theS2
- type theS2
Adaptor3d_HSurface
- param theNbPoints
default value is 200
- type theNbPoints
int
- rtype
None
-
MakeWLine
()¶ - Converts aline to the set of Walking-lines and adds them in theLines.
- param aline
- type aline
IntPatch_ALine
- param theLines
- type theLines
IntPatch_SequenceOfLine
- rtype
None* Converts aline (limitted by paraminf and paramsup) to the set of Walking-lines and adds them in theLines.
- param aline
- type aline
IntPatch_ALine
- param paraminf
- type paraminf
float
- param paramsup
- type paramsup
float
- param theLines
- type theLines
IntPatch_SequenceOfLine
- rtype
None
-
SetTol3D
()¶ - Parameters
aT –
- type aT
float
- rtype
None
-
SetTolOpenDomain
()¶ - Parameters
aT –
- type aT
float
- rtype
None
-
SetTolTransition
()¶ - Parameters
aT –
- type aT
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntPatch_ArcFunction
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Return type
-
Arc
()¶ - Return type
opencascade::handle<Adaptor2d_HCurve2d>
-
LastComputedPoint
()¶ - Returns the point, which has been computed while the last calling Value() method
- rtype
gp_Pnt
-
Quadric
()¶ - Return type
-
Set
()¶ - Parameters
A –
- type A
Adaptor2d_HCurve2d
- rtype
None:param S:
- type S
Adaptor3d_HSurface
- rtype
None
-
SetQuadric
()¶ - Parameters
Q –
- type Q
IntSurf_Quadric
- rtype
None
-
Surface
()¶ - Return type
opencascade::handle<Adaptor3d_HSurface>
-
Valpoint
()¶ - Parameters
Index –
- type Index
int
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
IntPatch_CSFunction
(*args)¶ Bases:
OCC.Core.math.math_FunctionSetWithDerivatives
- S1 is the surface on which the intersection is searched. C is a curve on the surface S2.
- param S1
- type S1
Adaptor3d_HSurface
- param C
- type C
Adaptor2d_HCurve2d
- param S2
- type S2
Adaptor3d_HSurface
- rtype
None
-
AuxillarCurve
()¶ - Return type
opencascade::handle<Adaptor2d_HCurve2d>
-
AuxillarSurface
()¶ - Return type
opencascade::handle<Adaptor3d_HSurface>
-
property
thisown
¶ The membership flag
-
class
IntPatch_CurvIntSurf
(*args)¶ Bases:
object
- compute the solution point with the close point MarginCoef is the coefficient for extension of UV bounds. Ex., UFirst -= MarginCoef*(ULast-UFirst)
- param U
- type U
float
- param V
- type V
float
- param W
- type W
float
- param F
- type F
IntPatch_CSFunction
- param TolTangency
- type TolTangency
float
- param MarginCoef
default value is 0.0
- type MarginCoef
float
- rtype
None* initialize the parameters to compute the solution
- param F
- type F
IntPatch_CSFunction
- param TolTangency
- type TolTangency
float
- rtype
None
-
Function
()¶ - return the math function which is used to compute the intersection
- rtype
IntPatch_CSFunction
-
IsDone
()¶ - Returns True if the creation completed without failure.
- rtype
bool
-
ParameterOnSurface
()¶ - Parameters
U –
- type U
float
- param V
- type V
float
- rtype
None
-
Perform
()¶ - compute the solution it’s possible to write to optimize: IntImp_IntCS inter(S1,C1,Toltangency) math_FunctionSetRoot rsnld(Inter.function()) while …{ u=… v=… w=… inter.Perform(u,v,w,rsnld) } or IntImp_IntCS inter(Toltangency) inter.SetSurface(S); math_FunctionSetRoot rsnld(Inter.function()) while …{ C=… inter.SetCurve(C); u=… v=… w=… inter.Perform(u,v,w,rsnld) }
- param U
- type U
float
- param V
- type V
float
- param W
- type W
float
- param Rsnld
- type Rsnld
math_FunctionSetRoot
- param u0
- type u0
float
- param v0
- type v0
float
- param u1
- type u1
float
- param v1
- type v1
float
- param w0
- type w0
float
- param w1
- type w1
float
- rtype
None
-
Point
()¶ - returns the intersection point The exception NotDone is raised if IsDone is false. The exception DomainError is raised if IsEmpty is true.
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
IntPatch_GLine
(*args)¶ Bases:
OCC.Core.IntPatch.IntPatch_Line
- Creates a Line as intersection line when the transitions are In or Out.
- param L
- type L
gp_Lin
- param Tang
- type Tang
bool
- param Trans1
- type Trans1
IntSurf_TypeTrans
- param Trans2
- type Trans2
IntSurf_TypeTrans
- rtype
None* Creates a Line as intersection line when the transitions are Touch.
- param L
- type L
gp_Lin
- param Tang
- type Tang
bool
- param Situ1
- type Situ1
IntSurf_Situation
- param Situ2
- type Situ2
IntSurf_Situation
- rtype
None* Creates a Line as intersection line when the transitions are Undecided.
- param L
- type L
gp_Lin
- param Tang
- type Tang
bool
- rtype
None* Creates a circle as intersection line when the transitions are In or Out.
- param C
- type C
gp_Circ
- param Tang
- type Tang
bool
- param Trans1
- type Trans1
IntSurf_TypeTrans
- param Trans2
- type Trans2
IntSurf_TypeTrans
- rtype
None* Creates a circle as intersection line when the transitions are Touch.
- param C
- type C
gp_Circ
- param Tang
- type Tang
bool
- param Situ1
- type Situ1
IntSurf_Situation
- param Situ2
- type Situ2
IntSurf_Situation
- rtype
None* Creates a circle as intersection line when the transitions are Undecided.
- param C
- type C
gp_Circ
- param Tang
- type Tang
bool
- rtype
None* Creates an ellipse as intersection line when the transitions are In or Out.
- param E
- type E
gp_Elips
- param Tang
- type Tang
bool
- param Trans1
- type Trans1
IntSurf_TypeTrans
- param Trans2
- type Trans2
IntSurf_TypeTrans
- rtype
None* Creates an ellispe as intersection line when the transitions are Touch.
- param E
- type E
gp_Elips
- param Tang
- type Tang
bool
- param Situ1
- type Situ1
IntSurf_Situation
- param Situ2
- type Situ2
IntSurf_Situation
- rtype
None* Creates an ellipse as intersection line when the transitions are Undecided.
- param E
- type E
gp_Elips
- param Tang
- type Tang
bool
- rtype
None* Creates a parabola as intersection line when the transitions are In or Out.
- param P
- type P
gp_Parab
- param Tang
- type Tang
bool
- param Trans1
- type Trans1
IntSurf_TypeTrans
- param Trans2
- type Trans2
IntSurf_TypeTrans
- rtype
None* Creates a parabola as intersection line when the transitions are Touch.
- param P
- type P
gp_Parab
- param Tang
- type Tang
bool
- param Situ1
- type Situ1
IntSurf_Situation
- param Situ2
- type Situ2
IntSurf_Situation
- rtype
None* Creates a parabola as intersection line when the transitions are Undecided.
- param P
- type P
gp_Parab
- param Tang
- type Tang
bool
- rtype
None* Creates an hyperbola as intersection line when the transitions are In or Out.
- param H
- type H
gp_Hypr
- param Tang
- type Tang
bool
- param Trans1
- type Trans1
IntSurf_TypeTrans
- param Trans2
- type Trans2
IntSurf_TypeTrans
- rtype
None* Creates an hyperbola as intersection line when the transitions are Touch.
- param H
- type H
gp_Hypr
- param Tang
- type Tang
bool
- param Situ1
- type Situ1
IntSurf_Situation
- param Situ2
- type Situ2
IntSurf_Situation
- rtype
None* Creates an hyperbola as intersection line when the transitions are Undecided.
- param H
- type H
gp_Hypr
- param Tang
- type Tang
bool
- rtype
None
-
AddVertex
()¶ - To add a vertex in the list.
- param Pnt
- type Pnt
IntPatch_Point
- rtype
None
-
Circle
()¶ - Returns the Circ from gp corrsponding to the intersection when ArcType returns IntPatch_Circle.
- rtype
gp_Circ
-
ComputeVertexParameters
()¶ - Set the parameters of all the vertex on the line. if a vertex is already in the line, its parameter is modified else a new point in the line is inserted.
- param Tol
- type Tol
float
- rtype
None
-
static
DownCast
(t)¶
-
Ellipse
()¶ - Returns the Elips from gp corrsponding to the intersection when ArcType returns IntPatch_Ellipse.
- rtype
gp_Elips
-
FirstPoint
()¶ - Returns the IntPoint corresponding to the FirstPoint. An exception is raised when HasFirstPoint returns False.
- rtype
IntPatch_Point
-
HasFirstPoint
()¶ - Returns True if the line has a known First point. This point is given by the method FirstPoint().
- rtype
bool
-
HasLastPoint
()¶ - Returns True if the line has a known Last point. This point is given by the method LastPoint().
- rtype
bool
-
Hyperbola
()¶ - Returns the Hypr from gp corrsponding to the intersection when ArcType returns IntPatch_Hyperbola.
- rtype
gp_Hypr
-
LastPoint
()¶ - Returns the IntPoint corresponding to the LastPoint. An exception is raised when HasLastPoint returns False.
- rtype
IntPatch_Point
-
Line
()¶ - Returns the Lin from gp corresponding to the intersection when ArcType returns IntPatch_Line.
- rtype
gp_Lin
-
Parabola
()¶ - Returns the Parab from gp corrsponding to the intersection when ArcType returns IntPatch_Parabola.
- rtype
gp_Parab
-
Replace
()¶ - To replace the element of range Index in the list of points.
- param Index
- type Index
int
- param Pnt
- type Pnt
IntPatch_Point
- rtype
None
-
SetFirstPoint
()¶ - Parameters
IndFirst –
- type IndFirst
int
- rtype
None
-
SetLastPoint
()¶ - Parameters
IndLast –
- type IndLast
int
- rtype
None
-
Vertex
()¶ - Returns the vertex of range Index on the line.
- param Index
- type Index
int
- rtype
IntPatch_Point
-
property
thisown
¶ The membership flag
-
class
IntPatch_HCurve2dTool
¶ Bases:
object
-
static
BSpline
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
opencascade::handle<Geom2d_BSplineCurve>
-
static
Bezier
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
opencascade::handle<Geom2d_BezierCurve>
-
static
Circle
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
gp_Circ2d
-
static
Continuity
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
GeomAbs_Shape
-
static
D0
()¶ - Computes the point of parameter U on the curve.
- param C
- type C
Adaptor2d_HCurve2d
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- rtype
None
-
static
D1
()¶ - Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
- param C
- type C
Adaptor2d_HCurve2d
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param V
- type V
gp_Vec2d
- rtype
None
-
static
D2
()¶ - Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
- param C
- type C
Adaptor2d_HCurve2d
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param V1
- type V1
gp_Vec2d
- param V2
- type V2
gp_Vec2d
- rtype
None
-
static
D3
()¶ - Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
- param C
- type C
Adaptor2d_HCurve2d
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param V1
- type V1
gp_Vec2d
- param V2
- type V2
gp_Vec2d
- param V3
- type V3
gp_Vec2d
- rtype
None
-
static
DN
()¶ - The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
- param C
- type C
Adaptor2d_HCurve2d
- param U
- type U
float
- param N
- type N
int
- rtype
gp_Vec2d
-
static
Ellipse
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
gp_Elips2d
-
static
FirstParameter
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
float
-
static
GetType
()¶ - Returns the type of the curve in the current intervalLine, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
- param C
- type C
Adaptor2d_HCurve2d
- rtype
GeomAbs_CurveType
-
static
Hyperbola
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
gp_Hypr2d
-
static
Intervals
()¶ - Stores in <T> the parameters bounding the intervals of continuity <S>. //! The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
- param C
- type C
Adaptor2d_HCurve2d
- param T
- type T
TColStd_Array1OfReal
- param S
- type S
GeomAbs_Shape
- rtype
None
-
static
IsClosed
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
bool
-
static
IsPeriodic
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
bool
-
static
LastParameter
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
float
-
static
Line
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
gp_Lin2d
-
static
NbIntervals
()¶ - Returns the number of intervals for continuity <S>. May be one if Continuity(myclass) >= <S>
- param C
- type C
Adaptor2d_HCurve2d
- param S
- type S
GeomAbs_Shape
- rtype
int
-
static
NbSamples
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- param U0
- type U0
float
- param U1
- type U1
float
- rtype
int
-
static
Parabola
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
gp_Parab2d
-
static
Period
()¶ - Parameters
C –
- type C
Adaptor2d_HCurve2d
- rtype
float
-
static
Resolution
()¶ - Returns the parametric resolution corresponding to the real space resolution <R3d>.
- param C
- type C
Adaptor2d_HCurve2d
- param R3d
- type R3d
float
- rtype
float
-
static
Value
()¶ - Computes the point of parameter U on the curve.
- param C
- type C
Adaptor2d_HCurve2d
- param U
- type U
float
- rtype
gp_Pnt2d
-
property
thisown
¶ The membership flag
-
static
-
class
IntPatch_HInterTool
(*args)¶ Bases:
object
- Return type
-
static
Bounds
()¶ - Returns the parametric limits on the arc C. These limits must be finitethey are either the real limits of the arc, for a finite arc, or a bounding box for an infinite arc.
- param C
- type C
Adaptor2d_HCurve2d
- param Ufirst
- type Ufirst
float
- param Ulast
- type Ulast
float
- rtype
void
-
static
HasBeenSeen
()¶ - Returns True if all the intersection point and edges are known on the Arc. The intersection point are given as vertices. The intersection edges are given as intervals between two vertices.
- param C
- type C
Adaptor2d_HCurve2d
- rtype
bool
-
static
HasFirstPoint
()¶ - Returns True when the segment of range Index is not open at the left side. In that case, IndFirst is the range in the list intersection points (see NbPoints) of the one which defines the left bound of the segment. Otherwise, the method has to return False, and IndFirst has no meaning.
- param C
- type C
Adaptor2d_HCurve2d
- param Index
- type Index
int
- param IndFirst
- type IndFirst
int
- rtype
bool
-
static
HasLastPoint
()¶ - Returns True when the segment of range Index is not open at the right side. In that case, IndLast is the range in the list intersection points (see NbPoints) of the one which defines the right bound of the segment. Otherwise, the method has to return False, and IndLast has no meaning.
- param C
- type C
Adaptor2d_HCurve2d
- param Index
- type Index
int
- param IndLast
- type IndLast
int
- rtype
bool
-
static
IsAllSolution
()¶ - Returns True when the whole restriction is solution of the intersection problem.
- param C
- type C
Adaptor2d_HCurve2d
- rtype
bool
-
static
IsVertex
()¶ - Returns True if the intersection point of range Index corresponds with a vertex on the arc A.
- param C
- type C
Adaptor2d_HCurve2d
- param Index
- type Index
int
- rtype
bool
-
static
NbPoints
()¶ - Returns the number of intersection points on the arc A.
- param C
- type C
Adaptor2d_HCurve2d
- rtype
int
-
NbSamplePoints
()¶ - Parameters
S –
- type S
Adaptor3d_HSurface
- rtype
int
-
static
NbSamplesOnArc
()¶ - returns the number of points which is used to make a sample on the arc. this number is a function of the Surface and the CurveOnSurface complexity.
- param A
- type A
Adaptor2d_HCurve2d
- rtype
int
-
static
NbSamplesU
()¶ - Parameters
S –
- type S
Adaptor3d_HSurface
- param u1
- type u1
float
- param u2
- type u2
float
- rtype
int
-
static
NbSamplesV
()¶ - Parameters
S –
- type S
Adaptor3d_HSurface
- param v1
- type v1
float
- param v2
- type v2
float
- rtype
int
-
static
NbSegments
()¶ - returns the number of part of A solution of the of intersection problem.
- param C
- type C
Adaptor2d_HCurve2d
- rtype
int
-
static
Parameter
()¶ - Returns the parameter of the vertex V on the arc A.
- param V
- type V
Adaptor3d_HVertex
- param C
- type C
Adaptor2d_HCurve2d
- rtype
float
-
static
Project
()¶ - Projects the point P on the arc C. If the methods returns Standard_True, the projection is successful, and Paramproj is the parameter on the arc of the projected point, Ptproj is the projected Point. If the method returns Standard_False, Param proj and Ptproj are not significant.
- param C
- type C
Adaptor2d_HCurve2d
- param P
- type P
gp_Pnt2d
- param Paramproj
- type Paramproj
float
- param Ptproj
- type Ptproj
gp_Pnt2d
- rtype
bool
-
SamplePoint
()¶ - Parameters
S –
- type S
Adaptor3d_HSurface
- param Index
- type Index
int
- param U
- type U
float
- param V
- type V
float
- rtype
None
-
static
SingularOnUMax
()¶ - Parameters
S –
- type S
Adaptor3d_HSurface
- rtype
bool
-
static
SingularOnUMin
()¶ - Parameters
S –
- type S
Adaptor3d_HSurface
- rtype
bool
-
static
SingularOnVMax
()¶ - Parameters
S –
- type S
Adaptor3d_HSurface
- rtype
bool
-
static
SingularOnVMin
()¶ - Parameters
S –
- type S
Adaptor3d_HSurface
- rtype
bool
-
static
Tolerance
()¶ - Returns the parametric tolerance used to consider that the vertex and another point meet, i-e if Abs(parameter(Vertex) - parameter(OtherPnt))<= Tolerance, the points are ‘merged’.
- param V
- type V
Adaptor3d_HVertex
- param C
- type C
Adaptor2d_HCurve2d
- rtype
float
-
static
Value
()¶ - Returns the value (Pt), the tolerance (Tol), and the parameter (U) on the arc A , of the intersection point of range Index.
- param C
- type C
Adaptor2d_HCurve2d
- param Index
- type Index
int
- param Pt
- type Pt
gp_Pnt
- param Tol
- type Tol
float
- param U
- type U
float
- rtype
void
-
static
Vertex
()¶ - When IsVertex returns True, this method returns the vertex on the arc A.
- param C
- type C
Adaptor2d_HCurve2d
- param Index
- type Index
int
- param V
- type V
Adaptor3d_HVertex
- rtype
void
-
property
thisown
¶ The membership flag
-
class
IntPatch_ImpImpIntersection
(*args)¶ Bases:
object
- Return type
None* Flag theIsReqToKeepRLine has been entered only for compatibility with TopOpeBRep package. It shall be deleted after deleting TopOpeBRep. When intersection result returns IntPatch_RLine and another IntPatch_Line (not restriction) we (in case of theIsReqToKeepRLine==True) will always keep both lines even if they are coincided. :param S1: :type S1: Adaptor3d_HSurface :param D1: :type D1: Adaptor3d_TopolTool :param S2: :type S2: Adaptor3d_HSurface :param D2: :type D2: Adaptor3d_TopolTool :param TolArc: :type TolArc: float :param TolTang: :type TolTang: float :param theIsReqToKeepRLine: default value is Standard_False :type theIsReqToKeepRLine: bool :rtype: None
-
IsDone
()¶ - Returns True if the calculus was successful.
- rtype
bool
-
IsEmpty
()¶ - Returns true if the is no intersection.
- rtype
bool
-
Line
()¶ - Returns the line of range Index. An exception is raised if Index<=0 or Index>NbLine.
- param Index
- type Index
int
- rtype
opencascade::handle<IntPatch_Line>
-
NbLines
()¶ - Returns the number of intersection lines.
- rtype
int
-
NbPnts
()¶ - Returns the number of ‘single’ points.
- rtype
int
-
OppositeFaces
()¶ - Returns True when the TangentFaces returns True and the normal vectors evaluated at a point on the first and the second surface are opposite. The exception DomainError is raised if TangentFaces returns False.
- rtype
bool
-
Perform
()¶ - Flag theIsReqToKeepRLine has been entered only for compatibility with TopOpeBRep package. It shall be deleted after deleting TopOpeBRep. When intersection result returns IntPatch_RLine and another IntPatch_Line (not restriction) we (in case of theIsReqToKeepRLine==True) will always keep both lines even if they are coincided.
- param S1
- type S1
Adaptor3d_HSurface
- param D1
- type D1
Adaptor3d_TopolTool
- param S2
- type S2
Adaptor3d_HSurface
- param D2
- type D2
Adaptor3d_TopolTool
- param TolArc
- type TolArc
float
- param TolTang
- type TolTang
float
- param theIsReqToKeepRLine
default value is Standard_False
- type theIsReqToKeepRLine
bool
- rtype
None
-
Point
()¶ - Returns the point of range Index. An exception is raised if Index<=0 or Index>NbPnt.
- param Index
- type Index
int
- rtype
IntPatch_Point
-
TangentFaces
()¶ - Returns True if the two patches are considered as entirely tangent, i.e every restriction arc of one patch is inside the geometric base of the other patch.
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
IntPatch_ImpPrmIntersection
(*args)¶ Bases:
object
- Return type
None:param Surf1: :type Surf1: Adaptor3d_HSurface :param D1: :type D1: Adaptor3d_TopolTool :param Surf2: :type Surf2: Adaptor3d_HSurface :param D2: :type D2: Adaptor3d_TopolTool :param TolArc: :type TolArc: float :param TolTang: :type TolTang: float :param Fleche: :type Fleche: float :param Pas: :type Pas: float :rtype: None
-
IsDone
()¶ - Returns true if the calculus was succesfull.
- rtype
bool
-
IsEmpty
()¶ - Returns true if the is no intersection.
- rtype
bool
-
Line
()¶ - Returns the line of range Index. An exception is raised if Index<=0 or Index>NbLine.
- param Index
- type Index
int
- rtype
opencascade::handle<IntPatch_Line>
-
NbLines
()¶ - Returns the number of intersection lines.
- rtype
int
-
NbPnts
()¶ - Returns the number of ‘single’ points.
- rtype
int
-
Perform
()¶ - Parameters
Surf1 –
- type Surf1
Adaptor3d_HSurface
- param D1
- type D1
Adaptor3d_TopolTool
- param Surf2
- type Surf2
Adaptor3d_HSurface
- param D2
- type D2
Adaptor3d_TopolTool
- param TolArc
- type TolArc
float
- param TolTang
- type TolTang
float
- param Fleche
- type Fleche
float
- param Pas
- type Pas
float
- rtype
None
-
Point
()¶ - Returns the point of range Index. An exception is raised if Index<=0 or Index>NbPnt.
- param Index
- type Index
int
- rtype
IntPatch_Point
-
SetStartPoint
()¶ - to search for solution from the given point
- param U
- type U
float
- param V
- type V
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntPatch_InterferencePolyhedron
(*args)¶ Bases:
OCC.Core.Intf.Intf_Interference
- Constructs an empty interference of Polyhedron.
- rtype
None* Constructs and computes an interference between the two Polyhedra.
- param Obje1
- type Obje1
IntPatch_Polyhedron
- param Obje2
- type Obje2
IntPatch_Polyhedron
- rtype
None* Constructs and computes the self interference of a Polyhedron.
- param Obje
- type Obje
IntPatch_Polyhedron
- rtype
None
-
Perform
()¶ - Computes the interference between the two Polyhedra.
- param Obje1
- type Obje1
IntPatch_Polyhedron
- param Obje2
- type Obje2
IntPatch_Polyhedron
- rtype
None* Computes the self interference of a Polyhedron.
- param Obje
- type Obje
IntPatch_Polyhedron
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntPatch_Intersection
(*args)¶ Bases:
object
- Return type
None:param S1: :type S1: Adaptor3d_HSurface :param D1: :type D1: Adaptor3d_TopolTool :param S2: :type S2: Adaptor3d_HSurface :param D2: :type D2: Adaptor3d_TopolTool :param TolArc: :type TolArc: float :param TolTang: :type TolTang: float :rtype: None:param S1: :type S1: Adaptor3d_HSurface :param D1: :type D1: Adaptor3d_TopolTool :param TolArc: :type TolArc: float :param TolTang: :type TolTang: float :rtype: None
-
Dump
()¶ - Dump of each result line. Mode for more accurate dumps.
- param Mode
- type Mode
int
- param S1
- type S1
Adaptor3d_HSurface
- param D1
- type D1
Adaptor3d_TopolTool
- param S2
- type S2
Adaptor3d_HSurface
- param D2
- type D2
Adaptor3d_TopolTool
- rtype
None
-
IsDone
()¶ - Returns True if the calculus was successful.
- rtype
bool
-
IsEmpty
()¶ - Returns true if the is no intersection.
- rtype
bool
-
Line
()¶ - Returns the line of range Index. An exception is raised if Index<=0 or Index>NbLine.
- param Index
- type Index
int
- rtype
opencascade::handle<IntPatch_Line>
-
NbLines
()¶ - Returns the number of intersection lines.
- rtype
int
-
NbPnts
()¶ - Returns the number of ‘single’ points.
- rtype
int
-
OppositeFaces
()¶ - Returns True when the TangentFaces returns True and the normal vectors evaluated at a point on the first and the second surface are opposite. The exception DomainError is raised if TangentFaces returns False.
- rtype
bool
-
Perform
()¶ - Flag theIsReqToKeepRLine has been entered only for compatibility with TopOpeBRep package. It shall be deleted after deleting TopOpeBRep. When intersection result returns IntPatch_RLine and another IntPatch_Line (not restriction) we (in case of theIsReqToKeepRLine==True) will always keep both lines even if they are coincided. Flag theIsReqToPostWLProc has been entered only for compatibility with TopOpeBRep package. It shall be deleted after deleting TopOpeBRep. If theIsReqToPostWLProc == False, then we will work with Walking-line obtained after intersection algorithm directly (wothout any post-processing).
- param S1
- type S1
Adaptor3d_HSurface
- param D1
- type D1
Adaptor3d_TopolTool
- param S2
- type S2
Adaptor3d_HSurface
- param D2
- type D2
Adaptor3d_TopolTool
- param TolArc
- type TolArc
float
- param TolTang
- type TolTang
float
- param isGeomInt
default value is Standard_True
- type isGeomInt
bool
- param theIsReqToKeepRLine
default value is Standard_False
- type theIsReqToKeepRLine
bool
- param theIsReqToPostWLProc
default value is Standard_True
- type theIsReqToPostWLProc
bool
- rtype
None* If isGeomInt == Standard_False, then method Param-Param intersection will be used. Flag theIsReqToKeepRLine has been entered only for compatibility with TopOpeBRep package. It shall be deleted after deleting TopOpeBRep. When intersection result returns IntPatch_RLine and another IntPatch_Line (not restriction) we (in case of theIsReqToKeepRLine==True) will always keep both lines even if they are coincided. Flag theIsReqToPostWLProc has been entered only for compatibility with TopOpeBRep package. It shall be deleted after deleting TopOpeBRep. If theIsReqToPostWLProc == False, then we will work with Walking-line obtained after intersection algorithm directly (without any post-processing).
- param S1
- type S1
Adaptor3d_HSurface
- param D1
- type D1
Adaptor3d_TopolTool
- param S2
- type S2
Adaptor3d_HSurface
- param D2
- type D2
Adaptor3d_TopolTool
- param TolArc
- type TolArc
float
- param TolTang
- type TolTang
float
- param LOfPnts
- type LOfPnts
IntSurf_ListOfPntOn2S
- param isGeomInt
default value is Standard_True
- type isGeomInt
bool
- param theIsReqToKeepRLine
default value is Standard_False
- type theIsReqToKeepRLine
bool
- param theIsReqToPostWLProc
default value is Standard_True
- type theIsReqToPostWLProc
bool
- rtype
None* Perform with start point
- param S1
- type S1
Adaptor3d_HSurface
- param D1
- type D1
Adaptor3d_TopolTool
- param S2
- type S2
Adaptor3d_HSurface
- param D2
- type D2
Adaptor3d_TopolTool
- param U1
- type U1
float
- param V1
- type V1
float
- param U2
- type U2
float
- param V2
- type V2
float
- param TolArc
- type TolArc
float
- param TolTang
- type TolTang
float
- rtype
None* Uses for finding self-intersected surfaces.
- param S1
- type S1
Adaptor3d_HSurface
- param D1
- type D1
Adaptor3d_TopolTool
- param TolArc
- type TolArc
float
- param TolTang
- type TolTang
float
- rtype
None
-
Point
()¶ - Returns the point of range Index. An exception is raised if Index<=0 or Index>NbPnt.
- param Index
- type Index
int
- rtype
IntPatch_Point
-
SequenceOfLine
()¶ - Return type
-
SetTolerances
()¶ - Set the tolerances used by the algorithms: — Implicit - Parametric — Parametric - Parametric — Implicit - Implicit //! TolArc is used to compute the intersections between the restrictions of a surface and a walking line. //! TolTang is used to compute the points on a walking line, and in geometric algorithms. //! Fleche is a parameter used in the walking algorithms to provide small curvatures on a line. //! UVMaxStep is a parameter used in the walking algorithms to compute the distance between to points in their respective parametric spaces.
- param TolArc
- type TolArc
float
- param TolTang
- type TolTang
float
- param UVMaxStep
- type UVMaxStep
float
- param Fleche
- type Fleche
float
- rtype
None
-
TangentFaces
()¶ - Returns True if the two patches are considered as entirely tangent, i-e every restriction arc of one patch is inside the geometric base of the other patch.
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
IntPatch_Line
(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
ArcType
()¶ - Returns the type of geometry 3d (Line, Circle, Parabola, Hyperbola, Ellipse, Analytic, Walking, Restriction)
- rtype
IntPatch_IType
-
static
DownCast
(t)¶
-
IsTangent
()¶ - Returns True if the intersection is a line of tangency between the 2 patches.
- rtype
bool
-
IsUIsoOnS1
()¶ - Returns True if the intersection is a U isoparametric curve on the first patch.
- rtype
bool
-
IsUIsoOnS2
()¶ - Returns True if the intersection is a U isoparametric curve on the second patch.
- rtype
bool
-
IsVIsoOnS1
()¶ - Returns True if the intersection is a V isoparametric curve on the first patch.
- rtype
bool
-
IsVIsoOnS2
()¶ - Returns True if the intersection is a V isoparametric curve on the second patch.
- rtype
bool
-
SetValue
()¶ - To set the values returned by IsUIsoS1,…. The default values are False.
- param Uiso1
- type Uiso1
bool
- param Viso1
- type Viso1
bool
- param Uiso2
- type Uiso2
bool
- param Viso2
- type Viso2
bool
- rtype
None
-
SituationS1
()¶ - Returns the situation (INSIDE/OUTSIDE/UNKNOWN) of the first patch compared to the second one, when TransitionOnS1 or TransitionOnS2 returns TOUCH. Otherwise, an exception is raised.
- rtype
IntSurf_Situation
-
SituationS2
()¶ - Returns the situation (INSIDE/OUTSIDE/UNKNOWN) of the second patch compared to the first one, when TransitionOnS1 or TransitionOnS2 returns TOUCH. Otherwise, an exception is raised.
- rtype
IntSurf_Situation
-
TransitionOnS1
()¶ - Returns the type of the transition of the line for the first surface. The transition is ‘constant’ along the line. The transition is IN if the line is oriented in such a way that the system of vector (N1,N2,T) is right-handed, where N1 is the normal to the first surface at a point P, N2 is the normal to the second surface at a point P, T is the tangent to the intersection line at P. If the system of vector is left-handed, the transition is OUT. When N1 and N2 are colinear all along the intersection line, the transition will be - TOUCH, if it is possible to use the 2nd derivatives to determine the position of one surafce compared to the other (see Situation) - UNDECIDED otherwise. //! If one of the transition is TOUCH or UNDECIDED, the other one has got the same value.
- rtype
IntSurf_TypeTrans
-
TransitionOnS2
()¶ - Returns the type of the transition of the line for the second surface. The transition is ‘constant’ along the line.
- rtype
IntSurf_TypeTrans
-
property
thisown
¶ The membership flag
-
class
IntPatch_LineConstructor
(*args)¶ Bases:
object
- Parameters
mode –
- type mode
int
- rtype
None
-
Line
()¶ - Parameters
index –
- type index
int
- rtype
opencascade::handle<IntPatch_Line>
-
Perform
()¶ - Parameters
SL –
- type SL
IntPatch_SequenceOfLine
- param L
- type L
IntPatch_Line
- param S1
- type S1
Adaptor3d_HSurface
- param D1
- type D1
Adaptor3d_TopolTool
- param S2
- type S2
Adaptor3d_HSurface
- param D2
- type D2
Adaptor3d_TopolTool
- param Tol
- type Tol
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntPatch_Point
(*args)¶ Bases:
object
- Empty constructor.
- rtype
None
-
ArcOnS1
()¶ - Returns the arc of restriction containing the vertex. The exception DomainError is raised if IsOnDomS1 returns False.
- rtype
opencascade::handle<Adaptor2d_HCurve2d>
-
ArcOnS2
()¶ - Returns the arc of restriction containing the vertex. The exception DomainError is raised if IsOnDomS2 returns False.
- rtype
opencascade::handle<Adaptor2d_HCurve2d>
-
IsMultiple
()¶ - Returns True if the point belongs to several intersection lines.
- rtype
bool
-
IsOnDomS1
()¶ - Returns True if the point is on a boundary of the domain of the first patch.
- rtype
bool
-
IsOnDomS2
()¶ - Returns True if the point is on a boundary of the domain of the second patch.
- rtype
bool
-
IsTangencyPoint
()¶ - Returns True if the Point is a tangency point between the surfaces. If the Point is on one of the domain (IsOnDomS1 returns True or IsOnDomS2 returns True), an exception is raised.
- rtype
bool
-
IsVertexOnS1
()¶ - Returns True if the point is a vertex on the initial restriction facet of the first surface.
- rtype
bool
-
IsVertexOnS2
()¶ - Returns True if the point is a vertex on the initial restriction facet of the first surface.
- rtype
bool
-
ParameterOnArc1
()¶ - Returns the parameter of the point on the arc returned by the method ArcOnS2. The exception DomainError is raised if IsOnDomS1 returns False.
- rtype
float
-
ParameterOnArc2
()¶ - Returns the parameter of the point on the arc returned by the method ArcOnS2. The exception DomainError is raised if IsOnDomS2 returns False.
- rtype
float
-
ParameterOnLine
()¶ - This method returns the parameter of the point on the intersection line. If the points does not belong to an intersection line, the value returned does not have any sens.
- rtype
float
-
Parameters
()¶ - Returns the parameters on the first and on the second surface of the point.
- param U1
- type U1
float
- param V1
- type V1
float
- param U2
- type U2
float
- param V2
- type V2
float
- rtype
None
-
ParametersOnS1
()¶ - Returns the parameters on the first surface of the point.
- param U1
- type U1
float
- param V1
- type V1
float
- rtype
None
-
ParametersOnS2
()¶ - Returns the parameters on the second surface of the point.
- param U2
- type U2
float
- param V2
- type V2
float
- rtype
None
-
PntOn2S
()¶ - Returns the PntOn2S (geometric Point and the parameters)
- rtype
IntSurf_PntOn2S
-
SetArc
()¶ - Sets the values of a point which is on one of the domain, when both surfaces are implicit ones. If OnFirst is True, the point is on the domain of the first patch, otherwise the point is on the domain of the second surface.
- param OnFirst
- type OnFirst
bool
- param A
- type A
Adaptor2d_HCurve2d
- param Param
- type Param
float
- param TLine
- type TLine
IntSurf_Transition
- param TArc
- type TArc
IntSurf_Transition
- rtype
None
-
SetMultiple
()¶ - Sets (or unsets) the point as a point on several intersection line.
- param IsMult
- type IsMult
bool
- rtype
None
-
SetParameter
()¶ - Set the value of the parameter on the intersection line.
- param Para
- type Para
float
- rtype
None
-
SetParameters
()¶ - Sets the values of the parameters of the point on each surface.
- param U1
- type U1
float
- param V1
- type V1
float
- param U2
- type U2
float
- param V2
- type V2
float
- rtype
None
-
SetTolerance
()¶ - Parameters
Tol –
- type Tol
float
- rtype
None
-
SetValue
()¶ - Sets the values of a point which is on no domain, when both surfaces are implicit ones. If Tangent is True, the point is a point of tangency between the surfaces.
- param Pt
- type Pt
gp_Pnt
- param Tol
- type Tol
float
- param Tangent
- type Tangent
bool
- rtype
None:param Pt:
- type Pt
gp_Pnt
- rtype
None* Sets the value of <pt> member
- param thePOn2S
- type thePOn2S
IntSurf_PntOn2S
- rtype
None
-
SetVertex
()¶ - Sets the values of a point which is a vertex on the initial facet of restriction of one of the surface. If OnFirst is True, the point is on the domain of the first patch, otherwise the point is on the domain of the second surface.
- param OnFirst
- type OnFirst
bool
- param V
- type V
Adaptor3d_HVertex
- rtype
None
-
Tolerance
()¶ - This method returns the fuzziness on the point.
- rtype
float
-
TransitionLineArc1
()¶ - Returns the transition of the point on the intersection line with the arc on S1. The exception DomainError is raised if IsOnDomS1 returns False.
- rtype
IntSurf_Transition
-
TransitionLineArc2
()¶ - Returns the transition of the point on the intersection line with the arc on S2. The exception DomainError is raised if IsOnDomS2 returns False.
- rtype
IntSurf_Transition
-
TransitionOnS1
()¶ - Returns the transition between the intersection line returned by the method Line and the arc on S1 returned by ArcOnS1(). The exception DomainError is raised if IsOnDomS1 returns False.
- rtype
IntSurf_Transition
-
TransitionOnS2
()¶ - Returns the transition between the intersection line returned by the method Line and the arc on S2 returned by ArcOnS2. The exception DomainError is raised if IsOnDomS2 returns False.
- rtype
IntSurf_Transition
-
Value
()¶ - Returns the intersection point (geometric information).
- rtype
gp_Pnt
-
VertexOnS1
()¶ - Returns the information about the point when it is on the domain of the first patch, i-e when the function IsVertexOnS1 returns True. Otherwise, an exception is raised.
- rtype
opencascade::handle<Adaptor3d_HVertex>
-
VertexOnS2
()¶ - Returns the information about the point when it is on the domain of the second patch, i-e when the function IsVertexOnS2 returns True. Otherwise, an exception is raised.
- rtype
opencascade::handle<Adaptor3d_HVertex>
-
property
thisown
¶ The membership flag
-
class
IntPatch_PointLine
(*args, **kwargs)¶ Bases:
OCC.Core.IntPatch.IntPatch_Line
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
AddVertex
()¶ - Adds a vertex in the list. If theIsPrepend == True the new vertex will be added before the first element of vertices sequence. Otherwise, to the end of the sequence
- param Pnt
- type Pnt
IntPatch_Point
- param theIsPrepend
default value is Standard_False
- type theIsPrepend
bool
- rtype
void
-
ChangeVertex
()¶ - Returns the vertex of range Index on the line.
- param Index
- type Index
int
- rtype
IntPatch_Point
-
ClearVertexes
()¶ - Removes vertices from the line
- rtype
void
-
static
CurvatureRadiusOfIntersLine
()¶ - Returns the radius of curvature of the intersection line in given point. Returns negative value if computation is not possible.
- param theS1
- type theS1
Adaptor3d_HSurface
- param theS2
- type theS2
Adaptor3d_HSurface
- param theUVPoint
- type theUVPoint
IntSurf_PntOn2S
- rtype
float
-
Curve
()¶ - Returns set of intersection points
- rtype
opencascade::handle<IntSurf_LineOn2S>
-
static
DownCast
(t)¶
-
IsOutBox
()¶ - Returns True if P is out of the box built from 3D-points.
- param P
- type P
gp_Pnt
- rtype
bool
-
IsOutSurf1Box
()¶ - Returns True if P1 is out of the box built from the points on 1st surface
- param P1
- type P1
gp_Pnt2d
- rtype
bool
-
IsOutSurf2Box
()¶ - Returns True if P2 is out of the box built from the points on 2nd surface
- param P2
- type P2
gp_Pnt2d
- rtype
bool
-
NbPnts
()¶ - Returns the number of intersection points.
- rtype
int
-
NbVertex
()¶ - Returns number of vertices (IntPatch_Point) of the line
- rtype
int
-
Point
()¶ - Returns the intersection point of range Index.
- param Index
- type Index
int
- rtype
IntSurf_PntOn2S
-
RemoveVertex
()¶ - Removes single vertex from the line
- param theIndex
- type theIndex
int
- rtype
void
-
Vertex
()¶ - Returns the vertex of range Index on the line.
- param Index
- type Index
int
- rtype
IntPatch_Point
-
property
thisown
¶ The membership flag
-
class
IntPatch_PolyArc
(*args)¶ Bases:
OCC.Core.IntPatch.IntPatch_Polygo
- Creates the polygon of the arc A on the surface S. The arc is limited by the parameters Pfirst and Plast. None of these parameters can be infinite.
- param A
- type A
Adaptor2d_HCurve2d
- param NbSample
- type NbSample
int
- param Pfirst
- type Pfirst
float
- param Plast
- type Plast
float
- param BoxOtherPolygon
- type BoxOtherPolygon
Bnd_Box2d
- rtype
None
-
Parameter
()¶ - Parameters
Index –
- type Index
int
- rtype
float
-
SetOffset
()¶ - Parameters
OffsetX –
- type OffsetX
float
- param OffsetY
- type OffsetY
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntPatch_PolyLine
(*args)¶ Bases:
OCC.Core.IntPatch.IntPatch_Polygo
- Return type
None:param InitDefle: :type InitDefle: float :rtype: None
-
SetRLine
()¶ - Parameters
OnFirst –
- type OnFirst
bool
- param Line
- type Line
IntPatch_RLine
- rtype
None
-
SetWLine
()¶ - Parameters
OnFirst –
- type OnFirst
bool
- param Line
- type Line
IntPatch_WLine
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntPatch_Polygo
(*args, **kwargs)¶ Bases:
OCC.Core.Intf.Intf_Polygon2d
-
Point
()¶ - Parameters
Index –
- type Index
int
- rtype
gp_Pnt2d
-
property
thisown
¶ The membership flag
-
-
class
IntPatch_PolyhedronTool
¶ Bases:
object
-
static
Bounding
()¶ - Give the bounding box of the Polyhedron.
- param thePolyh
- type thePolyh
IntPatch_Polyhedron
- rtype
Bnd_Box
-
static
ComponentsBounding
()¶ - Give the array of boxes. The box <n> corresponding to the triangle <n>.
- param thePolyh
- type thePolyh
IntPatch_Polyhedron
- rtype
opencascade::handle<Bnd_HArray1OfBox>
-
static
DeflectionOverEstimation
()¶ - Give the tolerance of the polygon.
- param thePolyh
- type thePolyh
IntPatch_Polyhedron
- rtype
float
-
static
NbTriangles
()¶ - Give the number of triangles in this polyedral surface.
- param thePolyh
- type thePolyh
IntPatch_Polyhedron
- rtype
int
-
static
Point
()¶ - Give the point of index i in the polyedral surface.
- param thePolyh
- type thePolyh
IntPatch_Polyhedron
- param Index
- type Index
int
- rtype
gp_Pnt
-
static
TriConnex
()¶ - Gives the addresse Tricon of the triangle connexe to the triangle of address Triang by the edge Pivot Pedge and the third point of this connexe triangle. When we are on a free edge TriCon==0 but the function return the value of the triangle in the other side of Pivot on the free edge. Used to turn around a vertex.
- param thePolyh
- type thePolyh
IntPatch_Polyhedron
- param Triang
- type Triang
int
- param Pivot
- type Pivot
int
- param Pedge
- type Pedge
int
- param TriCon
- type TriCon
int
- param OtherP
- type OtherP
int
- rtype
int
-
static
Triangle
()¶ - Give the indices of the 3 points of the triangle of address Index in the Polyhedron.
- param thePolyh
- type thePolyh
IntPatch_Polyhedron
- param Index
- type Index
int
- param P1
- type P1
int
- param P2
- type P2
int
- param P3
- type P3
int
- rtype
None
-
property
thisown
¶ The membership flag
-
static
-
class
IntPatch_PrmPrmIntersection
(*args)¶ Bases:
object
- Empty Constructor
- rtype
None
-
CodeReject
()¶ - Parameters
x1 –
- type x1
float
- param y1
- type y1
float
- param z1
- type z1
float
- param x2
- type x2
float
- param y2
- type y2
float
- param z2
- type z2
float
- param x3
- type x3
float
- param y3
- type y3
float
- param z3
- type z3
float
- rtype
int
-
DansGrille
()¶ - Parameters
t –
- type t
int
- rtype
int
-
GrilleInteger
()¶ - Parameters
ix –
- type ix
int
- param iy
- type iy
int
- param iz
- type iz
int
- rtype
int
-
IntegerGrille
()¶ - Parameters
t –
- type t
int
- param ix
- type ix
int
- param iy
- type iy
int
- param iz
- type iz
int
- rtype
None
-
IsDone
()¶ - Returns true if the calculus was succesfull.
- rtype
bool
-
IsEmpty
()¶ - Returns true if the is no intersection.
- rtype
bool
-
Line
()¶ - Returns the line of range Index. An exception is raised if Index<=0 or Index>NbLine.
- param Index
- type Index
int
- rtype
opencascade::handle<IntPatch_Line>
-
NbLines
()¶ - Returns the number of intersection lines.
- rtype
int
-
NewLine
()¶ - Computes about <NbPoints> Intersection Points on the Line <IndexLine> between the Points of Index <LowPoint> and <HighPoint>. //! All the points of the line of index <IndexLine> with an index between <LowPoint> and <HighPoint> are in the returned line. New Points are inserted between existing points if those points are not too closed. //! An exception is raised if Index<=0 or Index>NbLine. or if IsDone returns False
- param Caro1
- type Caro1
Adaptor3d_HSurface
- param Caro2
- type Caro2
Adaptor3d_HSurface
- param IndexLine
- type IndexLine
int
- param LowPoint
- type LowPoint
int
- param HighPoint
- type HighPoint
int
- param NbPoints
- type NbPoints
int
- rtype
opencascade::handle<IntPatch_Line>
-
Perform
()¶ - Performs the intersection between <Caro1> and <Caro2>. Associated Polyhedrons <Polyhedron1> and <Polyhedron2> are given.
- param Caro1
- type Caro1
Adaptor3d_HSurface
- param Polyhedron1
- type Polyhedron1
IntPatch_Polyhedron
- param Domain1
- type Domain1
Adaptor3d_TopolTool
- param Caro2
- type Caro2
Adaptor3d_HSurface
- param Polyhedron2
- type Polyhedron2
IntPatch_Polyhedron
- param Domain2
- type Domain2
Adaptor3d_TopolTool
- param TolTangency
- type TolTangency
float
- param Epsilon
- type Epsilon
float
- param Deflection
- type Deflection
float
- param Increment
- type Increment
float
- rtype
None:param Caro1:
- type Caro1
Adaptor3d_HSurface
- param Polyhedron1
- type Polyhedron1
IntPatch_Polyhedron
- param Domain1
- type Domain1
Adaptor3d_TopolTool
- param TolTangency
- type TolTangency
float
- param Epsilon
- type Epsilon
float
- param Deflection
- type Deflection
float
- param Increment
- type Increment
float
- rtype
None* Performs the intersection between <Caro1> and <Caro2>. The method computes the polyhedron on each surface.
- param Caro1
- type Caro1
Adaptor3d_HSurface
- param Domain1
- type Domain1
Adaptor3d_TopolTool
- param Caro2
- type Caro2
Adaptor3d_HSurface
- param Domain2
- type Domain2
Adaptor3d_TopolTool
- param TolTangency
- type TolTangency
float
- param Epsilon
- type Epsilon
float
- param Deflection
- type Deflection
float
- param Increment
- type Increment
float
- param ClearFlag
default value is Standard_True
- type ClearFlag
bool
- rtype
None* Performs the intersection between <Caro1> and <Caro2>. The method computes the polyhedron on each surface.
- param Caro1
- type Caro1
Adaptor3d_HSurface
- param Domain1
- type Domain1
Adaptor3d_TopolTool
- param Caro2
- type Caro2
Adaptor3d_HSurface
- param Domain2
- type Domain2
Adaptor3d_TopolTool
- param TolTangency
- type TolTangency
float
- param Epsilon
- type Epsilon
float
- param Deflection
- type Deflection
float
- param Increment
- type Increment
float
- param ListOfPnts
- type ListOfPnts
IntSurf_ListOfPntOn2S
- rtype
None* Performs the intersection between <Caro1> and <Caro2>. The method computes the polyhedron on each surface.
- param Caro1
- type Caro1
Adaptor3d_HSurface
- param Domain1
- type Domain1
Adaptor3d_TopolTool
- param Caro2
- type Caro2
Adaptor3d_HSurface
- param Domain2
- type Domain2
Adaptor3d_TopolTool
- param U1
- type U1
float
- param V1
- type V1
float
- param U2
- type U2
float
- param V2
- type V2
float
- param TolTangency
- type TolTangency
float
- param Epsilon
- type Epsilon
float
- param Deflection
- type Deflection
float
- param Increment
- type Increment
float
- rtype
None* Performs the intersection between <Caro1> and <Caro2>. The method computes the polyhedron on each surface.
- param Caro1
- type Caro1
Adaptor3d_HSurface
- param Domain1
- type Domain1
Adaptor3d_TopolTool
- param TolTangency
- type TolTangency
float
- param Epsilon
- type Epsilon
float
- param Deflection
- type Deflection
float
- param Increment
- type Increment
float
- rtype
None* Performs the intersection between <Caro1> and <Caro2>. //! The polyhedron which approximates <Caro2>, <Polyhedron2> is given. The other one is computed.
- param Caro1
- type Caro1
Adaptor3d_HSurface
- param Domain1
- type Domain1
Adaptor3d_TopolTool
- param Caro2
- type Caro2
Adaptor3d_HSurface
- param Polyhedron2
- type Polyhedron2
IntPatch_Polyhedron
- param Domain2
- type Domain2
Adaptor3d_TopolTool
- param TolTangency
- type TolTangency
float
- param Epsilon
- type Epsilon
float
- param Deflection
- type Deflection
float
- param Increment
- type Increment
float
- rtype
None* Performs the intersection between <Caro1> and <Caro2>. //! The polyhedron which approximates <Caro1>, <Polyhedron1> is given. The other one is computed.
- param Caro1
- type Caro1
Adaptor3d_HSurface
- param Polyhedron1
- type Polyhedron1
IntPatch_Polyhedron
- param Domain1
- type Domain1
Adaptor3d_TopolTool
- param Caro2
- type Caro2
Adaptor3d_HSurface
- param Domain2
- type Domain2
Adaptor3d_TopolTool
- param TolTangency
- type TolTangency
float
- param Epsilon
- type Epsilon
float
- param Deflection
- type Deflection
float
- param Increment
- type Increment
float
- rtype
None
-
PointDepart
()¶ - Parameters
LineOn2S –
- type LineOn2S
IntSurf_LineOn2S
- param S1
- type S1
Adaptor3d_HSurface
- param SU1
- type SU1
int
- param SV1
- type SV1
int
- param S2
- type S2
Adaptor3d_HSurface
- param SU2
- type SU2
int
- param SV2
- type SV2
int
- rtype
None
-
Remplit
()¶ - Parameters
a –
- type a
int
- param b
- type b
int
- param c
- type c
int
- param Map
- type Map
IntPatch_PrmPrmIntersection_T3Bits
- rtype
None
-
RemplitLin
()¶ - Parameters
x1 –
- type x1
int
- param y1
- type y1
int
- param z1
- type z1
int
- param x2
- type x2
int
- param y2
- type y2
int
- param z2
- type z2
int
- param Map
- type Map
IntPatch_PrmPrmIntersection_T3Bits
- rtype
None
-
RemplitTri
()¶ - Parameters
x1 –
- type x1
int
- param y1
- type y1
int
- param z1
- type z1
int
- param x2
- type x2
int
- param y2
- type y2
int
- param z2
- type z2
int
- param x3
- type x3
int
- param y3
- type y3
int
- param z3
- type z3
int
- param Map
- type Map
IntPatch_PrmPrmIntersection_T3Bits
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntPatch_PrmPrmIntersection_T3Bits
(*args)¶ Bases:
object
- Parameters
size –
- type size
int
- rtype
None
-
Add
()¶ - Parameters
t –
- type t
int
- rtype
None
-
And
()¶ - Parameters
Oth –
- type Oth
IntPatch_PrmPrmIntersection_T3Bits
- param indiceprecedent
- type indiceprecedent
int
- rtype
int
-
Raz
()¶ - Parameters
t –
- type t
int
- rtype
None
-
Val
()¶ - Parameters
t –
- type t
int
- rtype
int
-
property
thisown
¶ The membership flag
-
class
IntPatch_RLine
(*args)¶ Bases:
OCC.Core.IntPatch.IntPatch_PointLine
- Creates a restriction as an intersection line when the transitions are In or Out.
- param Tang
- type Tang
bool
- param Trans1
- type Trans1
IntSurf_TypeTrans
- param Trans2
- type Trans2
IntSurf_TypeTrans
- rtype
None* Creates a restriction as an intersection line when the transitions are Touch.
- param Tang
- type Tang
bool
- param Situ1
- type Situ1
IntSurf_Situation
- param Situ2
- type Situ2
IntSurf_Situation
- rtype
None* Creates a restriction as an intersection line when the transitions are Undecided.
- param Tang
- type Tang
bool
- rtype
None
-
Add
()¶ - Parameters
L –
- type L
IntSurf_LineOn2S
- rtype
None
-
ArcOnS1
()¶ - Returns the concerned arc.
- rtype
opencascade::handle<Adaptor2d_HCurve2d>
-
ArcOnS2
()¶ - Returns the concerned arc.
- rtype
opencascade::handle<Adaptor2d_HCurve2d>
-
ChangeVertex
()¶ - Returns the vertex of range Index on the line.
- param Index
- type Index
int
- rtype
IntPatch_Point
-
ComputeVertexParameters
()¶ - Set the parameters of all the vertex on the line. if a vertex is already in the line, its parameter is modified else a new point in the line is inserted.
- param Tol
- type Tol
float
- rtype
None
-
static
DownCast
(t)¶
-
Dump
()¶ - if (theMode == 0) then prints the information about WLine if (theMode == 1) then prints the list of 3d-points if (theMode == 2) then prints the list of 2d-points on the 1st surface Otherwise, prints list of 2d-points on the 2nd surface
- param theMode
- type theMode
int
- rtype
None
-
FirstPoint
()¶ - Returns the IntPoint corresponding to the FirstPoint. An exception is raised when HasFirstPoint returns False.
- rtype
IntPatch_Point
-
HasFirstPoint
()¶ - Returns True if the line has a known First point. This point is given by the method FirstPoint().
- rtype
bool
-
HasLastPoint
()¶ - Returns True if the line has a known Last point. This point is given by the method LastPoint().
- rtype
bool
-
IsArcOnS1
()¶ - Returns True if the intersection is on the domain of the first patch. Returns False if the intersection is on the domain of the second patch.
- rtype
bool
-
IsArcOnS2
()¶ - Returns True if the intersection is on the domain of the first patch. Returns False if the intersection is on the domain of the second patch.
- rtype
bool
-
LastPoint
()¶ - Returns the IntPoint corresponding to the LastPoint. An exception is raised when HasLastPoint returns False.
- rtype
IntPatch_Point
-
ParamOnS1
()¶ - Parameters
p1 –
- type p1
float
- param p2
- type p2
float
- rtype
None
-
ParamOnS2
()¶ - Parameters
p1 –
- type p1
float
- param p2
- type p2
float
- rtype
None
-
Replace
()¶ - Replaces the element of range Index in the list of points.
- param Index
- type Index
int
- param Pnt
- type Pnt
IntPatch_Point
- rtype
None
-
SetArcOnS1
()¶ - Parameters
A –
- type A
Adaptor2d_HCurve2d
- rtype
None
-
SetArcOnS2
()¶ - Parameters
A –
- type A
Adaptor2d_HCurve2d
- rtype
None
-
SetCurve
()¶ - Parameters
theNewCurve –
- type theNewCurve
IntSurf_LineOn2S
- rtype
None
-
SetFirstPoint
()¶ - Parameters
IndFirst –
- type IndFirst
int
- rtype
None
-
SetLastPoint
()¶ - Parameters
IndLast –
- type IndLast
int
- rtype
None
-
SetPoint
()¶ - Set the Point of index <Index> in the LineOn2S
- param Index
- type Index
int
- param Pnt
- type Pnt
IntPatch_Point
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntPatch_RstInt
¶ Bases:
object
-
static
PutVertexOnLine
()¶ - Parameters
L –
- type L
IntPatch_Line
- param Surf
- type Surf
Adaptor3d_HSurface
- param Domain
- type Domain
Adaptor3d_TopolTool
- param OtherSurf
- type OtherSurf
Adaptor3d_HSurface
- param OnFirst
- type OnFirst
bool
- param Tol
- type Tol
float
- rtype
void
-
property
thisown
¶ The membership flag
-
static
-
class
IntPatch_SequenceOfIWLineOfTheIWalking
(*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
IntPatch_SequenceOfLine
(*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
IntPatch_SequenceOfPathPointOfTheSOnBounds
(*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
IntPatch_SequenceOfPoint
(*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
IntPatch_SequenceOfSegmentOfTheSOnBounds
(*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
IntPatch_SpecialPoints
¶ Bases:
object
-
static
AddCrossUVIsoPoint
()¶ - Adds the point defined as intersection of two isolines (U = 0 and V = 0) on theQSurf in theLine. theRefPt is used to correct adjusting parameters. If theIsReversed is True then theQSurf correspond to the second (otherwise, the first) surface while forming intersection point IntSurf_PntOn2S.
- param theQSurf
- type theQSurf
Adaptor3d_HSurface
- param thePSurf
- type thePSurf
Adaptor3d_HSurface
- param theRefPt
- type theRefPt
IntSurf_PntOn2S
- param theTol3d
- type theTol3d
float
- param theAddedPoint
- type theAddedPoint
IntSurf_PntOn2S
- param theIsReversed
default value is Standard_False
- type theIsReversed
bool
- rtype
bool
-
static
AddPointOnUorVIso
()¶ - Adds the point lain strictly in the isoline U = 0 or V = 0 of theQSurf, in theLine. theRefPt is used to correct adjusting parameters. If theIsReversed is True then theQSurf corresponds to the second (otherwise, the first) surface while forming intersection point IntSurf_PntOn2S. All math_Vector-objects must be filled as follows: [1] - U-parameter of thePSurf; [2] - V-parameter of thePSurf; [3] - U- (if V-isoline is considered) or V-parameter (if U-isoline is considered) of theQSurf.
- param theQSurf
- type theQSurf
Adaptor3d_HSurface
- param thePSurf
- type thePSurf
Adaptor3d_HSurface
- param theRefPt
- type theRefPt
IntSurf_PntOn2S
- param theIsU
- type theIsU
bool
- param theIsoParameter
- type theIsoParameter
float
- param theToler
- type theToler
math_Vector
- param theInitPoint
- type theInitPoint
math_Vector
- param theInfBound
- type theInfBound
math_Vector
- param theSupBound
- type theSupBound
math_Vector
- param theAddedPoint
- type theAddedPoint
IntSurf_PntOn2S
- param theIsReversed
default value is Standard_False
- type theIsReversed
bool
- rtype
bool
-
static
AddSingularPole
()¶ - Computes the pole of sphere to add it in the intersection line. Stores the result in theAddedPoint variable (does not add in the line). At that, cone and sphere (with singularity) must be set in theQSurf parameter. By default (if theIsReversed == False), theQSurf is the first surface of the Walking line. If it is not, theIsReversed parameter must be set to True. theIsReqRefCheck is True if and only if 3D-point of theRefPt must be pole or apex for check (e.g. if it is vertex). thePtIso is the reference point for obtaining isoline where must be placed the Apex/Pole. //! ATTENTION!!! theVertex must be initialized before calling the method .
- param theQSurf
- type theQSurf
Adaptor3d_HSurface
- param thePSurf
- type thePSurf
Adaptor3d_HSurface
- param thePtIso
- type thePtIso
IntSurf_PntOn2S
- param theVertex
- type theVertex
IntPatch_Point
- param theAddedPoint
- type theAddedPoint
IntSurf_PntOn2S
- param theIsReversed
default value is Standard_False
- type theIsReversed
bool
- param theIsReqRefCheck
default value is Standard_False
- type theIsReqRefCheck
bool
- rtype
bool
-
static
AdjustPointAndVertex
()¶ - Sets theNewPoint parameters in 2D-space the closest to theRefPoint with help of adding/subtracting corresponding periods. theArrPeriods must be filled as follows: {<U-period of 1st surface>, <V-period of 1st surface>, <U-period of 2nd surface>, <V-period of 2nd surface>}. If theVertex != 0 then its parameters will be filled as corresponding parameters of theNewPoint. //! ATTENTION!!! theNewPoint is not only Output parameter. It is Input/Output one. I.e. theNewPoint is reference point together with theRefPt.
- param theRefPoint
- type theRefPoint
IntSurf_PntOn2S
- param theArrPeriods
- type theArrPeriods
float
- param theNewPoint
- type theNewPoint
IntSurf_PntOn2S
- param theVertex
default value is 0
- type theVertex
IntPatch_Point *
- rtype
void
-
static
ContinueAfterSpecialPoint
()¶ - Special point has already been added in the line. Now, we need in correct prolongation of the line or in start new line. This function returns new point. //! ATTENTION!!! theNewPoint is not only Output parameter. It is Input/Output one. I.e. theNewPoint is reference point together with theRefPt.
- param theQSurf
- type theQSurf
Adaptor3d_HSurface
- param thePSurf
- type thePSurf
Adaptor3d_HSurface
- param theRefPt
- type theRefPt
IntSurf_PntOn2S
- param theSPType
- type theSPType
IntPatch_SpecPntType
- param theTol2D
- type theTol2D
float
- param theNewPoint
- type theNewPoint
IntSurf_PntOn2S
- param theIsReversed
default value is Standard_False
- type theIsReversed
bool
- rtype
bool
-
property
thisown
¶ The membership flag
-
static
-
class
IntPatch_TheIWLineOfTheIWalking
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Parameters
theAllocator – default value is 0 :type theAllocator: IntSurf_Allocator :rtype: None
-
AddIndexPassing
()¶ - associer a l ‘indice du point sur la ligne l’indice du point passant dans l’iterateur de depart
- param Index
- type Index
int
- rtype
None
-
AddPoint
()¶ - Add a point in the line.
- param P
- type P
IntSurf_PntOn2S
- rtype
None
-
AddStatusFirst
()¶ - Parameters
Closed –
- type Closed
bool
- param HasFirst
- type HasFirst
bool
- rtype
None:param Closed:
- type Closed
bool
- param HasLast
- type HasLast
bool
- param Index
- type Index
int
- param P
- type P
IntSurf_PathPoint
- rtype
None
-
AddStatusFirstLast
()¶ - Parameters
Closed –
- type Closed
bool
- param HasFirst
- type HasFirst
bool
- param HasLast
- type HasLast
bool
- rtype
None
-
AddStatusLast
()¶ - Parameters
HasLast –
- type HasLast
bool
- rtype
None:param HasLast:
- type HasLast
bool
- param Index
- type Index
int
- param P
- type P
IntSurf_PathPoint
- rtype
None
-
Cut
()¶ - Cut the line at the point of rank Index.
- param Index
- type Index
int
- rtype
None
-
static
DownCast
(t)¶
-
FirstPoint
()¶ - Returns the first point of the line when it is a marching point. An exception is raised if HasFirstPoint returns False.
- rtype
IntSurf_PathPoint
-
FirstPointIndex
()¶ - Returns the Index of first point of the line when it is a marching point.This index is the index in the PointStartIterator. An exception is raised if HasFirstPoint returns False.
- rtype
int
-
HasFirstPoint
()¶ - Returns True if the first point of the line is a marching point . when is HasFirstPoint==False ,the line begins on the natural bound of the surface.the line can be too long
- rtype
bool
-
HasLastPoint
()¶ - Returns True if the end point of the line is a marching point (Point from IntWS). when is HasFirstPoint==False ,the line ends on the natural bound of the surface.the line can be too long.
- rtype
bool
-
IsClosed
()¶ - Returns True if the line is closed.
- rtype
bool
-
LastPoint
()¶ - Returns the last point of the line when it is a marching point. An exception is raised if HasLastPoint returns False.
- rtype
IntSurf_PathPoint
-
LastPointIndex
()¶ - Returns the index of last point of the line when it is a marching point.This index is the index in the PointStartIterator. An exception is raised if HasLastPoint returns False.
- rtype
int
-
Line
()¶ - Returns the LineOn2S contained in the walking line.
- rtype
opencascade::handle<IntSurf_LineOn2S>
-
NbPassingPoint
()¶ - returns the number of points belonging to Pnts1 which are passing point.
- rtype
int
-
NbPoints
()¶ - Returns the number of points of the line (including first point and end pointsee HasLastPoint and HasFirstPoint).
- rtype
int
-
PassingPoint
()¶ - returns the index of the point belonging to the line which is associated to the passing point belonging to Pnts1 an exception is raised if Index > NbPassingPoint()
- param Index
- type Index
int
- param IndexLine
- type IndexLine
int
- param IndexPnts
- type IndexPnts
int
- rtype
None
-
Reverse
()¶ - reverse the points in the line. Hasfirst, HasLast are kept.
- rtype
None
-
SetTangencyAtBegining
()¶ - Parameters
IsTangent –
- type IsTangent
bool
- rtype
None
-
SetTangencyAtEnd
()¶ - Parameters
IsTangent –
- type IsTangent
bool
- rtype
None
-
SetTangentVector
()¶ - Parameters
V –
- type V
gp_Vec
- param Index
- type Index
int
- rtype
None
-
TangentVector
()¶ - Parameters
Index –
- type Index
int
- rtype
gp_Vec
-
Value
()¶ - Returns the point of range Index. If index <= 0 or Index > NbPoints, an exception is raised.
- param Index
- type Index
int
- rtype
IntSurf_PntOn2S
-
property
thisown
¶ The membership flag
-
class
IntPatch_TheIWalking
(*args)¶ Bases:
object
- Deflection is the maximum deflection admitted between two consecutive points on a resulting polyline. Step is the maximum increment admitted between two consecutive points (in 2d space). Epsilon is the tolerance beyond which 2 points are confused. theToFillHoles is the flag defining whether possible holes between resulting curves are filled or not in case of IntPatch walking theToFillHoles is False
- param Epsilon
- type Epsilon
float
- param Deflection
- type Deflection
float
- param Step
- type Step
float
- param theToFillHoles
default value is Standard_False
- type theToFillHoles
bool
- rtype
None
-
IsDone
()¶ - Returns true if the calculus was successful.
- rtype
bool
-
NbLines
()¶ - Returns the number of resulting polylines. An exception is raised if IsDone returns False.
- rtype
int
-
NbSinglePnts
()¶ - Returns the number of points belonging to Pnts on which no line starts or ends. An exception is raised if IsDone returns False.
- rtype
int
-
Perform
()¶ - Searches a set of polylines starting on a point of Pnts1 or Pnts2. Each point on a resulting polyline verifies F(u,v)=0
- param Pnts1
- type Pnts1
IntSurf_SequenceOfPathPoint
- param Pnts2
- type Pnts2
IntSurf_SequenceOfInteriorPoint
- param Func
- type Func
IntPatch_TheSurfFunction
- param S
- type S
Adaptor3d_HSurface
- param Reversed
default value is Standard_False
- type Reversed
bool
- rtype
None* Searches a set of polylines starting on a point of Pnts1. Each point on a resulting polyline verifies F(u,v)=0
- param Pnts1
- type Pnts1
IntSurf_SequenceOfPathPoint
- param Func
- type Func
IntPatch_TheSurfFunction
- param S
- type S
Adaptor3d_HSurface
- param Reversed
default value is Standard_False
- type Reversed
bool
- rtype
None
-
SetTolerance
()¶ - Deflection is the maximum deflection admitted between two consecutive points on a resulting polyline. Step is the maximum increment admitted between two consecutive points (in 2d space). Epsilon is the tolerance beyond which 2 points are confused
- param Epsilon
- type Epsilon
float
- param Deflection
- type Deflection
float
- param Step
- type Step
float
- rtype
None
-
SinglePnt
()¶ - Returns the point of range Index . An exception is raised if IsDone returns False. An exception is raised if Index<=0 or Index > NbSinglePnts.
- param Index
- type Index
int
- rtype
IntSurf_PathPoint
-
Value
()¶ - Returns the polyline of range Index. An exception is raised if IsDone is False. An exception is raised if Index<=0 or Index>NbLines.
- param Index
- type Index
int
- rtype
opencascade::handle<IntPatch_TheIWLineOfTheIWalking>
-
property
thisown
¶ The membership flag
-
class
IntPatch_ThePathPointOfTheSOnBounds
(*args)¶ Bases:
object
- Return type
None:param P: :type P: gp_Pnt :param Tol: :type Tol: float :param V: :type V: Adaptor3d_HVertex :param A: :type A: Adaptor2d_HCurve2d :param Parameter: :type Parameter: float :rtype: None:param P: :type P: gp_Pnt :param Tol: :type Tol: float :param A: :type A: Adaptor2d_HCurve2d :param Parameter: :type Parameter: float :rtype: None
-
Arc
()¶ - Return type
opencascade::handle<Adaptor2d_HCurve2d>
-
SetValue
()¶ - Parameters
P –
- type P
gp_Pnt
- param Tol
- type Tol
float
- param V
- type V
Adaptor3d_HVertex
- param A
- type A
Adaptor2d_HCurve2d
- param Parameter
- type Parameter
float
- rtype
None:param P:
- type P
gp_Pnt
- param Tol
- type Tol
float
- param A
- type A
Adaptor2d_HCurve2d
- param Parameter
- type Parameter
float
- rtype
None
-
Vertex
()¶ - Return type
opencascade::handle<Adaptor3d_HVertex>
-
property
thisown
¶ The membership flag
-
class
IntPatch_TheSOnBounds
(*args)¶ Bases:
object
- Empty constructor.
- rtype
None
-
AllArcSolution
()¶ - Returns true if all arc of the Arcs are solution (inside the surface). An exception is raised if IsDone returns False.
- rtype
bool
-
IsDone
()¶ - Returns True if the calculus was successful.
- rtype
bool
-
NbPoints
()¶ - Returns the number of resulting points. An exception is raised if IsDone returns False (NotDone).
- rtype
int
-
NbSegments
()¶ - Returns the number of the resulting segments. An exception is raised if IsDone returns False (NotDone).
- rtype
int
-
Perform
()¶ - Algorithm to find the points and parts of curves of Domain (domain of of restriction of a surface) which verify F = 0. TolBoundary defines if a curve is on Q. TolTangency defines if a point is on Q.
- param F
- type F
IntPatch_ArcFunction
- param Domain
- type Domain
Adaptor3d_TopolTool
- param TolBoundary
- type TolBoundary
float
- param TolTangency
- type TolTangency
float
- param RecheckOnRegularity
default value is Standard_False
- type RecheckOnRegularity
bool
- rtype
None
-
Point
()¶ - Returns the resulting point of range Index. The exception NotDone is raised if IsDone() returns False. The exception OutOfRange is raised if Index <= 0 or Index > NbPoints.
- param Index
- type Index
int
- rtype
IntPatch_ThePathPointOfTheSOnBounds
-
Segment
()¶ - Returns the resulting segment of range Index. The exception NotDone is raised if IsDone() returns False. The exception OutOfRange is raised if Index <= 0 or Index > NbPoints.
- param Index
- type Index
int
- rtype
IntPatch_TheSegmentOfTheSOnBounds
-
property
thisown
¶ The membership flag
-
class
IntPatch_TheSearchInside
(*args)¶ Bases:
object
- Return type
None:param F: :type F: IntPatch_TheSurfFunction :param Surf: :type Surf: Adaptor3d_HSurface :param T: :type T: Adaptor3d_TopolTool :param Epsilon: :type Epsilon: float :rtype: None
-
NbPoints
()¶ - Returns the number of points. The exception NotDone if raised if IsDone returns False.
- rtype
int
-
Perform
()¶ - Parameters
F –
- type F
IntPatch_TheSurfFunction
- param Surf
- type Surf
Adaptor3d_HSurface
- param T
- type T
Adaptor3d_TopolTool
- param Epsilon
- type Epsilon
float
- rtype
None:param F:
- type F
IntPatch_TheSurfFunction
- param Surf
- type Surf
Adaptor3d_HSurface
- param UStart
- type UStart
float
- param VStart
- type VStart
float
- rtype
None
-
Value
()¶ - Returns the point of range Index. The exception NotDone if raised if IsDone returns False. The exception OutOfRange if raised if Index <= 0 or Index > NbPoints.
- param Index
- type Index
int
- rtype
IntSurf_InteriorPoint
-
property
thisown
¶ The membership flag
-
class
IntPatch_TheSegmentOfTheSOnBounds
(*args)¶ Bases:
object
- Empty constructor.
- rtype
None
-
Curve
()¶ - Returns the geometric curve on the surface ‘s domain which is solution.
- rtype
opencascade::handle<Adaptor2d_HCurve2d>
-
FirstPoint
()¶ - Returns the first point.
- rtype
IntPatch_ThePathPointOfTheSOnBounds
-
HasFirstPoint
()¶ - Returns True if there is a vertex (ThePathPoint) defining the lowest valid parameter on the arc.
- rtype
bool
-
HasLastPoint
()¶ - Returns True if there is a vertex (ThePathPoint) defining the greatest valid parameter on the arc.
- rtype
bool
-
LastPoint
()¶ - Returns the last point.
- rtype
IntPatch_ThePathPointOfTheSOnBounds
-
SetLimitPoint
()¶ - Defines the first point or the last point, depending on the value of the boolean First.
- param V
- type V
IntPatch_ThePathPointOfTheSOnBounds
- param First
- type First
bool
- rtype
None
-
SetValue
()¶ - Defines the concerned arc.
- param A
- type A
Adaptor2d_HCurve2d
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntPatch_TheSurfFunction
(*args)¶ Bases:
OCC.Core.math.math_FunctionSetWithDerivatives
- Return type
None:param PS: :type PS: Adaptor3d_HSurface :param IS: :type IS: IntSurf_Quadric :rtype: None:param IS: :type IS: IntSurf_Quadric :rtype: None
-
ISurface
()¶ - Return type
-
PSurface
()¶ - Return type
opencascade::handle<Adaptor3d_HSurface>
-
Set
()¶ - Parameters
PS –
- type PS
Adaptor3d_HSurface
- rtype
None:param Tolerance:
- type Tolerance
float
- rtype
None
-
SetImplicitSurface
()¶ - Parameters
IS –
- type IS
IntSurf_Quadric
- rtype
None
-
Tolerance
()¶ - Returns the value Tol so that if Abs(Func.Root())<Tol the function is considered null.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
IntPatch_WLine
(*args)¶ Bases:
OCC.Core.IntPatch.IntPatch_PointLine
- Creates a WLine as an intersection when the transitions are In or Out.
- param Line
- type Line
IntSurf_LineOn2S
- param Tang
- type Tang
bool
- param Trans1
- type Trans1
IntSurf_TypeTrans
- param Trans2
- type Trans2
IntSurf_TypeTrans
- rtype
None* Creates a WLine as an intersection when the transitions are Touch.
- param Line
- type Line
IntSurf_LineOn2S
- param Tang
- type Tang
bool
- param Situ1
- type Situ1
IntSurf_Situation
- param Situ2
- type Situ2
IntSurf_Situation
- rtype
None* Creates a WLine as an intersection when the transitions are Undecided.
- param Line
- type Line
IntSurf_LineOn2S
- param Tang
- type Tang
bool
- rtype
None
-
ChangeVertex
()¶ - Returns the vertex of range Index on the line.
- param Index
- type Index
int
- rtype
IntPatch_Point
-
ComputeVertexParameters
()¶ - Set the parameters of all the vertex on the line. if a vertex is already in the line, its parameter is modified else a new point in the line is inserted.
- param Tol
- type Tol
float
- rtype
None
-
static
DownCast
(t)¶
-
Dump
()¶ - if (theMode == 0) then prints the information about WLine if (theMode == 1) then prints the list of 3d-points if (theMode == 2) then prints the list of 2d-points on the 1st surface Otherwise, prints list of 2d-points on the 2nd surface
- param theMode
- type theMode
int
- rtype
None
-
EnablePurging
()¶ - Allows or forbids purging of existing WLine
- param theIsEnabled
- type theIsEnabled
bool
- rtype
None
-
FirstPoint
()¶ - Returns the Point corresponding to the FirstPoint.
- rtype
IntPatch_Point* Returns the Point corresponding to the FirstPoint. Indfirst is the index of the first in the list of vertices.
- param Indfirst
- type Indfirst
int
- rtype
IntPatch_Point
-
GetArcOnS1
()¶ - Return type
opencascade::handle<Adaptor2d_HCurve2d>
-
GetArcOnS2
()¶ - Return type
opencascade::handle<Adaptor2d_HCurve2d>
-
HasFirstPoint
()¶ - Returns True if the line has a known First point. This point is given by the method FirstPoint().
- rtype
bool
-
HasLastPoint
()¶ - Returns True if the line has a known Last point. This point is given by the method LastPoint().
- rtype
bool
-
InsertVertexBefore
()¶ - Parameters
theIndex –
- type theIndex
int
- param thePnt
- type thePnt
IntPatch_Point
- rtype
None
-
IntPatch_WLImpImp
= 1¶
-
IntPatch_WLImpPrm
= 2¶
-
IntPatch_WLPrmPrm
= 3¶
-
IntPatch_WLUnknown
= 0¶
-
IsPurgingAllowed
()¶ - Returns True if purging is allowed or forbidden for existing WLine
- rtype
bool
-
LastPoint
()¶ - Returns the Point corresponding to the LastPoint.
- rtype
IntPatch_Point* Returns the Point corresponding to the LastPoint. Indlast is the index of the last in the list of vertices.
- param Indlast
- type Indlast
int
- rtype
IntPatch_Point
-
Replace
()¶ - Replaces the element of range Index in the list of points. The exception OutOfRange is raised when Index <= 0 or Index > NbVertex.
- param Index
- type Index
int
- param Pnt
- type Pnt
IntPatch_Point
- rtype
None
-
SetArcOnS1
()¶ - Parameters
A –
- type A
Adaptor2d_HCurve2d
- rtype
None
-
SetArcOnS2
()¶ - Parameters
A –
- type A
Adaptor2d_HCurve2d
- rtype
None
-
SetCreatingWayInfo
()¶ - Sets the info about the way of <*this> creation.
- param theAlgo
- type theAlgo
IntPatch_WLType
- rtype
None
-
SetFirstPoint
()¶ - Parameters
IndFirst –
- type IndFirst
int
- rtype
None
-
SetLastPoint
()¶ - Parameters
IndLast –
- type IndLast
int
- rtype
None
-
SetPeriod
()¶ - Parameters
pu1 –
- type pu1
float
- param pv1
- type pv1
float
- param pu2
- type pu2
float
- param pv2
- type pv2
float
- rtype
None
-
SetPoint
()¶ - Set the Point of index <Index> in the LineOn2S
- param Index
- type Index
int
- param Pnt
- type Pnt
IntPatch_Point
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntPatch_WLineTool
¶ Bases:
object
-
static
ComputePurgedWLine
()¶ - I Removes equal points (leave one of equal points) from theWLine and recompute vertex parameters. //! II Removes point out of borders in case of non periodic surfaces. //! III Removes exceed points using tube criteria: delete 7D point if it lies near to expected lines in 2d and 3d. Each task (2d, 2d, 3d) have its own tolerance and checked separately. //! Returns new WLine or null WLine if the number of the points is less than 2.
- param theWLine
- type theWLine
IntPatch_WLine
- param theS1
- type theS1
Adaptor3d_HSurface
- param theS2
- type theS2
Adaptor3d_HSurface
- param theDom1
- type theDom1
Adaptor3d_TopolTool
- param theDom2
- type theDom2
Adaptor3d_TopolTool
- rtype
opencascade::handle<IntPatch_WLine>
-
static
ExtendTwoWLines
()¶ - Extends every line from theSlin (if it is possible) to be started/finished in strictly determined point (in the place of joint of two lines). As result, some gaps between two lines will vanish. The Walking lines are supposed (algorithm will do nothing for not-Walking line) to be computed as a result of intersection. Both theS1 and theS2 must be quadrics. Other cases are not supported. theArrPeriods must be filled as follows (every value must not be negative; if the surface is not periodic the period must be equal to 0.0 strictly): {<U-period of 1st surface>, <V-period of 1st surface>, <U-period of 2nd surface>, <V-period of 2nd surface>}. theListOfCriticalPoints must contain 3D-points where joining is disabled.
- param theSlin
- type theSlin
IntPatch_SequenceOfLine
- param theS1
- type theS1
Adaptor3d_HSurface
- param theS2
- type theS2
Adaptor3d_HSurface
- param theToler3D
- type theToler3D
float
- param theArrPeriods
- type theArrPeriods
float *
- param theBoxS1
- type theBoxS1
Bnd_Box2d
- param theBoxS2
- type theBoxS2
Bnd_Box2d
- param theListOfCriticalPoints
- type theListOfCriticalPoints
NCollection_List<gp_Pnt>
- rtype
void
-
static
JoinWLines
()¶ - Joins all WLines from theSlin to one if it is possible and records the result into theSlin again. Lines will be kept to be split if: a) they are separated (has no common points); b) resulted line (after joining) go through seam-edges or surface boundaries. //! In addition, if points in theSPnt lies at least in one of the line in theSlin, this point will be deleted.
- param theSlin
- type theSlin
IntPatch_SequenceOfLine
- param theSPnt
- type theSPnt
IntPatch_SequenceOfPoint
- param theS1
- type theS1
Adaptor3d_HSurface
- param theS2
- type theS2
Adaptor3d_HSurface
- param theTol3D
- type theTol3D
float
- rtype
void
-
property
thisown
¶ The membership flag
-
static