OCC.Geom2dHatch module

class OCC.Geom2dHatch.Geom2dHatch_ClassifierOfHatcher(*args)

Bases: object

Edge()
Return type:Geom2dAdaptor_Curve
EdgeParameter()
Return type:float
NoWires()
Return type:bool
Perform()
Parameters:
  • F (Geom2dHatch_ElementsOfHatcher &) –
  • P (gp_Pnt2d) –
  • Tol (float) –
Return type:

None

Position()
Return type:IntRes2d_Position
Rejected()
Return type:bool
State()
Return type:TopAbs_State
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_DataMapIteratorOfHatchingsOfHatcher(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (Geom2dHatch_HatchingsOfHatcher &) –
Return type:None
Key()
Return type:int
Value()
Return type:Geom2dHatch_HatchingOfHatcher
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_DataMapIteratorOfMapOfElementsOfElementsOfHatcher(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (Geom2dHatch_MapOfElementsOfElementsOfHatcher &) –
Return type:None
Key()
Return type:int
Value()
Return type:Geom2dHatch_ElementOfHatcher
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_DataMapNodeOfHatchingsOfHatcher(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

Geom2dHatch_DataMapNodeOfHatchingsOfHatcher_GetHandle(Geom2dHatch_DataMapNodeOfHatchingsOfHatcher self) -> Handle_Geom2dHatch_DataMapNodeOfHatchingsOfHatcher

GetKey()

Geom2dHatch_DataMapNodeOfHatchingsOfHatcher_GetKey(Geom2dHatch_DataMapNodeOfHatchingsOfHatcher self) -> Standard_Integer

SetKey()

Geom2dHatch_DataMapNodeOfHatchingsOfHatcher_SetKey(Geom2dHatch_DataMapNodeOfHatchingsOfHatcher self, Standard_Integer value)

Value()
Return type:Geom2dHatch_HatchingOfHatcher
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_DataMapNodeOfMapOfElementsOfElementsOfHatcher(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

Geom2dHatch_DataMapNodeOfMapOfElementsOfElementsOfHatcher_GetHandle(Geom2dHatch_DataMapNodeOfMapOfElementsOfElementsOfHatcher self) -> Handle_Geom2dHatch_DataMapNodeOfMapOfElementsOfElementsOfHatcher

GetKey()

Geom2dHatch_DataMapNodeOfMapOfElementsOfElementsOfHatcher_GetKey(Geom2dHatch_DataMapNodeOfMapOfElementsOfElementsOfHatcher self) -> Standard_Integer

SetKey()

Geom2dHatch_DataMapNodeOfMapOfElementsOfElementsOfHatcher_SetKey(Geom2dHatch_DataMapNodeOfMapOfElementsOfElementsOfHatcher self, Standard_Integer value)

Value()
Return type:Geom2dHatch_ElementOfHatcher
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_ElementOfHatcher(*args)

Bases: object

ChangeCurve()
Return type:Geom2dAdaptor_Curve
Curve()
Return type:Geom2dAdaptor_Curve
Orientation()
Parameters:Orientation (TopAbs_Orientation) –
Return type:None
Return type:TopAbs_Orientation
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_ElementsOfHatcher(*args)

Bases: object

Bind()
Parameters:
  • K (Standard_Integer &) –
  • I (Geom2dHatch_ElementOfHatcher &) –
Return type:

bool

ChangeFind()
Parameters:K (Standard_Integer &) –
Return type:Geom2dHatch_ElementOfHatcher
Clear()
Return type:None
CurrentEdge()
Parameters:
  • E (Geom2dAdaptor_Curve &) –
  • Or (TopAbs_Orientation &) –
Return type:

None

Find()
Parameters:K (Standard_Integer &) –
Return type:Geom2dHatch_ElementOfHatcher
InitEdges()
Return type:None
InitWires()
Return type:None
IsBound()
Parameters:K (Standard_Integer &) –
Return type:bool
MoreEdges()
Return type:bool
MoreWires()
Return type:bool
NextEdge()
Return type:None
NextWire()
Return type:None
OtherSegment()
Parameters:
  • P (gp_Pnt2d) –
  • L (gp_Lin2d) –
  • Par (float &) –
Return type:

bool

Reject()
Parameters:P (gp_Pnt2d) –
Return type:bool
RejectEdge()
Parameters:
  • L (gp_Lin2d) –
  • Par (float) –
Return type:

bool

RejectWire()
Parameters:
  • L (gp_Lin2d) –
  • Par (float) –
Return type:

bool

Segment()
Parameters:
  • P (gp_Pnt2d) –
  • L (gp_Lin2d) –
  • Par (float &) –
Return type:

bool

UnBind()
Parameters:K (Standard_Integer &) –
Return type:bool
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_FClass2dOfClassifierOfHatcher

Bases: object

ClosestIntersection()
Return type:int
Compare()
Parameters:
  • E (Geom2dAdaptor_Curve &) –
  • Or (TopAbs_Orientation) –
Return type:

None

Intersector()
Return type:Geom2dHatch_Intersector
IsHeadOrEnd()
Return type:bool
Parameter()
Return type:float
Reset()
Parameters:
  • L (gp_Lin2d) –
  • P (float) –
  • Tol (float) –
Return type:

None

State()
Return type:TopAbs_State
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_Hatcher(*args)

Bases: object

AddElement()
Parameters:
  • Curve (Geom2dAdaptor_Curve &) –
  • Orientation (TopAbs_Orientation) – default value is TopAbs_FORWARD
  • Curve
  • Orientation – default value is TopAbs_FORWARD
Return type:

int

Return type:

int

AddHatching()
Parameters:Curve (Geom2dAdaptor_Curve &) –
Return type:int
ChangeIntersector()
Return type:Geom2dHatch_Intersector
Clear()
Return type:None
ClrElements()
Return type:None
ClrHatchings()
Return type:None
ComputeDomains()
Return type:None
Parameters:IndH (Standard_Integer) –
Return type:None
Confusion2d()
Parameters:Confusion (float) –
Return type:None
Return type:float
Confusion3d()
Parameters:Confusion (float) –
Return type:None
Return type:float
Domain()
Parameters:
  • IndH (Standard_Integer) –
  • IDom (Standard_Integer) –
Return type:

HatchGen_Domain

Dump()
Return type:None
ElementCurve()
Parameters:IndE (Standard_Integer) –
Return type:Geom2dAdaptor_Curve
HatchingCurve()
Parameters:IndH (Standard_Integer) –
Return type:Geom2dAdaptor_Curve
Intersector()
Parameters:Intersector (Geom2dHatch_Intersector &) –
Return type:None
Return type:Geom2dHatch_Intersector
KeepPoints()
Parameters:Keep (bool) –
Return type:None
Return type:bool
KeepSegments()
Parameters:Keep (bool) –
Return type:None
Return type:bool
NbDomains()
Parameters:IndH (Standard_Integer) –
Return type:int
NbPoints()
Parameters:IndH (Standard_Integer) –
Return type:int
Point()
Parameters:
  • IndH (Standard_Integer) –
  • IndP (Standard_Integer) –
Return type:

HatchGen_PointOnHatching

RemElement()
Parameters:IndE (Standard_Integer) –
Return type:None
RemHatching()
Parameters:IndH (Standard_Integer) –
Return type:None
Status()
Parameters:IndH (Standard_Integer) –
Return type:HatchGen_ErrorStatus
Trim()
Return type:

None

Parameters:
  • Curve (Geom2dAdaptor_Curve &) –
  • IndH (Standard_Integer) –
Return type:

int

Return type:

None

TrimDone()
Parameters:IndH (Standard_Integer) –
Return type:bool
TrimFailed()
Parameters:IndH (Standard_Integer) –
Return type:bool
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_HatchingOfHatcher(*args)

Bases: object

AddDomain()
Parameters:Domain (HatchGen_Domain &) –
Return type:None
AddPoint()
Parameters:
  • Point (HatchGen_PointOnHatching &) –
  • Confusion (float) –
Return type:

None

ChangeCurve()
Return type:Geom2dAdaptor_Curve
ChangePoint()
Parameters:Index (Standard_Integer) –
Return type:HatchGen_PointOnHatching
ClassificationPoint()
Return type:gp_Pnt2d
ClrDomains()
Return type:None
ClrPoints()
Return type:None
Curve()
Return type:Geom2dAdaptor_Curve
Domain()
Parameters:Index (Standard_Integer) –
Return type:HatchGen_Domain
IsDone()
Parameters:Flag (bool) –
Return type:None
Return type:bool
NbDomains()
Return type:int
NbPoints()
Return type:int
Point()
Parameters:Index (Standard_Integer) –
Return type:HatchGen_PointOnHatching
RemDomain()
Parameters:Index (Standard_Integer) –
Return type:None
RemPoint()
Parameters:Index (Standard_Integer) –
Return type:None
Status()
Parameters:Status (HatchGen_ErrorStatus) –
Return type:None
Return type:HatchGen_ErrorStatus
TrimDone()
Parameters:Flag (bool) –
Return type:None
Return type:bool
TrimFailed()
Parameters:Flag (bool) –
Return type:None
Return type:bool
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_HatchingsOfHatcher(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (Geom2dHatch_HatchingsOfHatcher &) –
Return type:Geom2dHatch_HatchingsOfHatcher
Bind()
Parameters:
  • K (Standard_Integer &) –
  • I (Geom2dHatch_HatchingOfHatcher &) –
Return type:

bool

ChangeFind()
Parameters:K (Standard_Integer &) –
Return type:Geom2dHatch_HatchingOfHatcher
ChangeFind1()
Parameters:K (Standard_Integer &) –
Return type:Standard_Address
Clear()
Return type:None
Find()
Parameters:K (Standard_Integer &) –
Return type:Geom2dHatch_HatchingOfHatcher
Find1()
Parameters:K (Standard_Integer &) –
Return type:Standard_Address
IsBound()
Parameters:K (Standard_Integer &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Set()
Parameters:Other (Geom2dHatch_HatchingsOfHatcher &) –
Return type:Geom2dHatch_HatchingsOfHatcher
UnBind()
Parameters:K (Standard_Integer &) –
Return type:bool
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_Intersector(*args)

Bases: OCC.Geom2dInt.Geom2dInt_GInter

ConfusionTolerance()
  • Returns the confusion tolerance of the intersector.
Return type:float
Intersect()
  • Intersects the curves C1 and C2. The results are retreived by the usual methods described in IntRes2d_Intersection. Creates an intersector.
Parameters:
  • C1 (Geom2dAdaptor_Curve &) –
  • C2 (Geom2dAdaptor_Curve &) –
Return type:

None

LocalGeometry()
  • Returns in <T>, <N> and <C> the tangent, normal and curvature of the edge <E> at parameter value <U>.
Parameters:
  • E (Geom2dAdaptor_Curve &) –
  • U (float) –
  • T (gp_Dir2d) –
  • N (gp_Dir2d) –
  • C (float &) –
Return type:

None

Perform()
  • Performs the intersection between the 2d line segment (<L>, <P>) and the Curve <E>. The line segment is the part of the 2d line <L> of parameter range [0, <P>] (P is positive and can be RealLast()). Tol is the Tolerance on the segment. The order is relevant, the first argument is the segment, the second the Edge.
Parameters:
  • L (gp_Lin2d) –
  • P (float) –
  • Tol (float) –
  • E (Geom2dAdaptor_Curve &) –
Return type:

None

SetConfusionTolerance()
  • Sets the confusion tolerance of the intersector.
Parameters:Confusion (float) –
Return type:None
SetTangencyTolerance()
  • Sets the tangency tolerance of the intersector.
Parameters:Tangency (float) –
Return type:None
TangencyTolerance()
  • Returns the tangency tolerance of the intersector.
Return type:float
thisown

The membership flag

class OCC.Geom2dHatch.Geom2dHatch_MapOfElementsOfElementsOfHatcher(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (Geom2dHatch_MapOfElementsOfElementsOfHatcher &) –
Return type:Geom2dHatch_MapOfElementsOfElementsOfHatcher
Bind()
Parameters:
  • K (Standard_Integer &) –
  • I (Geom2dHatch_ElementOfHatcher &) –
Return type:

bool

ChangeFind()
Parameters:K (Standard_Integer &) –
Return type:Geom2dHatch_ElementOfHatcher
ChangeFind1()
Parameters:K (Standard_Integer &) –
Return type:Standard_Address
Clear()
Return type:None
Find()
Parameters:K (Standard_Integer &) –
Return type:Geom2dHatch_ElementOfHatcher
Find1()
Parameters:K (Standard_Integer &) –
Return type:Standard_Address
IsBound()
Parameters:K (Standard_Integer &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Set()
Parameters:Other (Geom2dHatch_MapOfElementsOfElementsOfHatcher &) –
Return type:Geom2dHatch_MapOfElementsOfElementsOfHatcher
UnBind()
Parameters:K (Standard_Integer &) –
Return type:bool
thisown

The membership flag

class OCC.Geom2dHatch.Handle_Geom2dHatch_DataMapNodeOfHatchingsOfHatcher(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.Geom2dHatch.Handle_Geom2dHatch_DataMapNodeOfMapOfElementsOfElementsOfHatcher(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

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

Bases: object

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

The membership flag

value()