OCC.HatchGen module

class OCC.HatchGen.Handle_HatchGen_SequenceNodeOfDomains(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.HatchGen.Handle_HatchGen_SequenceNodeOfPointsOnElement(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.HatchGen.Handle_HatchGen_SequenceNodeOfPointsOnHatching(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.HatchGen.HatchGen_Domain(*args)

Bases: object

Dump()
  • Dump of the domain.
Parameters:Index (Standard_Integer) – default value is 0
Return type:None
  • Dump of the domain.
Parameters:Index (Standard_Integer) – 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 OCC.HatchGen.HatchGen_Domains

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:HatchGen_Domain
Clear()
Return type:None
First()
Return type:HatchGen_Domain
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (HatchGen_Domain &) –
  • Index
  • S (HatchGen_Domains &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

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

None

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

None

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

The membership flag

class OCC.HatchGen.HatchGen_IntersectionPoint(*args, **kwargs)

Bases: object

Dump()
  • Dump of the point on element.
Parameters:Index (Standard_Integer) – default value is 0
Return type:void
  • Dump of the point on element.
Parameters:Index (Standard_Integer) – 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 (Standard_Integer) –
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
  • 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
  • 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 OCC.HatchGen.HatchGen_PointOnElement(*args)

Bases: OCC.HatchGen.HatchGen_IntersectionPoint

Dump()
  • Dump of the point on element.
Parameters:Index (Standard_Integer) – default value is 0
Return type:None
  • Dump of the point on element.
Parameters:Index (Standard_Integer) – default value is 0
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 OCC.HatchGen.HatchGen_PointOnHatching(*args)

Bases: OCC.HatchGen.HatchGen_IntersectionPoint

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
Dump()
  • Dump of the point.
Parameters:Index (Standard_Integer) – default value is 0
Return type:None
  • Dump of the point.
Parameters:Index (Standard_Integer) – default value is 0
Return type:None
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 (Standard_Integer) –
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 (Standard_Integer) –
Return type:None
thisown

The membership flag

class OCC.HatchGen.HatchGen_PointsOnElement

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:HatchGen_PointOnElement
Clear()
Return type:None
First()
Return type:HatchGen_PointOnElement
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (HatchGen_PointOnElement &) –
  • Index
  • S (HatchGen_PointsOnElement &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

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

None

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

None

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

The membership flag

class OCC.HatchGen.HatchGen_PointsOnHatching

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:HatchGen_PointOnHatching
Clear()
Return type:None
First()
Return type:HatchGen_PointOnHatching
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (HatchGen_PointOnHatching &) –
  • Index
  • S (HatchGen_PointsOnHatching &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

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

None

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

None

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

The membership flag

class OCC.HatchGen.HatchGen_SequenceNodeOfDomains(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

HatchGen_SequenceNodeOfDomains_GetHandle(HatchGen_SequenceNodeOfDomains self) -> Handle_HatchGen_SequenceNodeOfDomains

Value()
Return type:HatchGen_Domain
thisown

The membership flag

class OCC.HatchGen.HatchGen_SequenceNodeOfPointsOnElement(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

HatchGen_SequenceNodeOfPointsOnElement_GetHandle(HatchGen_SequenceNodeOfPointsOnElement self) -> Handle_HatchGen_SequenceNodeOfPointsOnElement

Value()
Return type:HatchGen_PointOnElement
thisown

The membership flag

class OCC.HatchGen.HatchGen_SequenceNodeOfPointsOnHatching(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

HatchGen_SequenceNodeOfPointsOnHatching_GetHandle(HatchGen_SequenceNodeOfPointsOnHatching self) -> Handle_HatchGen_SequenceNodeOfPointsOnHatching

Value()
Return type:HatchGen_PointOnHatching
thisown

The membership flag

class OCC.HatchGen.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()