OCC.Geom2dHatch module¶
-
class
Geom2dHatch_Classifier(*args)¶ Bases:
objectReturn type: Parameters: Return type: -
Edge()¶ Return type: Geom2dAdaptor_Curve
-
Position()¶ Return type: IntRes2d_Position
-
State()¶ Return type: TopAbs_State
-
thisown¶ The membership flag
-
-
class
Geom2dHatch_DataMapIteratorOfHatchings(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (Geom2dHatch_Hatchings &) – Return type: None -
Value()¶ Return type: Geom2dHatch_Hatching
-
thisown¶ The membership flag
-
-
class
Geom2dHatch_DataMapIteratorOfMapOfElements(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (Geom2dHatch_MapOfElements &) – Return type: None -
Value()¶ Return type: Geom2dHatch_Element
-
thisown¶ The membership flag
-
-
class
Geom2dHatch_DataMapNodeOfHatchings(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K (int &) –
- I (Geom2dHatch_Hatching &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
GetKey()¶ Geom2dHatch_DataMapNodeOfHatchings_GetKey(Geom2dHatch_DataMapNodeOfHatchings self) -> Standard_Integer
-
SetKey()¶ Geom2dHatch_DataMapNodeOfHatchings_SetKey(Geom2dHatch_DataMapNodeOfHatchings self, Standard_Integer value)
-
Value()¶ Return type: Geom2dHatch_Hatching
-
thisown¶ The membership flag
-
class
Geom2dHatch_DataMapNodeOfMapOfElements(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K (int &) –
- I (Geom2dHatch_Element &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
GetKey()¶ Geom2dHatch_DataMapNodeOfMapOfElements_GetKey(Geom2dHatch_DataMapNodeOfMapOfElements self) -> Standard_Integer
-
SetKey()¶ Geom2dHatch_DataMapNodeOfMapOfElements_SetKey(Geom2dHatch_DataMapNodeOfMapOfElements self, Standard_Integer value)
-
Value()¶ Return type: Geom2dHatch_Element
-
thisown¶ The membership flag
-
class
Geom2dHatch_Element(*args)¶ Bases:
objectReturn type: None - Magic constructor.
Parameters: Other (Geom2dHatch_Element &) – Return type: None - Creates an element.
Parameters: - Curve (Geom2dAdaptor_Curve &) –
- Orientation (TopAbs_Orientation) – default value is TopAbs_FORWARD
Return type: -
ChangeCurve()¶ - Returns the curve associated to the element.
Return type: Geom2dAdaptor_Curve
-
Curve()¶ - Returns the curve associated to the element.
Return type: Geom2dAdaptor_Curve
-
Orientation()¶ - Sets the orientation of the element.
Parameters: Orientation (TopAbs_Orientation) – Return type: None - Returns the orientation of the element.
Return type: TopAbs_Orientation
-
thisown¶ The membership flag
-
class
Geom2dHatch_Elements(*args)¶ Bases:
objectReturn type: None Parameters: Other (Geom2dHatch_Elements &) – Return type: None -
ChangeFind()¶ Parameters: K (int) – Return type: Geom2dHatch_Element
-
Find()¶ Parameters: K (int) – Return type: Geom2dHatch_Element
-
thisown¶ The membership flag
-
-
class
Geom2dHatch_FClass2dOfClassifier(*args)¶ Bases:
objectReturn type: None -
Intersector()¶ Return type: Geom2dHatch_Intersector
-
State()¶ Return type: TopAbs_State
-
thisown¶ The membership flag
-
-
class
Geom2dHatch_Hatcher(*args)¶ Bases:
object- Returns an empty hatcher.
Parameters: Return type: -
AddElement()¶ - Adds an element to the hatcher and returns its index.
Parameters: - Curve (Geom2dAdaptor_Curve &) –
- Orientation (TopAbs_Orientation) – default value is TopAbs_FORWARD
Return type:
-
AddHatching()¶ - Adds a hatching to the hatcher and returns its index.
Parameters: Curve (Geom2dAdaptor_Curve &) – Return type: int
-
ChangeIntersector()¶ - Returns the associated intersector.
Return type: Geom2dHatch_Intersector
-
ComputeDomains()¶ - Computes the domains of all the hatchings.
Return type: None - Computes the domains of the IndH-th hatching.
Parameters: IndH (int) – Return type: None
-
Confusion2d()¶ - Sets the confusion tolerance.
Parameters: Confusion (float) – Return type: None - Returns the 2d confusion tolerance, i.e. the value under which two points are considered identical in the parametric space of the hatching.
Return type: float
-
Confusion3d()¶ - Sets the confusion tolerance.
Parameters: Confusion (float) – Return type: None - Returns the 3d confusion tolerance, i.e. the value under which two points are considered identical in the 3d space of the hatching.
Return type: float
-
Domain()¶ - Returns the IDom-th domain of the IndH-th hatching.
Parameters: Return type:
-
ElementCurve()¶ - Returns the curve associated to the IndE-th element.
Parameters: IndE (int) – Return type: Geom2dAdaptor_Curve
-
HatchingCurve()¶ - Returns the curve associated to the IndH-th hatching.
Parameters: IndH (int) – Return type: Geom2dAdaptor_Curve
-
Intersector()¶ - Sets the associated intersector.
Parameters: Intersector (Geom2dHatch_Intersector &) – Return type: None - Returns the associated intersector.
Return type: Geom2dHatch_Intersector
-
KeepPoints()¶ - Sets the above flag.
Parameters: Keep (bool) – Return type: None - Returns the flag about the points consideration.
Return type: bool
-
KeepSegments()¶ - Sets the above flag.
Parameters: Keep (bool) – Return type: None - Returns the flag about the segments consideration.
Return type: bool
-
NbDomains()¶ - Returns the number of domains of the IndH-th hatching. Only ONE ‘INFINITE’ domain means that the hatching is fully included in the contour defined by the elements.
Parameters: IndH (int) – Return type: int
-
NbPoints()¶ - Returns the number of intersection points of the IndH-th hatching.
Parameters: IndH (int) – Return type: int
-
Point()¶ - Returns the IndP-th intersection point of the IndH-th hatching.
Parameters: Return type:
-
RemElement()¶ - Removes the IndE-th element from the hatcher.
Parameters: IndE (int) – Return type: None
-
RemHatching()¶ - Removes the IndH-th hatching from the hatcher.
Parameters: IndH (int) – Return type: None
-
Status()¶ - Returns the status about the IndH-th hatching.
Parameters: IndH (int) – Return type: HatchGen_ErrorStatus
-
Trim()¶ - Trims all the hatchings of the hatcher by all the elements of the hatcher.
Return type: None - Adds a hatching to the hatcher and trims it by the elements already given and returns its index.
Parameters: Curve (Geom2dAdaptor_Curve &) – Return type: int - Trims the IndH-th hatching by the elements already given.
Parameters: IndH (int) – Return type: None
-
TrimDone()¶ - Returns the fact that the intersections were computed for the IndH-th hatching.
Parameters: IndH (int) – Return type: bool
-
TrimFailed()¶ - Returns the fact that the intersections failed for the IndH-th hatching.
Parameters: IndH (int) – Return type: bool
-
thisown¶ The membership flag
-
class
Geom2dHatch_Hatching(*args)¶ Bases:
objectReturn type: None - Creates a hatching.
Parameters: Curve (Geom2dAdaptor_Curve &) – Return type: None -
AddDomain()¶ - Adds a domain to the hatching.
Parameters: Domain (HatchGen_Domain &) – Return type: None
-
AddPoint()¶ - Adds an intersection point to the hatching.
Parameters: - Point (HatchGen_PointOnHatching &) –
- Confusion (float) –
Return type:
-
ChangeCurve()¶ - Returns the curve associated to the hatching.
Return type: Geom2dAdaptor_Curve
-
ChangePoint()¶ - Returns the Index-th intersection point of the hatching. The exception OutOfRange is raised if Index < 1 or Index > NbPoints.
Parameters: Index (int) – Return type: HatchGen_PointOnHatching
-
ClassificationPoint()¶ - Returns a point on the curve. This point will be used for the classification.
Return type: gp_Pnt2d
-
Curve()¶ - Returns the curve associated to the hatching.
Return type: Geom2dAdaptor_Curve
-
Domain()¶ - Returns the Index-th domain of the hatching. The exception OutOfRange is raised if Index < 1 or Index > NbDomains.
Parameters: Index (int) – Return type: HatchGen_Domain
-
IsDone()¶ - Sets the flag about the domains computation to the given value.
Parameters: Flag (bool) – Return type: None - Returns the flag about the domains computation.
Return type: bool
-
Point()¶ - Returns the Index-th intersection point of the hatching. The exception OutOfRange is raised if Index < 1 or Index > NbPoints.
Parameters: Index (int) – Return type: HatchGen_PointOnHatching
-
RemDomain()¶ - Removes the Index-th domain of the hatching. The exception OutOfRange is raised if Index < 1 or Index > NbDomains.
Parameters: Index (int) – Return type: None
-
RemPoint()¶ - Removes the Index-th intersection point of the hatching. The exception OutOfRange is raised if Index < 1 or Index > NbPoints.
Parameters: Index (int) – Return type: None
-
Status()¶ - Sets the error status.
Parameters: Status (HatchGen_ErrorStatus) – Return type: None - Returns the error status.
Return type: HatchGen_ErrorStatus
-
TrimDone()¶ - Sets the flag about the trimming computations to the given value.
Parameters: Flag (bool) – Return type: None - Returns the flag about the trimming computations.
Return type: bool
-
TrimFailed()¶ - Sets the flag about the trimming failure to the given value.
Parameters: Flag (bool) – Return type: None - Returns the flag about the trimming failure.
Return type: bool
-
thisown¶ The membership flag
-
class
Geom2dHatch_Hatchings(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (Geom2dHatch_Hatchings &) – Return type: Geom2dHatch_Hatchings
-
ChangeFind()¶ Parameters: K (int &) – Return type: Geom2dHatch_Hatching
-
ChangeFind1()¶ Parameters: K (int &) – Return type: Standard_Address
-
Find()¶ Parameters: K (int &) – Return type: Geom2dHatch_Hatching
-
Find1()¶ Parameters: K (int &) – Return type: Standard_Address
-
Set()¶ Parameters: Other (Geom2dHatch_Hatchings &) – Return type: Geom2dHatch_Hatchings
-
thisown¶ The membership flag
-
-
class
Geom2dHatch_Intersector(*args)¶ Bases:
OCC.Geom2dInt.Geom2dInt_GInter- Creates an intersector.
Parameters: Return type: Return type: -
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:
-
LocalGeometry()¶ - Returns in <T>, <N> and <C> the tangent, normal and curvature of the edge <E> at parameter value <U>.
Parameters: Return type:
-
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: Return type:
-
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
-
thisown¶ The membership flag
-
class
Geom2dHatch_MapOfElements(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (Geom2dHatch_MapOfElements &) – Return type: Geom2dHatch_MapOfElements
-
ChangeFind()¶ Parameters: K (int &) – Return type: Geom2dHatch_Element
-
ChangeFind1()¶ Parameters: K (int &) – Return type: Standard_Address
-
Find()¶ Parameters: K (int &) – Return type: Geom2dHatch_Element
-
Find1()¶ Parameters: K (int &) – Return type: Standard_Address
-
Set()¶ Parameters: Other (Geom2dHatch_MapOfElements &) – Return type: Geom2dHatch_MapOfElements
-
thisown¶ The membership flag
-
-
class
Handle_Geom2dHatch_DataMapNodeOfHatchings(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_Geom2dHatch_DataMapNodeOfMapOfElements(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
SwigPyIterator(*args, **kwargs)¶ Bases:
object-
advance()¶
-
copy()¶
-
decr()¶
-
distance()¶
-
equal()¶
-
incr()¶
-
next()¶
-
previous()¶
-
thisown¶ The membership flag
-
value()¶
-
-
register_handle(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases