OCC.IntRes2d module¶
This package provides the definition of the results ofthe intersection between 2D curves and the definitionof a domain on a 2D curve.-Level: PublicAll the methods of all the classes of this package are public.
-
class
Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
IntRes2d_Domain
(*args)¶ Bases:
object
- Creates an infinite Domain (HasFirstPoint = False and HasLastPoint = False).
Return type: None - Creates a bounded Domain.
Parameters: Return type: - Creates a semi-infinite Domain. If First is set to True, the given point is the first point of the domain, otherwise it is the last point.
Parameters: Return type: -
EquivalentParameters
()¶ - Returns Equivalent parameters if the domain is closed. Otherwise, the exception DomainError is raised.
Parameters: - zero (float &) –
- zeroplusperiod (float &) –
Return type:
-
FirstParameter
()¶ - Returns the parameter of the first point of the domain The exception DomainError is raised if HasFirstPoint returns False.
Return type: float
-
FirstPoint
()¶ - Returns the first point of the domain. The exception DomainError is raised if HasFirstPoint returns False.
Return type: gp_Pnt2d
-
FirstTolerance
()¶ - Returns the tolerance of the first (left) bound. The exception DomainError is raised if HasFirstPoint returns False.
Return type: float
-
HasFirstPoint
()¶ - Returns True if the domain has a first point, i-e a point defining the lowest admitted parameter on the curve.
Return type: bool
-
HasLastPoint
()¶ - Returns True if the domain has a last point, i-e a point defining the highest admitted parameter on the curve.
Return type: bool
-
LastParameter
()¶ - Returns the parameter of the last point of the domain. The exception DomainError is raised if HasLastPoint returns False.
Return type: float
-
LastPoint
()¶ - Returns the last point of the domain. The exception DomainError is raised if HasLastPoint returns False.
Return type: gp_Pnt2d
-
LastTolerance
()¶ - Returns the tolerance of the last (right) bound. The exception DomainError is raised if HasLastPoint returns False.
Return type: float
-
SetEquivalentParameters
()¶ - Defines a closed domain.
Parameters: Return type:
-
SetValues
()¶ - Sets the values for a bounded domain.
Parameters: Return type: - Sets the values for an infinite domain.
Return type: None - Sets the values for a semi-infinite domain.
Parameters: Return type:
-
thisown
¶ The membership flag
-
class
IntRes2d_Intersection
(*args, **kwargs)¶ Bases:
object
-
IsEmpty
()¶ - Returns True if there is no intersection between the given arguments. The exception NotDone is raised if IsDone returns False.
Return type: bool
-
NbPoints
()¶ - This function returns the number of intersection points between the 2 curves. The exception NotDone is raised if IsDone returns False.
Return type: int
-
NbSegments
()¶ - This function returns the number of intersection segments between the two curves. The exception NotDone is raised if IsDone returns False.
Return type: int
-
Point
()¶ - This function returns the intersection point of range N; The exception NotDone is raised if IsDone returns False. The exception OutOfRange is raised if (N <= 0) or (N > NbPoints).
Parameters: N (int) – Return type: IntRes2d_IntersectionPoint
-
Segment
()¶ - This function returns the intersection segment of range N; The exception NotDone is raised if IsDone returns False. The exception OutOfRange is raised if (N <= 0) or (N > NbPoints).
Parameters: N (int) – Return type: IntRes2d_IntersectionSegment
-
thisown
¶ The membership flag
-
-
class
IntRes2d_IntersectionPoint
(*args)¶ Bases:
object
- Empty constructor.
Return type: None - Creates an IntersectionPoint. if ReversedFlag is False, the parameter Uc1(resp. Uc2) and the Transition Trans1 (resp. Trans2) refer to the first curve (resp. second curve) otherwise Uc1 and Trans1 (resp. Uc2 and Trans2) refer to the second curve (resp. the first curve).
Parameters: Return type: -
SetValues
()¶ - Sets the values for an existing intersection point. The meaning of the parameters are the same as for the Create.
Parameters: Return type:
-
TransitionOfFirst
()¶ - Returns the transition of the 1st curve compared to the 2nd one.
Return type: IntRes2d_Transition
-
TransitionOfSecond
()¶ - returns the transition of the 2nd curve compared to the 1st one.
Return type: IntRes2d_Transition
-
Value
()¶ - Returns the value of the coordinates of the intersection point in the 2D space.
Return type: gp_Pnt2d
-
thisown
¶ The membership flag
-
class
IntRes2d_IntersectionSegment
(*args)¶ Bases:
object
- Empty constructor.
Return type: Parameters: Return type: Return type: - Creates an infinite segment of intersection.
Parameters: Oppos (bool) – Return type: None -
FirstPoint
()¶ - Returns the first point of the segment as an IntersectionPoint (with a transition). The exception DomainError is raised if HasFirstPoint returns False.
Return type: IntRes2d_IntersectionPoint
-
HasFirstPoint
()¶ - Returns True if the segment is limited by a first point. This point defines the lowest parameter admitted on the first curve for the segment. If IsOpposite returns False, it defines the lowest parameter on the second curve, otherwise, it is the highest parameter on the second curve.
Return type: bool
-
HasLastPoint
()¶ - Returns True if the segment is limited by a last point. This point defines the highest parameter admitted on the first curve for the segment. If IsOpposite returns False, it defines the highest parameter on the second curve, otherwise, it is the lowest parameter on the second curve.
Return type: bool
-
IsOpposite
()¶ - Returns False if the intersection segment has got the same orientation on both curves.
Return type: bool
-
LastPoint
()¶ - Returns the last point of the segment as an IntersectionPoint (with a transition). The exception DomainError is raised if HasLastExtremity returns False.
Return type: IntRes2d_IntersectionPoint
-
thisown
¶ The membership flag
-
class
IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters: - I (IntRes2d_IntersectionPoint &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: IntRes2d_IntersectionPoint
-
thisown
¶ The membership flag
-
class
IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters: - I (IntRes2d_IntersectionSegment &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: IntRes2d_IntersectionSegment
-
thisown
¶ The membership flag
-
class
IntRes2d_SequenceOfIntersectionPoint
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (IntRes2d_SequenceOfIntersectionPoint &) – Return type: None -
Append
()¶ Parameters: - T (IntRes2d_IntersectionPoint &) –
- S (IntRes2d_SequenceOfIntersectionPoint &) –
Return type: Return type:
-
Assign
()¶ Parameters: Other (IntRes2d_SequenceOfIntersectionPoint &) – Return type: IntRes2d_SequenceOfIntersectionPoint
-
ChangeValue
()¶ Parameters: Index (int) – Return type: IntRes2d_IntersectionPoint
-
First
()¶ Return type: IntRes2d_IntersectionPoint
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (IntRes2d_IntersectionPoint &) –
- Index –
- S (IntRes2d_SequenceOfIntersectionPoint &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (IntRes2d_IntersectionPoint &) –
- Index –
- S (IntRes2d_SequenceOfIntersectionPoint &) –
Return type: Return type:
-
Last
()¶ Return type: IntRes2d_IntersectionPoint
-
Prepend
()¶ Parameters: - T (IntRes2d_IntersectionPoint &) –
- S (IntRes2d_SequenceOfIntersectionPoint &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (IntRes2d_SequenceOfIntersectionPoint &) – Return type: IntRes2d_SequenceOfIntersectionPoint
-
Value
()¶ Parameters: Index (int) – Return type: IntRes2d_IntersectionPoint
-
thisown
¶ The membership flag
-
-
class
IntRes2d_SequenceOfIntersectionSegment
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (IntRes2d_SequenceOfIntersectionSegment &) – Return type: None -
Append
()¶ Parameters: - T (IntRes2d_IntersectionSegment &) –
- S (IntRes2d_SequenceOfIntersectionSegment &) –
Return type: Return type:
-
Assign
()¶ Parameters: Other (IntRes2d_SequenceOfIntersectionSegment &) – Return type: IntRes2d_SequenceOfIntersectionSegment
-
ChangeValue
()¶ Parameters: Index (int) – Return type: IntRes2d_IntersectionSegment
-
First
()¶ Return type: IntRes2d_IntersectionSegment
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (IntRes2d_IntersectionSegment &) –
- Index –
- S (IntRes2d_SequenceOfIntersectionSegment &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (IntRes2d_IntersectionSegment &) –
- Index –
- S (IntRes2d_SequenceOfIntersectionSegment &) –
Return type: Return type:
-
Last
()¶ Return type: IntRes2d_IntersectionSegment
-
Prepend
()¶ Parameters: - T (IntRes2d_IntersectionSegment &) –
- S (IntRes2d_SequenceOfIntersectionSegment &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (IntRes2d_SequenceOfIntersectionSegment &) – Return type: IntRes2d_SequenceOfIntersectionSegment
-
Value
()¶ Parameters: Index (int) – Return type: IntRes2d_IntersectionSegment
-
thisown
¶ The membership flag
-
-
class
IntRes2d_Transition
(*args)¶ Bases:
object
- Empty constructor.
Return type: None - Creates an IN or OUT transition.
Parameters: - Tangent (bool) –
- Pos (IntRes2d_Position) –
- Type (IntRes2d_TypeTrans) –
Return type: - Creates a TOUCH transition.
Parameters: Return type: - Creates an UNDECIDED transition.
Parameters: Pos (IntRes2d_Position) – Return type: None -
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, the exception DomainError is raised.
Return type: bool
-
IsTangent
()¶ - Returns True when the 2 curves are tangent at the intersection point. Theexception DomainError is raised if the type of transition is UNDECIDED.
Return type: bool
-
PositionOnCurve
()¶ - Indicates if the intersection is at the beginning (IntRes2d_Head), at the end (IntRes2d_End), or in the middle (IntRes2d_Middle) of the curve.
Return type: IntRes2d_Position
-
SetPosition
()¶ - Sets the value of the position.
Parameters: Pos (IntRes2d_Position) – Return type: None
-
SetValue
()¶ - Sets the values of an IN or OUT transition.
Parameters: - Tangent (bool) –
- Pos (IntRes2d_Position) –
- Type (IntRes2d_TypeTrans) –
Return type: - Sets the values of a TOUCH transition.
Parameters: Return type: - Sets the values of an UNDECIDED transition.
Parameters: Pos (IntRes2d_Position) – Return type: None
-
Situation
()¶ - returns a significant value if TransitionType returns TOUCH. In this case, the function returns : INSIDE when the curve remains inside the other one, OUTSIDE when it remains outside the other one, UNKNOWN when the calculus, based on the second derivatives cannot give the result. If TransitionType returns IN or OUT or UNDECIDED, the exception DomainError is raised.
Return type: IntRes2d_Situation
-
TransitionType
()¶ - Returns the type of transition at the intersection. It may be IN or OUT or TOUCH, or UNDECIDED if the two first derivatives are not enough to give the tangent to one of the two curves.
Return type: IntRes2d_TypeTrans
-
thisown
¶ The membership flag
-
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