OCC.Core.Hatch module¶
Hatch module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_hatch.html
-
class
Hatch_Hatcher(*args)¶ Bases:
object- Returns a empty hatcher. <Tol> is the tolerance for intersections.
- param Tol
- type Tol
float
- param Oriented
default value is Standard_True
- type Oriented
bool
- rtype
None
-
AddLine()¶ - Add a line <L> to be trimmed. <T> the type is only kept from information. It is not used in the computation.
- param L
- type L
gp_Lin2d
- param T
default value is Hatch_ANYLINE
- type T
Hatch_LineForm
- rtype
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
- param D
- type D
gp_Dir2d
- param Dist
- type Dist
float
- rtype
None
-
AddXLine()¶ - Add an infinite line parallel to the Y-axis at abciss <X>.
- param X
- type X
float
- rtype
None
-
AddYLine()¶ - Add an infinite line parallel to the X-axis at ordinate <Y>.
- param Y
- type Y
float
- rtype
None
-
Coordinate()¶ - Returns the X or Y coordinate of the line of index <I> if it is a X or a Y line.
- param I
- type I
int
- rtype
float
-
End()¶ - Returns the last parameter of interval <J> on line <I>.
- param I
- type I
int
- param J
- type J
int
- rtype
float
-
EndIndex()¶ - Returns the last Index and Par2 of interval <J> on line <I>.
- param I
- type I
int
- param J
- type J
int
- param Index
- type Index
int &
- param Par2
- type Par2
float &
- rtype
None
-
IsXLine()¶ - Returns True if the line of index <I> has a constant X value.
- param I
- type I
int
- rtype
bool
-
IsYLine()¶ - Returns True if the line of index <I> has a constant Y value.
- param I
- type I
int
- rtype
bool
-
Line()¶ - Returns the line of index <I>.
- param I
- type I
int
- rtype
gp_Lin2d
-
LineForm()¶ - Returns the type of the line of index <I>.
- param I
- type I
int
- rtype
Hatch_LineForm
-
NbIntervals()¶ - Returns the total number of intervals on all the lines.
- rtype
int* Returns the number of intervals on line of index <I>.
- param I
- type I
int
- rtype
int
-
NbLines()¶ - Returns the number of lines.
- rtype
int
-
Start()¶ - Returns the first parameter of interval <J> on line <I>.
- param I
- type I
int
- param J
- type J
int
- rtype
float
-
StartIndex()¶ - Returns the first Index and Par2 of interval <J> on line <I>.
- param I
- type I
int
- param J
- type J
int
- param Index
- type Index
int &
- param Par2
- type Par2
float &
- rtype
None
-
Tolerance()¶ - Parameters
Tol –
- type Tol
float
- rtype
None:rtype: float
-
Trim()¶ - Trims the lines at intersections with <L>.
- param L
- type L
gp_Lin2d
- param Index
default value is 0
- type Index
int
- rtype
None* Trims the lines at intersections with <L> in the parameter range <Start>, <End>
- param L
- type L
gp_Lin2d
- param Start
- type Start
float
- param End
- type End
float
- param Index
default value is 0
- type Index
int
- rtype
None* Trims the line at intersection with the oriented segment P1,P2.
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- param Index
default value is 0
- type Index
int
- rtype
None
-
property
thisown¶ The membership flag
-
class
Hatch_Line(*args)¶ Bases:
object- Return type
None:param L: :type L: gp_Lin2d :param T: :type T: Hatch_LineForm :rtype: None
-
AddIntersection()¶ - Insert a new intersection in the sorted list.
- param Par1
- type Par1
float
- param Start
- type Start
bool
- param Index
- type Index
int
- param Par2
- type Par2
float
- param theToler
- type theToler
float
- rtype
None
-
property
thisown¶ The membership flag
-
class
Hatch_Parameter(*args)¶ Bases:
object- Return type
None:param Par1: :type Par1: float :param Start: :type Start: bool :param Index: default value is 0 :type Index: int :param Par2: default value is 0 :type Par2: float :rtype: None
-
property
thisown¶ The membership flag
-
class
Hatch_SequenceOfLine(*args)¶ Bases:
object-
Append()¶
-
Assign()¶
-
ChangeFirst()¶
-
ChangeLast()¶
-
ChangeValue()¶
-
Clear()¶
-
Exchange()¶
-
First()¶
-
InsertAfter()¶
-
InsertBefore()¶
-
IsEmpty()¶
-
Last()¶
-
Length()¶
-
Lower()¶
-
Prepend()¶
-
Remove()¶
-
Reverse()¶
-
Set()¶
-
SetValue()¶
-
Size()¶
-
Split()¶
-
Upper()¶
-
Value()¶
-
begin()¶
-
cbegin()¶
-
cend()¶
-
static
delNode()¶
-
end()¶
-
property
thisown¶ The membership flag
-
-
class
Hatch_SequenceOfParameter(*args)¶ Bases:
object-
Append()¶
-
Assign()¶
-
ChangeFirst()¶
-
ChangeLast()¶
-
ChangeValue()¶
-
Clear()¶
-
Exchange()¶
-
First()¶
-
InsertAfter()¶
-
InsertBefore()¶
-
IsEmpty()¶
-
Last()¶
-
Length()¶
-
Lower()¶
-
Prepend()¶
-
Remove()¶
-
Reverse()¶
-
Set()¶
-
SetValue()¶
-
Size()¶
-
Split()¶
-
Upper()¶
-
Value()¶
-
begin()¶
-
cbegin()¶
-
cend()¶
-
static
delNode()¶
-
end()¶
-
property
thisown¶ The membership flag
-