OCC.Core.HatchGen module

HatchGen module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_hatchgen.html

class HatchGen_Domain(*args)

Bases: object

  • Creates an infinite domain.
    rtype

    None* Creates a domain for the curve associated to a hatching.

    param P1

    type P1

    HatchGen_PointOnHatching

    param P2

    type P2

    HatchGen_PointOnHatching

    rtype

    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.

    param P

    type P

    HatchGen_PointOnHatching

    param First

    type First

    bool

    rtype

    None

Dump()
  • Dump of the domain.
    param Index

    default value is 0

    type Index

    int

    rtype

    None

FirstPoint()
  • Returns the first point of the domain. The exception DomainError is raised if HasFirstPoint returns False.
    rtype

    HatchGen_PointOnHatching

HasFirstPoint()
  • Returns True if the domain has a first point.
    rtype

    bool

HasSecondPoint()
  • Returns True if the domain has a second point.
    rtype

    bool

SecondPoint()
  • Returns the second point of the domain. The exception DomainError is raised if HasSecondPoint returns False.
    rtype

    HatchGen_PointOnHatching

SetFirstPoint()
  • Sets the first point of the domain.
    param P

    type P

    HatchGen_PointOnHatching

    rtype

    None* Sets the first point of the domain at the infinite.

    rtype

    None

SetPoints()
  • Sets the first and the second points of the domain.
    param P1

    type P1

    HatchGen_PointOnHatching

    param P2

    type P2

    HatchGen_PointOnHatching

    rtype

    None* Sets the first and the second points of the domain as the infinite.

    rtype

    None

SetSecondPoint()
  • Sets the second point of the domain.
    param P

    type P

    HatchGen_PointOnHatching

    rtype

    None* Sets the second point of the domain at the infinite.

    rtype

    None

property thisown

The membership flag

class HatchGen_Domains(*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 HatchGen_IntersectionPoint(*args, **kwargs)

Bases: object

Dump()
  • Dump of the point on element.
    param Index

    default value is 0

    type Index

    int

    rtype

    void

Index()
  • Returns the index of the supporting curve.
    rtype

    int

Parameter()
  • Returns the parameter on the curve.
    rtype

    float

Position()
  • Returns the position of the point on the curve.
    rtype

    TopAbs_Orientation

SegmentBeginning()
  • Returns the flag that the point is the beginning of a segment.
    rtype

    bool

SegmentEnd()
  • Returns the flag that the point is the end of a segment.
    rtype

    bool

SetIndex()
  • Sets the index of the supporting curve.
    param Index

    type Index

    int

    rtype

    None

SetParameter()
  • Sets the parameter on the curve.
    param Parameter

    type Parameter

    float

    rtype

    None

SetPosition()
  • Sets the position of the point on the curve.
    param Position

    type Position

    TopAbs_Orientation

    rtype

    None

SetSegmentBeginning()
  • Sets the flag that the point is the beginning of a segment.
    param State

    default value is Standard_True

    type State

    bool

    rtype

    None

SetSegmentEnd()
  • Sets the flag that the point is the end of a segment.
    param State

    default value is Standard_True

    type State

    bool

    rtype

    None

SetStateAfter()
  • Sets the transition state after the intersection.
    param State

    type State

    TopAbs_State

    rtype

    None

SetStateBefore()
  • Sets the transition state before the intersection.
    param State

    type State

    TopAbs_State

    rtype

    None

StateAfter()
  • Returns the transition state after of the intersection.
    rtype

    TopAbs_State

StateBefore()
  • Returns the transition state before the intersection.
    rtype

    TopAbs_State

property thisown

The membership flag

class HatchGen_PointOnElement(*args)

Bases: OCC.Core.HatchGen.HatchGen_IntersectionPoint

  • —Purpose; Creates an empty point on element
    rtype

    None* Creates a point from an other.

    param Point

    type Point

    HatchGen_PointOnElement

    rtype

    None* Creates a point from an intersection point.

    param Point

    type Point

    IntRes2d_IntersectionPoint

    rtype

    None

IntersectionType()
  • Returns the intersection type at this point.
    rtype

    HatchGen_IntersectionType

IsDifferent()
  • Tests if the point is different from an other.
    param Point

    type Point

    HatchGen_PointOnElement

    param Confusion

    type Confusion

    float

    rtype

    bool

IsIdentical()
  • Tests if the point is identical to an other. That is to sayP1.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
    param Point

    type Point

    HatchGen_PointOnElement

    param Confusion

    type Confusion

    float

    rtype

    bool

SetIntersectionType()
  • Sets the intersection type at this point.
    param Type

    type Type

    HatchGen_IntersectionType

    rtype

    None

property thisown

The membership flag

class HatchGen_PointOnHatching(*args)

Bases: OCC.Core.HatchGen.HatchGen_IntersectionPoint

  • Creates an empty point.
    rtype

    None* Creates a point from an other.

    param Point

    type Point

    HatchGen_PointOnHatching

    rtype

    None* Creates a point from an intersection point.

    param Point

    type Point

    IntRes2d_IntersectionPoint

    rtype

    None

AddPoint()
  • Adds a point on element to the point.
    param Point

    type Point

    HatchGen_PointOnElement

    param Confusion

    type Confusion

    float

    rtype

    None

ClrPoints()
  • Removes all the points on element of the point.
    rtype

    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
    param Point

    type Point

    HatchGen_PointOnHatching

    param Confusion

    type Confusion

    float

    rtype

    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 ifP1.myParam - P2.myParam > Confusion
    param Point

    type Point

    HatchGen_PointOnHatching

    param Confusion

    type Confusion

    float

    rtype

    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 ifP2.myParam - P1.myParam > Confusion
    param Point

    type Point

    HatchGen_PointOnHatching

    param Confusion

    type Confusion

    float

    rtype

    bool

NbPoints()
  • Returns the number of elements intersecting the hatching at this point.
    rtype

    int

Point()
  • Returns the Index-th point on element of the point. The exception OutOfRange is raised if Index > NbPoints.
    param Index

    type Index

    int

    rtype

    HatchGen_PointOnElement

RemPoint()
  • Removes the Index-th point on element of the point. The exception OutOfRange is raised if Index > NbPoints.
    param Index

    type Index

    int

    rtype

    None

property thisown

The membership flag

class HatchGen_PointsOnElement(*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 HatchGen_PointsOnHatching(*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 SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()