OCC.HatchGen module

class Handle_HatchGen_SequenceNodeOfDomains(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_HatchGen_SequenceNodeOfPointsOnElement(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_HatchGen_SequenceNodeOfPointsOnHatching(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

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:

None

  • 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:

None

Dump()
  • Dump of the domain.
Parameters:Index (int) – default value is 0
Return type:None
FirstPoint()
  • Returns the first point of the domain. The exception DomainError is raised if HasFirstPoint returns False.
Return type:HatchGen_PointOnHatching
HasFirstPoint()
  • Returns True if the domain has a first point.
Return type:bool
HasSecondPoint()
  • Returns True if the domain has a second point.
Return type:bool
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:

None

  • 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_BaseSequence

Return type:None
Parameters:Other (HatchGen_Domains &) –
Return type:None
Append()
Parameters:
  • T (HatchGen_Domain &) –
  • S (HatchGen_Domains &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (HatchGen_Domains &) –
Return type:HatchGen_Domains
ChangeValue()
Parameters:Index (int) –
Return type:HatchGen_Domain
Clear()
Return type:None
First()
Return type:HatchGen_Domain
InsertAfter()
Parameters:
  • Index (int) –
  • T (HatchGen_Domain &) –
  • Index
  • S (HatchGen_Domains &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • T (HatchGen_Domain &) –
  • Index
  • S (HatchGen_Domains &) –
Return type:

None

Return type:

None

Last()
Return type:HatchGen_Domain
Prepend()
Parameters:
  • T (HatchGen_Domain &) –
  • S (HatchGen_Domains &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

Set()
Parameters:Other (HatchGen_Domains &) –
Return type:HatchGen_Domains
SetValue()
Parameters:
  • Index (int) –
  • I (HatchGen_Domain &) –
Return type:

None

Split()
Parameters:
  • Index (int) –
  • Sub (HatchGen_Domains &) –
Return type:

None

Value()
Parameters:Index (int) –
Return type:HatchGen_Domain
thisown

The membership flag

class HatchGen_IntersectionPoint(*args, **kwargs)

Bases: object

Dump()
  • Dump of the point on element.
Parameters:Index (int) – default value is 0
Return type:void
Index()
  • Returns the index of the supporting curve.
Return type:int
Parameter()
  • Returns the parameter on the curve.
Return type:float
Position()
  • Returns the position of the point on the curve.
Return type:TopAbs_Orientation
SegmentBeginning()
  • Returns the flag that the point is the beginning of a segment.
Return type:bool
SegmentEnd()
  • Returns the flag that the point is the end of a segment.
Return type:bool
SetIndex()
  • Sets the index of the supporting curve.
Parameters:Index (int) –
Return type:None
SetParameter()
  • Sets the parameter on the curve.
Parameters:Parameter (float) –
Return type:None
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:

bool

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:

bool

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:

None

ClrPoints()
  • Removes all the points on element of the point.
Return type:None
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:

bool

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:

bool

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:

bool

NbPoints()
  • Returns the number of elements intersecting the hatching at this point.
Return type:int
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_BaseSequence

Return type:None
Parameters:Other (HatchGen_PointsOnElement &) –
Return type:None
Append()
Parameters:
  • T (HatchGen_PointOnElement &) –
  • S (HatchGen_PointsOnElement &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (HatchGen_PointsOnElement &) –
Return type:HatchGen_PointsOnElement
ChangeValue()
Parameters:Index (int) –
Return type:HatchGen_PointOnElement
Clear()
Return type:None
First()
Return type:HatchGen_PointOnElement
InsertAfter()
Parameters:
  • Index (int) –
  • T (HatchGen_PointOnElement &) –
  • Index
  • S (HatchGen_PointsOnElement &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • T (HatchGen_PointOnElement &) –
  • Index
  • S (HatchGen_PointsOnElement &) –
Return type:

None

Return type:

None

Last()
Return type:HatchGen_PointOnElement
Prepend()
Parameters:
  • T (HatchGen_PointOnElement &) –
  • S (HatchGen_PointsOnElement &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

Set()
Parameters:Other (HatchGen_PointsOnElement &) –
Return type:HatchGen_PointsOnElement
SetValue()
Parameters:
  • Index (int) –
  • I (HatchGen_PointOnElement &) –
Return type:

None

Split()
Parameters:
  • Index (int) –
  • Sub (HatchGen_PointsOnElement &) –
Return type:

None

Value()
Parameters:Index (int) –
Return type:HatchGen_PointOnElement
thisown

The membership flag

class HatchGen_PointsOnHatching(*args)

Bases: OCC.TCollection.TCollection_BaseSequence

Return type:None
Parameters:Other (HatchGen_PointsOnHatching &) –
Return type:None
Append()
Parameters:
  • T (HatchGen_PointOnHatching &) –
  • S (HatchGen_PointsOnHatching &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (HatchGen_PointsOnHatching &) –
Return type:HatchGen_PointsOnHatching
ChangeValue()
Parameters:Index (int) –
Return type:HatchGen_PointOnHatching
Clear()
Return type:None
First()
Return type:HatchGen_PointOnHatching
InsertAfter()
Parameters:
  • Index (int) –
  • T (HatchGen_PointOnHatching &) –
  • Index
  • S (HatchGen_PointsOnHatching &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • T (HatchGen_PointOnHatching &) –
  • Index
  • S (HatchGen_PointsOnHatching &) –
Return type:

None

Return type:

None

Last()
Return type:HatchGen_PointOnHatching
Prepend()
Parameters:
  • T (HatchGen_PointOnHatching &) –
  • S (HatchGen_PointsOnHatching &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

Set()
Parameters:Other (HatchGen_PointsOnHatching &) –
Return type:HatchGen_PointsOnHatching
SetValue()
Parameters:
  • Index (int) –
  • I (HatchGen_PointOnHatching &) –
Return type:

None

Split()
Parameters:
  • Index (int) –
  • Sub (HatchGen_PointsOnHatching &) –
Return type:

None

Value()
Parameters:Index (int) –
Return type:HatchGen_PointOnHatching
thisown

The membership flag

class HatchGen_SequenceNodeOfDomains(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (HatchGen_Domain &) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:HatchGen_Domain
thisown

The membership flag

class HatchGen_SequenceNodeOfPointsOnElement(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (HatchGen_PointOnElement &) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:HatchGen_PointOnElement
thisown

The membership flag

class HatchGen_SequenceNodeOfPointsOnHatching(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (HatchGen_PointOnHatching &) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

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