OCC.HatchGen module¶
-
class
Handle_HatchGen_SequenceNodeOfDomains(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_HatchGen_SequenceNodeOfPointsOnElement(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_HatchGen_SequenceNodeOfPointsOnHatching(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
HatchGen_Domain(*args)¶ Bases:
object- Creates an infinite domain.
Return type: None - Creates a domain for the curve associated to a hatching.
Parameters: - P1 (HatchGen_PointOnHatching &) –
- P2 (HatchGen_PointOnHatching &) –
Return type: - Creates a semi-infinite domain for the curve associated to a hatching. The `First’ flag means that the given point is the first one.
Parameters: - P (HatchGen_PointOnHatching &) –
- First (bool) –
Return type: -
FirstPoint()¶ - Returns the first point of the domain. The exception DomainError is raised if HasFirstPoint returns False.
Return type: HatchGen_PointOnHatching
-
SecondPoint()¶ - Returns the second point of the domain. The exception DomainError is raised if HasSecondPoint returns False.
Return type: HatchGen_PointOnHatching
-
SetFirstPoint()¶ - Sets the first point of the domain.
Parameters: P (HatchGen_PointOnHatching &) – Return type: None - Sets the first point of the domain at the infinite.
Return type: None
-
SetPoints()¶ - Sets the first and the second points of the domain.
Parameters: - P1 (HatchGen_PointOnHatching &) –
- P2 (HatchGen_PointOnHatching &) –
Return type: - Sets the first and the second points of the domain as the infinite.
Return type: None
-
SetSecondPoint()¶ - Sets the second point of the domain.
Parameters: P (HatchGen_PointOnHatching &) – Return type: None - Sets the second point of the domain at the infinite.
Return type: None
-
thisown¶ The membership flag
-
class
HatchGen_Domains(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequenceReturn type: None Parameters: Other (HatchGen_Domains &) – Return type: None -
Append()¶ Parameters: - T (HatchGen_Domain &) –
- S (HatchGen_Domains &) –
Return type: Return type:
-
Assign()¶ Parameters: Other (HatchGen_Domains &) – Return type: HatchGen_Domains
-
ChangeValue()¶ Parameters: Index (int) – Return type: HatchGen_Domain
-
First()¶ Return type: HatchGen_Domain
-
InsertAfter()¶ Parameters: - Index (int) –
- T (HatchGen_Domain &) –
- Index –
- S (HatchGen_Domains &) –
Return type: Return type:
-
InsertBefore()¶ Parameters: - Index (int) –
- T (HatchGen_Domain &) –
- Index –
- S (HatchGen_Domains &) –
Return type: Return type:
-
Last()¶ Return type: HatchGen_Domain
-
Prepend()¶ Parameters: - T (HatchGen_Domain &) –
- S (HatchGen_Domains &) –
Return type: Return type:
-
Remove()¶ Parameters: Return type: Return type:
-
Set()¶ Parameters: Other (HatchGen_Domains &) – Return type: HatchGen_Domains
-
Value()¶ Parameters: Index (int) – Return type: HatchGen_Domain
-
thisown¶ The membership flag
-
-
class
HatchGen_IntersectionPoint(*args, **kwargs)¶ Bases:
object-
Position()¶ - Returns the position of the point on the curve.
Return type: TopAbs_Orientation
-
SetPosition()¶ - Sets the position of the point on the curve.
Parameters: Position (TopAbs_Orientation) – Return type: None
-
SetSegmentBeginning()¶ - Sets the flag that the point is the beginning of a segment.
Parameters: State (bool) – default value is Standard_True Return type: None
-
SetSegmentEnd()¶ - Sets the flag that the point is the end of a segment.
Parameters: State (bool) – default value is Standard_True Return type: None
-
SetStateAfter()¶ - Sets the transition state after the intersection.
Parameters: State (TopAbs_State) – Return type: None
-
SetStateBefore()¶ - Sets the transition state before the intersection.
Parameters: State (TopAbs_State) – Return type: None
-
StateAfter()¶ - Returns the transition state after of the intersection.
Return type: TopAbs_State
-
StateBefore()¶ - Returns the transition state before the intersection.
Return type: TopAbs_State
-
thisown¶ The membership flag
-
-
class
HatchGen_PointOnElement(*args)¶ Bases:
OCC.HatchGen.HatchGen_IntersectionPoint- —Purpose; Creates an empty point on element
Return type: None - Creates a point from an other.
Parameters: Point (HatchGen_PointOnElement &) – Return type: None - Creates a point from an intersection point.
Parameters: Point (IntRes2d_IntersectionPoint &) – Return type: None -
IntersectionType()¶ - Returns the intersection type at this point.
Return type: HatchGen_IntersectionType
-
IsDifferent()¶ - Tests if the point is different from an other.
Parameters: - Point (HatchGen_PointOnElement &) –
- Confusion (float) –
Return type:
-
IsIdentical()¶ - Tests if the point is identical to an other. That is to say : P1.myIndex = P2.myIndex Abs (P1.myParam - P2.myParam) <= Confusion P1.myPosit = P2.myPosit P1.myBefore = P2.myBefore P1.myAfter = P2.myAfter P1.mySegBeg = P2.mySegBeg P1.mySegEnd = P2.mySegEnd P1.myType = P2.myType
Parameters: - Point (HatchGen_PointOnElement &) –
- Confusion (float) –
Return type:
-
SetIntersectionType()¶ - Sets the intersection type at this point.
Parameters: Type (HatchGen_IntersectionType) – Return type: None
-
thisown¶ The membership flag
-
class
HatchGen_PointOnHatching(*args)¶ Bases:
OCC.HatchGen.HatchGen_IntersectionPoint- Creates an empty point.
Return type: None - Creates a point from an other.
Parameters: Point (HatchGen_PointOnHatching &) – Return type: None - Creates a point from an intersection point.
Parameters: Point (IntRes2d_IntersectionPoint &) – Return type: None -
AddPoint()¶ - Adds a point on element to the point.
Parameters: - Point (HatchGen_PointOnElement &) –
- Confusion (float) –
Return type:
-
Delete()¶ - linux porting
Return type: void
-
IsEqual()¶ - Tests if the point is equal to an other. A point on hatching P1 is said to be equal to an other P2 if : | P2.myParam - P1.myParam | <= Confusion
Parameters: - Point (HatchGen_PointOnHatching &) –
- Confusion (float) –
Return type:
-
IsGreater()¶ - Tests if the point is greater than an other. A point on hatching P1 is said to be greater than an other P2 if : P1.myParam - P2.myParam > Confusion
Parameters: - Point (HatchGen_PointOnHatching &) –
- Confusion (float) –
Return type:
-
IsLower()¶ - Tests if the point is lower than an other. A point on hatching P1 is said to be lower than an other P2 if : P2.myParam - P1.myParam > Confusion
Parameters: - Point (HatchGen_PointOnHatching &) –
- Confusion (float) –
Return type:
-
Point()¶ - Returns the Index-th point on element of the point. The exception OutOfRange is raised if Index > NbPoints.
Parameters: Index (int) – Return type: HatchGen_PointOnElement
-
RemPoint()¶ - Removes the Index-th point on element of the point. The exception OutOfRange is raised if Index > NbPoints.
Parameters: Index (int) – Return type: None
-
thisown¶ The membership flag
-
class
HatchGen_PointsOnElement(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequenceReturn type: None Parameters: Other (HatchGen_PointsOnElement &) – Return type: None -
Append()¶ Parameters: - T (HatchGen_PointOnElement &) –
- S (HatchGen_PointsOnElement &) –
Return type: Return type:
-
Assign()¶ Parameters: Other (HatchGen_PointsOnElement &) – Return type: HatchGen_PointsOnElement
-
ChangeValue()¶ Parameters: Index (int) – Return type: HatchGen_PointOnElement
-
First()¶ Return type: HatchGen_PointOnElement
-
InsertAfter()¶ Parameters: - Index (int) –
- T (HatchGen_PointOnElement &) –
- Index –
- S (HatchGen_PointsOnElement &) –
Return type: Return type:
-
InsertBefore()¶ Parameters: - Index (int) –
- T (HatchGen_PointOnElement &) –
- Index –
- S (HatchGen_PointsOnElement &) –
Return type: Return type:
-
Last()¶ Return type: HatchGen_PointOnElement
-
Prepend()¶ Parameters: - T (HatchGen_PointOnElement &) –
- S (HatchGen_PointsOnElement &) –
Return type: Return type:
-
Remove()¶ Parameters: Return type: Return type:
-
Set()¶ Parameters: Other (HatchGen_PointsOnElement &) – Return type: HatchGen_PointsOnElement
-
Value()¶ Parameters: Index (int) – Return type: HatchGen_PointOnElement
-
thisown¶ The membership flag
-
-
class
HatchGen_PointsOnHatching(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequenceReturn type: None Parameters: Other (HatchGen_PointsOnHatching &) – Return type: None -
Append()¶ Parameters: - T (HatchGen_PointOnHatching &) –
- S (HatchGen_PointsOnHatching &) –
Return type: Return type:
-
Assign()¶ Parameters: Other (HatchGen_PointsOnHatching &) – Return type: HatchGen_PointsOnHatching
-
ChangeValue()¶ Parameters: Index (int) – Return type: HatchGen_PointOnHatching
-
First()¶ Return type: HatchGen_PointOnHatching
-
InsertAfter()¶ Parameters: - Index (int) –
- T (HatchGen_PointOnHatching &) –
- Index –
- S (HatchGen_PointsOnHatching &) –
Return type: Return type:
-
InsertBefore()¶ Parameters: - Index (int) –
- T (HatchGen_PointOnHatching &) –
- Index –
- S (HatchGen_PointsOnHatching &) –
Return type: Return type:
-
Last()¶ Return type: HatchGen_PointOnHatching
-
Prepend()¶ Parameters: - T (HatchGen_PointOnHatching &) –
- S (HatchGen_PointsOnHatching &) –
Return type: Return type:
-
Remove()¶ Parameters: Return type: Return type:
-
Set()¶ Parameters: Other (HatchGen_PointsOnHatching &) – Return type: HatchGen_PointsOnHatching
-
Value()¶ Parameters: Index (int) – Return type: HatchGen_PointOnHatching
-
thisown¶ The membership flag
-
-
class
HatchGen_SequenceNodeOfDomains(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNodeParameters: - I (HatchGen_Domain &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle()¶
-
Value()¶ Return type: HatchGen_Domain
-
thisown¶ The membership flag
-
class
HatchGen_SequenceNodeOfPointsOnElement(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNodeParameters: - I (HatchGen_PointOnElement &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle()¶
-
Value()¶ Return type: HatchGen_PointOnElement
-
thisown¶ The membership flag
-
class
HatchGen_SequenceNodeOfPointsOnHatching(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNodeParameters: - I (HatchGen_PointOnHatching &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle()¶
-
Value()¶ Return type: HatchGen_PointOnHatching
-
thisown¶ The membership flag
-
class
SwigPyIterator(*args, **kwargs)¶ Bases:
object-
advance()¶
-
copy()¶
-
decr()¶
-
distance()¶
-
equal()¶
-
incr()¶
-
next()¶
-
previous()¶
-
thisown¶ The membership flag
-
value()¶
-
-
register_handle(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases