OCC.IntWalk module¶
This package defines the ‘walking’ (marching) algorithmesfor the intersection between two surfaces.One of the surfaces is a parametric one.If the other is an implicit one, the ‘IWalking’ class willbe used.If both surfaces are parametric, the ‘PWalking’ class willbe used.-Level: InternalAll the methods of the classes of this package are Internal.
-
class
IntWalk_PWalking
(*args)¶ Bases:
object
- Constructor used to set the data to compute intersection lines between Caro1 and Caro2. Deflection is the maximum deflection admitted between two consecutive points on the resulting polyline. TolTangency is the tolerance to find a tangent point. Func is the criterion which has to be evaluated at each solution point (each point of the line). It is necessary to call the Perform method to compute the intersection lines. The line found starts at a point on or in 2 natural domains of surfaces. It can be closed in the standard case if it is open it stops and begins at the border of one of the domains. If an open line stops at the middle of a domain, one stops at the tangent point. Epsilon is SquareTolerance of points confusion.
Parameters: Return type: - Returns the intersection line containing the exact point Poin. This line is a polygonal line. Deflection is the maximum deflection admitted between two consecutive points on the resulting polyline. TolTangency is the tolerance to find a tangent point. Func is the criterion which has to be evaluated at each solution point (each point of the line). The line found starts at a point on or in 2 natural domains of surfaces. It can be closed in the standard case if it is open it stops and begins at the border of one of the domains. If an open line stops at the middle of a domain, one stops at the tangent point. Epsilon is SquareTolerance of points confusion.
Parameters: Return type: -
AddAPoint
()¶ Parameters: - line (Handle_IntSurf_LineOn2S &) –
- POn2S (IntSurf_PntOn2S &) –
Return type:
-
IsClosed
()¶ - Returns True if the line is closed. An exception is raised if IsDone returns False.
Return type: bool
-
Line
()¶ Return type: Handle_IntSurf_LineOn2S
-
NbPoints
()¶ - Returns the number of points of the resulting polyline. An exception is raised if IsDone returns False.
Return type: int
-
Perform
()¶ - calculate the line of intersection
Parameters: ParDep (TColStd_Array1OfReal &) – Return type: None - calculate the line of intersection. The regulation of steps is done using min and max values on u and v. (if this data is not presented as in the previous method, the initial steps are calculated starting from min and max uv of faces).
Parameters: Return type:
-
PerformFirstPoint
()¶ - calculate the first point of a line of intersection
Parameters: - ParDep (TColStd_Array1OfReal &) –
- FirstPoint (IntSurf_PntOn2S &) –
Return type:
-
PutToBoundary
()¶ Parameters: - theASurf1 (Handle_Adaptor3d_HSurface &) –
- theASurf2 (Handle_Adaptor3d_HSurface &) –
Return type:
-
RepartirOuDiviser
()¶ Parameters: Return type:
-
SeekAdditionalPoints
()¶ Parameters: - theASurf1 (Handle_Adaptor3d_HSurface &) –
- theASurf2 (Handle_Adaptor3d_HSurface &) –
- theMinNbPoints (int) –
Return type:
-
TangentAtFirst
()¶ - Returns True if the surface are tangent at the first point of the line. An exception is raised if IsDone returns False.
Return type: bool
-
TangentAtLast
()¶ - Returns true if the surface are tangent at the last point of the line. An exception is raised if IsDone returns False.
Return type: bool
-
TestArret
()¶ Parameters: - DejaReparti (bool) –
- Param (TColStd_Array1OfReal &) –
- ChoixIso (IntImp_ConstIsoparametric &) –
Return type:
-
TestDeflection
()¶ Return type: IntWalk_StatusDeflection
-
Value
()¶ - Returns the point of range Index on the polyline. An exception is raised if IsDone returns False. An exception is raised if Index<=0 or Index>NbPoints.
Parameters: Index (int) – Return type: IntSurf_PntOn2S
-
thisown
¶ The membership flag
-
class
IntWalk_TheFunctionOfTheInt2S
(*args)¶ Bases:
OCC.math.math_FunctionSetWithDerivatives
Return type: Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
Return type: -
AuxillarSurface1
()¶ Return type: Handle_Adaptor3d_HSurface
-
AuxillarSurface2
()¶ Return type: Handle_Adaptor3d_HSurface
-
ComputeParameters
()¶ Parameters: - ChoixIso (IntImp_ConstIsoparametric) –
- Param (TColStd_Array1OfReal &) –
- UVap (math_Vector &) –
- BornInf (math_Vector &) –
- BornSup (math_Vector &) –
- Tolerance (math_Vector &) –
Return type:
-
IsTangent
()¶ Parameters: - UVap (math_Vector &) –
- Param (TColStd_Array1OfReal &) –
- BestChoix (IntImp_ConstIsoparametric &) –
Return type:
-
thisown
¶ The membership flag
-
class
IntWalk_TheInt2S
(*args)¶ Bases:
object
Return type: Parameters: - Param (TColStd_Array1OfReal &) –
- S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- TolTangency (float) –
- S1 –
- S2 –
- TolTangency –
Return type: Return type: -
ChangePoint
()¶ Return type: IntSurf_PntOn2S
-
Function
()¶ Return type: IntWalk_TheFunctionOfTheInt2S
-
Perform
()¶ Parameters: - Param (TColStd_Array1OfReal &) –
- Rsnld (math_FunctionSetRoot &) –
- Param –
- Rsnld –
- ChoixIso (IntImp_ConstIsoparametric) –
Return type: IntImp_ConstIsoparametric
Return type: IntImp_ConstIsoparametric
-
Point
()¶ Return type: IntSurf_PntOn2S
-
thisown
¶ The membership flag
-
class
IntWalk_WalkingData
(*args, **kwargs)¶ Bases:
object
-
etat
¶
-
thisown
¶ The membership flag
-
ustart
¶
-
vstart
¶
-
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases