OCC.Hatch module

class OCC.Hatch.Handle_Hatch_SequenceNodeOfSequenceOfLine(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.Hatch.Handle_Hatch_SequenceNodeOfSequenceOfParameter(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.Hatch.Hatch_Hatcher(*args)

Bases: object

AddLine()
  • Add a line <L> to be trimmed. <T> the type is only kept from information. It is not used in the computation.
Parameters:
  • L (gp_Lin2d) –
  • T (Hatch_LineForm) – default value is Hatch_ANYLINE
Return type:

None

  • Add a line <L> to be trimmed. <T> the type is only kept from information. It is not used in the computation.
Parameters:
  • L (gp_Lin2d) –
  • T (Hatch_LineForm) – default value is Hatch_ANYLINE
Return type:

None

  • Add an infinite line on direction <D> at distance <Dist> from the origin to be trimmed. <Dist> may be negative. If O is the origin of the 2D plane, and V the vector perpendicular to D (in the direct direction). A point P is on the line if : OP dot V = Dist The parameter of P on the line is OP dot D
Parameters:
  • D (gp_Dir2d) –
  • Dist (float) –
Return type:

None

AddXLine()
  • Add an infinite line parallel to the Y-axis at abciss <X>.
Parameters:X (float) –
Return type:None
AddYLine()
  • Add an infinite line parallel to the X-axis at ordinate <Y>.
Parameters:Y (float) –
Return type:None
Coordinate()
  • Returns the X or Y coordinate of the line of index <I> if it is a X or a Y line.
Parameters:I (Standard_Integer) –
Return type:float
End()
  • Returns the last parameter of interval <J> on line <I>.
Parameters:
  • I (Standard_Integer) –
  • J (Standard_Integer) –
Return type:

float

EndIndex()
  • Returns the last Index and Par2 of interval <J> on line <I>.
Parameters:
  • I (Standard_Integer) –
  • J (Standard_Integer) –
  • Index (Standard_Integer &) –
  • Par2 (float &) –
Return type:

None

IsXLine()
  • Returns True if the line of index <I> has a constant X value.
Parameters:I (Standard_Integer) –
Return type:bool
IsYLine()
  • Returns True if the line of index <I> has a constant Y value.
Parameters:I (Standard_Integer) –
Return type:bool
Line()
  • Returns the line of index <I>.
Parameters:I (Standard_Integer) –
Return type:gp_Lin2d
LineForm()
  • Returns the type of the line of index <I>.
Parameters:I (Standard_Integer) –
Return type:Hatch_LineForm
NbIntervals()
  • Returns the total number of intervals on all the lines.
Return type:int
  • Returns the number of intervals on line of index <I>.
Parameters:I (Standard_Integer) –
Return type:int
NbLines()
  • Returns the number of lines.
Return type:int
Start()
  • Returns the first parameter of interval <J> on line <I>.
Parameters:
  • I (Standard_Integer) –
  • J (Standard_Integer) –
Return type:

float

StartIndex()
  • Returns the first Index and Par2 of interval <J> on line <I>.
Parameters:
  • I (Standard_Integer) –
  • J (Standard_Integer) –
  • Index (Standard_Integer &) –
  • Par2 (float &) –
Return type:

None

Tolerance()
Parameters:Tol (float) –
Return type:None
Return type:float
Trim()
  • Trims the lines at intersections with <L>.
Parameters:
  • L (gp_Lin2d) –
  • Index (Standard_Integer) – default value is 0
Return type:

None

  • Trims the lines at intersections with <L>.
Parameters:
  • L (gp_Lin2d) –
  • Index (Standard_Integer) – default value is 0
Return type:

None

  • Trims the lines at intersections with <L> in the parameter range <Start>, <End>
Parameters:
  • L (gp_Lin2d) –
  • Start (float) –
  • End (float) –
  • Index (Standard_Integer) – default value is 0
Return type:

None

  • Trims the lines at intersections with <L> in the parameter range <Start>, <End>
Parameters:
  • L (gp_Lin2d) –
  • Start (float) –
  • End (float) –
  • Index (Standard_Integer) – default value is 0
Return type:

None

  • Trims the line at intersection with the oriented segment P1,P2.
Parameters:
  • P1 (gp_Pnt2d) –
  • P2 (gp_Pnt2d) –
  • Index (Standard_Integer) – default value is 0
Return type:

None

  • Trims the line at intersection with the oriented segment P1,P2.
Parameters:
  • P1 (gp_Pnt2d) –
  • P2 (gp_Pnt2d) –
  • Index (Standard_Integer) – default value is 0
Return type:

None

thisown

The membership flag

class OCC.Hatch.Hatch_Line(*args)

Bases: object

AddIntersection()
  • Insert a new intersection in the sorted list.
Parameters:
  • Par1 (float) –
  • Start (bool) –
  • Index (Standard_Integer) –
  • Par2 (float) –
  • theToler (float) –
Return type:

None

thisown

The membership flag

class OCC.Hatch.Hatch_Parameter(*args)

Bases: object

thisown

The membership flag

class OCC.Hatch.Hatch_SequenceNodeOfSequenceOfLine(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Hatch_SequenceNodeOfSequenceOfLine_GetHandle(Hatch_SequenceNodeOfSequenceOfLine self) -> Handle_Hatch_SequenceNodeOfSequenceOfLine

Value()
Return type:Hatch_Line
thisown

The membership flag

class OCC.Hatch.Hatch_SequenceNodeOfSequenceOfParameter(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Hatch_SequenceNodeOfSequenceOfParameter_GetHandle(Hatch_SequenceNodeOfSequenceOfParameter self) -> Handle_Hatch_SequenceNodeOfSequenceOfParameter

Value()
Return type:Hatch_Parameter
thisown

The membership flag

class OCC.Hatch.Hatch_SequenceOfLine

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Hatch_Line &) –
  • S (Hatch_SequenceOfLine &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (Hatch_SequenceOfLine &) –
Return type:Hatch_SequenceOfLine
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Hatch_Line
Clear()
Return type:None
First()
Return type:Hatch_Line
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Hatch_Line &) –
  • Index
  • S (Hatch_SequenceOfLine &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Hatch_Line &) –
  • Index
  • S (Hatch_SequenceOfLine &) –
Return type:

None

Return type:

None

Last()
Return type:Hatch_Line
Prepend()
Parameters:
  • T (Hatch_Line &) –
  • S (Hatch_SequenceOfLine &) –
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 (Hatch_SequenceOfLine &) –
Return type:Hatch_SequenceOfLine
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Hatch_Line &) –
Return type:

None

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

None

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

The membership flag

class OCC.Hatch.Hatch_SequenceOfParameter

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Hatch_Parameter &) –
  • S (Hatch_SequenceOfParameter &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (Hatch_SequenceOfParameter &) –
Return type:Hatch_SequenceOfParameter
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Hatch_Parameter
Clear()
Return type:None
First()
Return type:Hatch_Parameter
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Hatch_Parameter &) –
  • Index
  • S (Hatch_SequenceOfParameter &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Hatch_Parameter &) –
  • Index
  • S (Hatch_SequenceOfParameter &) –
Return type:

None

Return type:

None

Last()
Return type:Hatch_Parameter
Prepend()
Parameters:
  • T (Hatch_Parameter &) –
  • S (Hatch_SequenceOfParameter &) –
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 (Hatch_SequenceOfParameter &) –
Return type:Hatch_SequenceOfParameter
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Hatch_Parameter &) –
Return type:

None

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

None

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

The membership flag

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

Bases: object

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

The membership flag

value()