HatchGen
OCCT package HatchGen: HatchGen_Domain, HatchGen_ErrorStatus, HatchGen_IntersectionPoint, HatchGen_IntersectionType, and 2 more bound classes.
HatchGen_Domain
Constructors(3)
Creates an infinite domain.
Creates a domain for the curve associated to a hatching.
Parameters (2)P1P2
- constructor(P: HatchGen_PointOnHatching, First: boolean): HatchGen_Domain
Creates a semi-infinite domain for the curve associated to a hatching. The `First' flag means that the given point is the first one.
Parameters (2)PFirst
Instance methods(11)
- SetPoints(P1: HatchGen_PointOnHatching, P2: HatchGen_PointOnHatching): void
Sets the first and the second points of the domain.
Parameters (2)P1P2
- SetPoints(): void
Sets the first and the second points of the domain as the infinite.
- SetFirstPoint(P: HatchGen_PointOnHatching): void
Sets the first point of the domain.
Parameters (1)P
- SetFirstPoint(): void
Sets the first point of the domain at the infinite.
- SetSecondPoint(P: HatchGen_PointOnHatching): void
Sets the second point of the domain.
Parameters (1)P
- SetSecondPoint(): void
Sets the second point of the domain at the infinite.
- HasFirstPoint(): boolean
Returns True if the domain has a first point.
Returns the first point of the domain. The exception DomainError is raised if HasFirstPoint returns False.
- HasSecondPoint(): boolean
Returns True if the domain has a second point.
Returns the second point of the domain. The exception DomainError is raised if HasSecondPoint returns False.
- Dump(Index?: number): void
Dump of the domain.
Parameters (1)Index
HatchGen_ErrorStatus
Properties(5)
HatchGen_IntersectionPoint
Instance methods(15)
- SetIndex(Index: number): void
Sets the index of the supporting curve.
Parameters (1)Index
- Index(): number
Returns the index of the supporting curve.
- SetParameter(Parameter: number): void
Sets the parameter on the curve.
Parameters (1)Parameter
- Parameter(): number
Returns the parameter on the curve.
- SetPosition(Position: TopAbs_Orientation): void
Sets the position of the point on the curve.
Parameters (1)Position
Returns the position of the point on the curve.
- SetStateBefore(State: TopAbs_State): void
Sets the transition state before the intersection.
Parameters (1)State
Returns the transition state before the intersection.
- SetStateAfter(State: TopAbs_State): void
Sets the transition state after the intersection.
Parameters (1)State
Returns the transition state after of the intersection.
- SetSegmentBeginning(State?: boolean): void
Sets the flag that the point is the beginning of a segment.
Parameters (1)State
- SegmentBeginning(): boolean
Returns the flag that the point is the beginning of a segment.
- SetSegmentEnd(State?: boolean): void
Sets the flag that the point is the end of a segment.
Parameters (1)State
- SegmentEnd(): boolean
Returns the flag that the point is the end of a segment.
- Dump(Index?: number): void
Dump of the point on element.
Parameters (1)Index
HatchGen_IntersectionType
Properties(4)
HatchGen_PointOnElement
Constructors(2)
--Purpose; Creates an empty point on element
Creates a point from an intersection point.
Parameters (1)Point
Instance methods(5)
- SetIntersectionType(Type: HatchGen_IntersectionType): void
Sets the intersection type at this point.
Parameters (1)Type
Returns the intersection type at this point.
- IsIdentical(Point: HatchGen_PointOnElement, Confusion: number): boolean
Tests if the point is identical to an other. That is to say : P1.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.
Parameters (2)PointConfusion
- IsDifferent(Point: HatchGen_PointOnElement, Confusion: number): boolean
Tests if the point is different from an other.
Parameters (2)PointConfusion
- Dump(Index?: number): void
Dump of the point on element.
Parameters (1)Index
HatchGen_PointOnHatching
Constructors(2)
Creates an empty point.
Creates a point from an intersection point.
Parameters (1)Point
Instance methods(9)
- AddPoint(Point: HatchGen_PointOnElement, Confusion: number): void
Adds a point on element to the point.
Parameters (2)PointConfusion
- NbPoints(): number
Returns the number of elements intersecting the hatching at this point.
- Point(Index: number): HatchGen_PointOnElement
Returns the Index-th point on element of the point. The exception OutOfRange is raised if Index > NbPoints.
Parameters (1)Index
- RemPoint(Index: number): void
Removes the Index-th point on element of the point. The exception OutOfRange is raised if Index > NbPoints.
Parameters (1)Index
- ClrPoints(): void
Removes all the points on element of the point.
- IsLower(Point: HatchGen_PointOnHatching, Confusion: number): boolean
Tests if the point is lower than an other. A point on hatching P1 is said to be lower than an other P2 if : P2.myParam - P1.myParam > Confusion.
Parameters (2)PointConfusion
- IsEqual(Point: HatchGen_PointOnHatching, Confusion: number): boolean
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.
Parameters (2)PointConfusion
- IsGreater(Point: HatchGen_PointOnHatching, Confusion: number): boolean
Tests if the point is greater than an other. A point on hatching P1 is said to be greater than an other P2 if : P1.myParam - P2.myParam > Confusion.
Parameters (2)PointConfusion
- Dump(Index?: number): void
Dump of the point.
Parameters (1)Index