OCC.IntSurf module¶
This package provides resources forall the packages concerning the intersectionbetween surfaces.-Level: InternalAll the methods of all the classes of this package are Internal.
-
class
Handle_IntSurf_LineOn2S
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_IntSurf_ListNodeOfListOfPntOn2S
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_IntSurf_SequenceNodeOfSequenceOfCouple
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
IntSurf_Couple
(*args)¶ Bases:
object
Return type: Parameters: Return type: -
thisown
¶ The membership flag
-
-
class
IntSurf_InteriorPoint
(*args)¶ Bases:
object
Return type: Parameters: Return type: -
Direction
()¶ - Returns the tangent at the intersection in 3d space associated to the interior point.
Return type: gp_Vec
-
Direction2d
()¶ - Returns the tangent at the intersection in the parametric space of the parametric surface.
Return type: gp_Vec2d
-
Parameters
()¶ - Returns the parameters of the interior point on the parametric surface.
Parameters: - U (float &) –
- V (float &) –
Return type:
-
SetValue
()¶ Parameters: Return type:
-
UParameter
()¶ - Returns the first parameter of the interior point on the parametric surface.
Return type: float
-
VParameter
()¶ - Returns the second parameter of the interior point on the parametric surface.
Return type: float
-
thisown
¶ The membership flag
-
-
class
IntSurf_InteriorPointTool
¶ Bases:
object
-
static
Direction2d
()¶ - returns the tangent at the intersectin in the parametric space of the parametrized surface.This tangent is associated to the value2d
Parameters: PStart (IntSurf_InteriorPoint &) – Return type: gp_Dir2d
-
static
Direction3d
()¶ - returns the tangent at the intersectin in 3d space associated to <P>
Parameters: PStart (IntSurf_InteriorPoint &) – Return type: gp_Vec
-
static
Value2d
()¶ - Returns the <U,V> parameters which are associated with <P> it’s the parameters which start the marching algorithm
Parameters: - PStart (IntSurf_InteriorPoint &) –
- U (float &) –
- V (float &) –
Return type: void
-
static
Value3d
()¶ - Returns the 3d coordinates of the starting point.
Parameters: PStart (IntSurf_InteriorPoint &) – Return type: gp_Pnt
-
thisown
¶ The membership flag
-
static
-
IntSurf_InteriorPointTool_Direction2d
()¶ - returns the tangent at the intersectin in the parametric space of the parametrized surface.This tangent is associated to the value2d
Parameters: PStart (IntSurf_InteriorPoint &) – Return type: gp_Dir2d
-
IntSurf_InteriorPointTool_Direction3d
()¶ - returns the tangent at the intersectin in 3d space associated to <P>
Parameters: PStart (IntSurf_InteriorPoint &) – Return type: gp_Vec
-
IntSurf_InteriorPointTool_Value2d
()¶ - Returns the <U,V> parameters which are associated with <P> it’s the parameters which start the marching algorithm
Parameters: - PStart (IntSurf_InteriorPoint &) –
- U (float &) –
- V (float &) –
Return type: void
-
IntSurf_InteriorPointTool_Value3d
()¶ - Returns the 3d coordinates of the starting point.
Parameters: PStart (IntSurf_InteriorPoint &) – Return type: gp_Pnt
-
class
IntSurf_LineOn2S
(*args)¶ Bases:
OCC.MMgt.MMgt_TShared
Parameters: theAllocator (IntSurf_Allocator &) – default value is 0 Return type: None -
GetHandle
()¶
-
SetUV
()¶ - Sets the parametric coordinates on one of the surfaces of the point of range Index in the line.
Parameters: Return type:
-
Split
()¶ - Keeps in <self> the points 1 to Index-1, and returns the items Index to the end.
Parameters: Index (int) – Return type: Handle_IntSurf_LineOn2S
-
Value
()¶ - Returns the point of range Index in the line.
Parameters: Index (int) – Return type: IntSurf_PntOn2S - Replaces the point of range Index in the line.
Parameters: - Index (int) –
- P (IntSurf_PntOn2S &) –
Return type:
-
thisown
¶ The membership flag
-
-
class
IntSurf_ListIteratorOfListOfPntOn2S
(*args)¶ Bases:
object
Return type: None Parameters: L (IntSurf_ListOfPntOn2S &) – Return type: None -
Value
()¶ Return type: IntSurf_PntOn2S
-
thisown
¶ The membership flag
-
-
class
IntSurf_ListNodeOfListOfPntOn2S
(*args)¶ Bases:
OCC.TCollection.TCollection_MapNode
Parameters: - I (IntSurf_PntOn2S &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: IntSurf_PntOn2S
-
thisown
¶ The membership flag
-
class
IntSurf_ListOfPntOn2S
(*args)¶ Bases:
object
Return type: None Parameters: Other (IntSurf_ListOfPntOn2S &) – Return type: None -
Append
()¶ Parameters: - I (IntSurf_PntOn2S &) –
- I –
- theIt (IntSurf_ListIteratorOfListOfPntOn2S &) –
- Other (IntSurf_ListOfPntOn2S &) –
Return type: Return type: Return type:
-
First
()¶ Return type: IntSurf_PntOn2S
-
InsertAfter
()¶ Parameters: - I (IntSurf_PntOn2S &) –
- It (IntSurf_ListIteratorOfListOfPntOn2S &) –
- Other (IntSurf_ListOfPntOn2S &) –
- It –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - I (IntSurf_PntOn2S &) –
- It (IntSurf_ListIteratorOfListOfPntOn2S &) –
- Other (IntSurf_ListOfPntOn2S &) –
- It –
Return type: Return type:
-
Last
()¶ Return type: IntSurf_PntOn2S
-
Prepend
()¶ Parameters: - I (IntSurf_PntOn2S &) –
- I –
- theIt (IntSurf_ListIteratorOfListOfPntOn2S &) –
- Other (IntSurf_ListOfPntOn2S &) –
Return type: Return type: Return type:
-
thisown
¶ The membership flag
-
-
class
IntSurf_PathPoint
(*args)¶ Bases:
object
Return type: Parameters: Return type: -
thisown
¶ The membership flag
-
-
class
IntSurf_PathPointTool
¶ Bases:
object
-
static
Direction2d
()¶ - returns the tangent at the intersection in the parametric space of the parametrized surface.This tangent is associated to the value2d la tangente a un sens signifiant (indique le sens de chemin ement) an exception is raised if IsTangent is true.
Parameters: PStart (IntSurf_PathPoint &) – Return type: gp_Dir2d
-
static
Direction3d
()¶ - returns the tangent at the intersection in 3d space associated to <P> an exception is raised if IsTangent is true.
Parameters: PStart (IntSurf_PathPoint &) – Return type: gp_Vec
-
static
IsPassingPnt
()¶ - Returns True if the point is a point on a non-oriented arc, which means that the intersection line does not stop at such a point but just go through such a point. IsPassingPnt is True when IsOnArc is True
Parameters: PStart (IntSurf_PathPoint &) – Return type: bool
-
static
IsTangent
()¶ - Returns True if the surfaces are tangent at this point. IsTangent can be True when IsOnArc is True if IsPassingPnt is True and IsTangent is True,this point is a stopped point.
Parameters: PStart (IntSurf_PathPoint &) – Return type: bool
-
static
Multiplicity
()¶ - Returns the multiplicity of the point i-e the number of auxillar parameters associated to the point which the principal parameters are given by Value2d
Parameters: PStart (IntSurf_PathPoint &) – Return type: int
-
static
Parameters
()¶ - Parametric coordinates associated to the multiplicity. An exception is raised if Mult<=0 or Mult>multiplicity.
Parameters: - PStart (IntSurf_PathPoint &) –
- Mult (int) –
- U (float &) –
- V (float &) –
Return type: void
-
static
Value2d
()¶ - Returns the <U, V> parameters which are associated with <P> it’s the parameters which start the marching algorithm
Parameters: - PStart (IntSurf_PathPoint &) –
- U (float &) –
- V (float &) –
Return type: void
-
static
Value3d
()¶ - Returns the 3d coordinates of the starting point.
Parameters: PStart (IntSurf_PathPoint &) – Return type: gp_Pnt
-
thisown
¶ The membership flag
-
static
-
IntSurf_PathPointTool_Direction2d
()¶ - returns the tangent at the intersection in the parametric space of the parametrized surface.This tangent is associated to the value2d la tangente a un sens signifiant (indique le sens de chemin ement) an exception is raised if IsTangent is true.
Parameters: PStart (IntSurf_PathPoint &) – Return type: gp_Dir2d
-
IntSurf_PathPointTool_Direction3d
()¶ - returns the tangent at the intersection in 3d space associated to <P> an exception is raised if IsTangent is true.
Parameters: PStart (IntSurf_PathPoint &) – Return type: gp_Vec
-
IntSurf_PathPointTool_IsPassingPnt
()¶ - Returns True if the point is a point on a non-oriented arc, which means that the intersection line does not stop at such a point but just go through such a point. IsPassingPnt is True when IsOnArc is True
Parameters: PStart (IntSurf_PathPoint &) – Return type: bool
-
IntSurf_PathPointTool_IsTangent
()¶ - Returns True if the surfaces are tangent at this point. IsTangent can be True when IsOnArc is True if IsPassingPnt is True and IsTangent is True,this point is a stopped point.
Parameters: PStart (IntSurf_PathPoint &) – Return type: bool
-
IntSurf_PathPointTool_Multiplicity
()¶ - Returns the multiplicity of the point i-e the number of auxillar parameters associated to the point which the principal parameters are given by Value2d
Parameters: PStart (IntSurf_PathPoint &) – Return type: int
-
IntSurf_PathPointTool_Parameters
()¶ - Parametric coordinates associated to the multiplicity. An exception is raised if Mult<=0 or Mult>multiplicity.
Parameters: - PStart (IntSurf_PathPoint &) –
- Mult (int) –
- U (float &) –
- V (float &) –
Return type: void
-
IntSurf_PathPointTool_Value2d
()¶ - Returns the <U, V> parameters which are associated with <P> it’s the parameters which start the marching algorithm
Parameters: - PStart (IntSurf_PathPoint &) –
- U (float &) –
- V (float &) –
Return type: void
-
IntSurf_PathPointTool_Value3d
()¶ - Returns the 3d coordinates of the starting point.
Parameters: PStart (IntSurf_PathPoint &) – Return type: gp_Pnt
-
class
IntSurf_PntOn2S
(*args)¶ Bases:
object
- Empty constructor.
Return type: None -
IsSame
()¶ - Returns True if 2D- and 3D-coordinates of theOterPoint are equal to corresponding coordinates of me (with given tolerance). If theTol2D == 0.0 we will compare 3D-points only.
Parameters: Return type:
-
Parameters
()¶ - Returns the parameters of the point on both surfaces.
Parameters: - U1 (float &) –
- V1 (float &) –
- U2 (float &) –
- V2 (float &) –
Return type:
-
ParametersOnS1
()¶ - Returns the parameters of the point on the first surface.
Parameters: - U1 (float &) –
- V1 (float &) –
Return type:
-
ParametersOnS2
()¶ - Returns the parameters of the point on the second surface.
Parameters: - U2 (float &) –
- V2 (float &) –
Return type:
-
SetValue
()¶ - Sets the value of the point in 3d space.
Parameters: Pt (gp_Pnt) – Return type: None - Sets the values of the point in 3d space, and in the parametric space of one of the surface.
Parameters: Return type: - Sets the values of the point in 3d space, and in the parametric space of each surface.
Parameters: Return type: - Set the values of the point in the parametric space of one of the surface.
Parameters: Return type: - Set the values of the point in the parametric space of one of the surface.
Parameters: Return type:
-
thisown
¶ The membership flag
-
class
IntSurf_Quadric
(*args)¶ Bases:
object
Return type: Parameters: Return type: Return type: Return type: Return type: Return type: -
Cylinder
()¶ Return type: gp_Cylinder
-
D1
()¶ Parameters: Return type:
-
SetValue
()¶ Parameters: Return type: Return type: Return type: Return type: Return type:
-
TypeQuadric
()¶ Return type: GeomAbs_SurfaceType
-
thisown
¶ The membership flag
-
-
class
IntSurf_QuadricTool
¶ Bases:
object
-
static
Gradient
()¶ - Returns the gradient of the function.
Parameters: Return type: void
-
static
Tolerance
()¶ - returns the tolerance of the zero of the implicit function
Parameters: Quad (IntSurf_Quadric &) – Return type: float
-
static
Value
()¶ - Returns the value of the function.
Parameters: Return type:
-
static
ValueAndGradient
()¶ - Returns the value and the gradient.
Parameters: Return type: void
-
thisown
¶ The membership flag
-
static
-
IntSurf_QuadricTool_Gradient
()¶ - Returns the gradient of the function.
Parameters: Return type: void
-
IntSurf_QuadricTool_Tolerance
()¶ - returns the tolerance of the zero of the implicit function
Parameters: Quad (IntSurf_Quadric &) – Return type: float
-
IntSurf_QuadricTool_Value
()¶ - Returns the value of the function.
Parameters: Return type:
-
IntSurf_QuadricTool_ValueAndGradient
()¶ - Returns the value and the gradient.
Parameters: Return type: void
-
class
IntSurf_SequenceNodeOfSequenceOfCouple
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters: - I (IntSurf_Couple &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: IntSurf_Couple
-
thisown
¶ The membership flag
-
class
IntSurf_SequenceNodeOfSequenceOfInteriorPoint
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters: - I (IntSurf_InteriorPoint &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: IntSurf_InteriorPoint
-
thisown
¶ The membership flag
-
class
IntSurf_SequenceNodeOfSequenceOfPathPoint
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters: - I (IntSurf_PathPoint &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: IntSurf_PathPoint
-
thisown
¶ The membership flag
-
class
IntSurf_SequenceOfCouple
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (IntSurf_SequenceOfCouple &) – Return type: None -
Append
()¶ Parameters: - T (IntSurf_Couple &) –
- S (IntSurf_SequenceOfCouple &) –
Return type: Return type:
-
Assign
()¶ Parameters: Other (IntSurf_SequenceOfCouple &) – Return type: IntSurf_SequenceOfCouple
-
ChangeValue
()¶ Parameters: Index (int) – Return type: IntSurf_Couple
-
First
()¶ Return type: IntSurf_Couple
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (IntSurf_Couple &) –
- Index –
- S (IntSurf_SequenceOfCouple &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (IntSurf_Couple &) –
- Index –
- S (IntSurf_SequenceOfCouple &) –
Return type: Return type:
-
Last
()¶ Return type: IntSurf_Couple
-
Prepend
()¶ Parameters: - T (IntSurf_Couple &) –
- S (IntSurf_SequenceOfCouple &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (IntSurf_SequenceOfCouple &) – Return type: IntSurf_SequenceOfCouple
-
Value
()¶ Parameters: Index (int) – Return type: IntSurf_Couple
-
thisown
¶ The membership flag
-
-
class
IntSurf_SequenceOfInteriorPoint
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (IntSurf_SequenceOfInteriorPoint &) – Return type: None -
Append
()¶ Parameters: - T (IntSurf_InteriorPoint &) –
- S (IntSurf_SequenceOfInteriorPoint &) –
Return type: Return type:
-
Assign
()¶ Parameters: Other (IntSurf_SequenceOfInteriorPoint &) – Return type: IntSurf_SequenceOfInteriorPoint
-
ChangeValue
()¶ Parameters: Index (int) – Return type: IntSurf_InteriorPoint
-
First
()¶ Return type: IntSurf_InteriorPoint
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (IntSurf_InteriorPoint &) –
- Index –
- S (IntSurf_SequenceOfInteriorPoint &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (IntSurf_InteriorPoint &) –
- Index –
- S (IntSurf_SequenceOfInteriorPoint &) –
Return type: Return type:
-
Last
()¶ Return type: IntSurf_InteriorPoint
-
Prepend
()¶ Parameters: - T (IntSurf_InteriorPoint &) –
- S (IntSurf_SequenceOfInteriorPoint &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (IntSurf_SequenceOfInteriorPoint &) – Return type: IntSurf_SequenceOfInteriorPoint
-
Value
()¶ Parameters: Index (int) – Return type: IntSurf_InteriorPoint
-
thisown
¶ The membership flag
-
-
class
IntSurf_SequenceOfPathPoint
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (IntSurf_SequenceOfPathPoint &) – Return type: None -
Append
()¶ Parameters: - T (IntSurf_PathPoint &) –
- S (IntSurf_SequenceOfPathPoint &) –
Return type: Return type:
-
Assign
()¶ Parameters: Other (IntSurf_SequenceOfPathPoint &) – Return type: IntSurf_SequenceOfPathPoint
-
ChangeValue
()¶ Parameters: Index (int) – Return type: IntSurf_PathPoint
-
First
()¶ Return type: IntSurf_PathPoint
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (IntSurf_PathPoint &) –
- Index –
- S (IntSurf_SequenceOfPathPoint &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (IntSurf_PathPoint &) –
- Index –
- S (IntSurf_SequenceOfPathPoint &) –
Return type: Return type:
-
Last
()¶ Return type: IntSurf_PathPoint
-
Prepend
()¶ Parameters: - T (IntSurf_PathPoint &) –
- S (IntSurf_SequenceOfPathPoint &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (IntSurf_SequenceOfPathPoint &) – Return type: IntSurf_SequenceOfPathPoint
-
Value
()¶ Parameters: Index (int) – Return type: IntSurf_PathPoint
-
thisown
¶ The membership flag
-
-
class
IntSurf_Transition
(*args)¶ Bases:
object
- Empty constructor. Creates an UNDECIDED transition.
Return type: None - Create a IN or OUT transition
Parameters: - Tangent (bool) –
- Type (IntSurf_TypeTrans) –
Return type: - Create a TOUCH transition.
Parameters: Return type: -
IsOpposite
()¶ - returns a significant value if TransitionType returns TOUCH. In this case, the function returns true when the 2 curves locally define two different parts of the space. If TransitionType returns IN or OUT or UNDECIDED, an exception is raised.
Return type: bool
-
IsTangent
()¶ - Returns True if the point is tangent to the arc given by Value. An exception is raised if TransitionType returns UNDECIDED.
Return type: bool
-
SetValue
()¶ - Set the values of an IN or OUT transition.
Parameters: - Tangent (bool) –
- Type (IntSurf_TypeTrans) –
Return type: - Set the values of a TOUCH transition.
Parameters: Return type: - Set the values of an UNDECIDED transition.
Return type: None
-
Situation
()¶ - Returns a significant value if TransitionType returns TOUCH. In this case, the function returns : INSIDE when the intersection line remains inside the Arc, OUTSIDE when it remains outside the Arc, UNKNOWN when the calsulus cannot give results. If TransitionType returns IN, or OUT, or UNDECIDED, a exception is raised.
Return type: IntSurf_Situation
-
TransitionType
()¶ - Returns the type of Transition (in/out/touch/undecided) for the arc given by value. This the transition of the intersection line compared to the Arc of restriction, i-e when the function returns INSIDE for example, it means that the intersection line goes inside the part of plane limited by the arc of restriction.
Return type: IntSurf_TypeTrans
-
thisown
¶ The membership flag
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
class
intsurf
¶ Bases:
object
-
static
MakeTransition
()¶ - Computes the transition of the intersection point between the two lines. TgFirst is the tangent vector of the first line. TgSecond is the tangent vector of the second line. Normal is the direction used to orientate the cross product TgFirst^TgSecond. TFirst is the transition of the point on the first line. TSecond is the transition of the point on the second line.
Parameters: Return type: void
-
thisown
¶ The membership flag
-
static
-
intsurf_MakeTransition
()¶ - Computes the transition of the intersection point between the two lines. TgFirst is the tangent vector of the first line. TgSecond is the tangent vector of the second line. Normal is the direction used to orientate the cross product TgFirst^TgSecond. TFirst is the transition of the point on the first line. TSecond is the transition of the point on the second line.
Parameters: Return type: void
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases