HLRBRep
OCCT package HLRBRep: HLRBRep, HLRBRep_Algo, HLRBRep_AreaLimit, HLRBRep_BCurveTool, and 43 more bound classes.
HLRBRep
Hidden Lines Removal algorithms on the BRep DataStructure.
The class PolyAlgo is used to remove Hidden lines on Shapes with Triangulations.
Constructors(1)
Static methods(3)
- MakeEdge(ec: HLRBRep_Curve, U1: number, U2: number): TopoDS_EdgeParameters (3)
ecU1U2
- MakeEdge3d(ec: HLRBRep_Curve, U1: number, U2: number): TopoDS_EdgeParameters (3)
ecU1U2
- PolyHLRAngleAndDeflection(InAngl: number, OutAngl: number, OutDefl: number): { OutAngl: number; OutDefl: number }Parameters (3)
InAnglOutAnglOutDefl
HLRBRep_Algo
Inherited from InternalAlgo to provide methods with Shape from TopoDS. A framework to compute a shape as seen in a projection plane. This is done by calculating the visible and the hidden parts of the shape. HLRBRep_Algo works with three types of entity:
- shapes to be visualized
- edges in these shapes (these edges are the basic entities which will be visualized or hidden), and
- faces in these shapes which hide the edges.
HLRBRep_Algois based on the principle of comparing each edge of the shape to be visualized with each of its faces, and calculating the visible and the hidden parts of each edge. For a given projection,HLRBRep_Algocalculates a set of lines characteristic of the object being represented. It is also used in conjunction with theHLRBRep_HLRToShapeextraction utilities, which reconstruct a new, simplified shape from a selection of calculation results.
This new shape is made up of edges, which represent the shape visualized in the projection.HLRBRep_Algotakes the shape itself into account whereasHLRBRep_PolyAlgoworks with a polyhedral simplification of the shape.
When you useHLRBRep_Algo, you obtain an exact result, whereas, when you useHLRBRep_PolyAlgo, you reduce computation time but obtain polygonal segments. In the case of complicated shapes,HLRBRep_Algomay be time-consuming. AnHLRBRep_Algoobject provides a framework for: - defining the point of view
- identifying the shape or shapes to be visualized
- calculating the outlines
- calculating the visible and hidden lines of the shape. Warning
- Superimposed lines are not eliminated by this algorithm.
- There must be no unfinished objects inside the shape you wish to visualize.
- Points are not treated.
- Note that this is not the sort of algorithm used in generating shading, which calculates the visible and hidden parts of each face in a shape to be visualized by comparing each face in the shape with every other face in the same shape.
Constructors(2)
Constructs an empty framework for the calculation of visible and hidden lines of a shape in a projection. Use the function:
- Projector to define the point of view
- Add to select the shape or shapes to be visualized
- Update to compute the outlines of the shape, and
- Hide to compute the visible and hidden lines of the shape.
- Parameters (1)
A
Static methods(2)
- get_type_name(): string
Instance methods(6)
- Add(S: TopoDS_Shape, SData: Standard_Transient, nbIso: number): void
add the Shape .
Parameters (3)SSDatanbIso
- Add(S: TopoDS_Shape, nbIso: number): void
Adds the shape S to this framework, and specifies the number of isoparameters nbiso desired in visualizing S. You may add as many shapes as you wish. Use the function Add once for each shape.
Parameters (2)SnbIso
- Index(S: TopoDS_Shape): number
return the index of the Shape and return 0 if the Shape is not found.
Parameters (1)S
- Index(S: HLRTopoBRep_OutLiner): number
return the index of the Shape and return 0 if the Shape is not found.
Parameters (1)S
- OutLinedShapeNullify(): void
nullify all the results of OutLiner from HLRTopoBRep.
HLRBRep_AreaLimit
The private nested class AreaLimit represents a vertex on the Edge with the state on the left and the right.
Constructors(1)
- constructor(V: HLRAlgo_Intersection, Boundary: boolean, Interference: boolean, StateBefore: TopAbs_State, StateAfter: TopAbs_State, EdgeBefore: TopAbs_State, EdgeAfter: TopAbs_State): HLRBRep_AreaLimit
The previous and next field are set to NULL.
Parameters (7)VBoundaryInterferenceStateBeforeStateAfterEdgeBeforeEdgeAfter
Static methods(2)
- get_type_name(): string
Instance methods(17)
- StateBefore(St: TopAbs_State): voidParameters (1)
St
- StateAfter(St: TopAbs_State): voidParameters (1)
St
- EdgeBefore(St: TopAbs_State): voidParameters (1)
St
- EdgeAfter(St: TopAbs_State): voidParameters (1)
St
- Previous(P: HLRBRep_AreaLimit): voidParameters (1)
P
- Next(N: HLRBRep_AreaLimit): voidParameters (1)
N
- IsBoundary(): boolean
- IsInterference(): boolean
- Clear(): void
HLRBRep_BCurveTool
Constructors(1)
Static methods(30)
- FirstParameter(C: BRepAdaptor_Curve): numberParameters (1)
C
- LastParameter(C: BRepAdaptor_Curve): numberParameters (1)
C
- Parameters (1)
C
- NbIntervals(C: BRepAdaptor_Curve, S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(myclass) >= .
Parameters (2)CS
- Intervals(C: BRepAdaptor_Curve, T: NCollection_Array1_double, S: GeomAbs_Shape): void
Stores in <T> the parameters bounding the intervals of continuity .
The array must provide enough room to accommodate for the parameters. i.e. T.Length() >NbIntervals()Parameters (3)CT—Mutated in place; read the updated value from this argument after the call.S
- IsClosed(C: BRepAdaptor_Curve): booleanParameters (1)
C
- IsPeriodic(C: BRepAdaptor_Curve): booleanParameters (1)
C
- Period(C: BRepAdaptor_Curve): numberParameters (1)
C
- Value(C: BRepAdaptor_Curve, U: number): gp_Pnt
Computes the point of parameter U on the curve.
Parameters (2)CU
- D0(C: BRepAdaptor_Curve, U: number, P: gp_Pnt): void
Computes the point of parameter U on the curve.
Parameters (3)CUP—Mutated in place; read the updated value from this argument after the call.
- D1(C: BRepAdaptor_Curve, U: number, P: gp_Pnt, V: gp_Vec): void
Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
Parameters (4)CUP—Mutated in place; read the updated value from this argument after the call.V—Mutated in place; read the updated value from this argument after the call.
- D2(C: BRepAdaptor_Curve, U: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void
Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
Parameters (5)CUP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.V2—Mutated in place; read the updated value from this argument after the call.
Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
Parameters (6)CUP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.V2—Mutated in place; read the updated value from this argument after the call.V3—Mutated in place; read the updated value from this argument after the call.
- DN(C: BRepAdaptor_Curve, U: number, N: number): gp_Vec
The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
Parameters (3)CUN
- Resolution(C: BRepAdaptor_Curve, R3d: number): number
Returns the parametric resolution corresponding to the real space resolution <R3d>.
Parameters (2)CR3d
Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
Parameters (1)C
- Line(C: BRepAdaptor_Curve): gp_LinParameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Degree(C: BRepAdaptor_Curve): numberParameters (1)
C
- IsRational(C: BRepAdaptor_Curve): booleanParameters (1)
C
- NbPoles(C: BRepAdaptor_Curve): numberParameters (1)
C
- NbKnots(C: BRepAdaptor_Curve): numberParameters (1)
C
- Poles(C: BRepAdaptor_Curve, T: NCollection_Array1_gp_Pnt): voidParameters (2)
CT
- PolesAndWeights(C: BRepAdaptor_Curve, T: NCollection_Array1_gp_Pnt, W: NCollection_Array1_double): voidParameters (3)
CTW
- NbSamples(C: BRepAdaptor_Curve, U0: number, U1: number): numberParameters (3)
CU0U1
HLRBRep_BiPnt2D
Contains the colors of a shape.
Constructors(3)
- constructor(thePoint1: gp_XY, thePoint2: gp_XY, S: TopoDS_Shape, reg1: boolean, regn: boolean, outl: boolean, intl: boolean): HLRBRep_BiPnt2DParameters (7)
thePoint1thePoint2Sreg1regnoutlintl
- constructor(x1: number, y1: number, x2: number, y2: number, S: TopoDS_Shape, reg1: boolean, regn: boolean, outl: boolean, intl: boolean): HLRBRep_BiPnt2DParameters (9)
x1y1x2y2Sreg1regnoutlintl
Instance methods(12)
HLRBRep_BiPoint
Contains the colors of a shape.
Constructors(2)
- constructor(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, S: TopoDS_Shape, reg1: boolean, regn: boolean, outl: boolean, intl: boolean): HLRBRep_BiPointParameters (11)
x1y1z1x2y2z2Sreg1regnoutlintl
Instance methods(12)
HLRBRep_CInter
Constructors(1)
Empty constructor.
Instance methods(2)
- SetMinNbSamples(theMinNbSamples: number): void
Set / get minimum number of points in polygon intersection.
Parameters (1)theMinNbSamples
- GetMinNbSamples(): number
HLRBRep_CLPropsATool
Constructors(1)
Static methods(7)
- Value(A: HLRBRep_Curve, U: number, P: gp_Pnt2d): void
Computes the point.
of parameter on the Curve fromHLRBRep.Parameters (3)AUP—Mutated in place; read the updated value from this argument after the call.
- D1(A: HLRBRep_Curve, U: number, P: gp_Pnt2d, V1: gp_Vec2d): void
Computes the point.
and first derivative <V1> of parameter on the curve.Parameters (4)AUP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.
- D2(A: HLRBRep_Curve, U: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d): void
Computes the point.
, the first derivative <V1> and second derivative <V2> of parameter on the curve.Parameters (5)AUP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.V2—Mutated in place; read the updated value from this argument after the call.
Computes the point.
, the first derivative <V1>, the second derivative <V2> and third derivative <V3> of parameter on the curve.Parameters (6)AUP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.V2—Mutated in place; read the updated value from this argument after the call.V3—Mutated in place; read the updated value from this argument after the call.
- Continuity(A: HLRBRep_Curve): number
returns the order of continuity of the curve
. returns 1: first derivative only is computable. returns 2: first and second derivative only are computable. returns 3: first, second and third are computable.Parameters (1)A
- FirstParameter(A: HLRBRep_Curve): number
returns the first parameter bound of the curve.
Parameters (1)A
- LastParameter(A: HLRBRep_Curve): number
returns the last parameter bound of the curve. FirstParameter must be less than LastParamenter.
Parameters (1)A
HLRBRep_Curve
Defines a 2d curve by projection of a 3D curve on a plane with an optional perspective transformation.
Constructors(1)
Creates an undefined Curve.
Instance methods(44)
- Projector(Proj: HLRAlgo_Projector): voidParameters (1)
Proj
Returns the 3D curve.
- Curve(E: TopoDS_Edge): void
Sets the 3D curve to be projected.
Parameters (1)E
Returns the 3D curve.
- Parameter2d(P3d: number): number
Returns the parameter on the 2d curve from the parameter on the 3d curve.
Parameters (1)P3d
- Parameter3d(P2d: number): number
Returns the parameter on the 3d curve from the parameter on the 2d curve.
Parameters (1)P2d
- Update(TotMin: [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number], TotMax: [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]): number
Update the minmax and the internal data.
Parameters (2)TotMinTotMax
- UpdateMinMax(TotMin: [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number], TotMax: [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]): number
Update the minmax returns tol for enlarge;.
Parameters (2)TotMinTotMax
- Z(U: number): number
Computes the Z coordinate of the point of parameter U on the curve in the viewing coordinate system.
Parameters (1)U
Computes the 3D point of parameter U on the curve.
Parameters (1)U
Computes the 3D point of parameter U on the curve.
Parameters (2)UP—Mutated in place; read the updated value from this argument after the call.
Computes the point of parameter U on the curve.
Parameters (2)UP—Mutated in place; read the updated value from this argument after the call.
Computes the point of parameter U on the curve with its first derivative.
Parameters (3)UP—Mutated in place; read the updated value from this argument after the call.V—Mutated in place; read the updated value from this argument after the call.
Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
Parameters (3)UP—Mutated in place; read the updated value from this argument after the call.V—Mutated in place; read the updated value from this argument after the call.
Depending on <AtStart> computes the 2D point and tangent on the curve at sart (or at end). If the first derivative is null look after at start (or before at end) with the second derivative.
Parameters (3)AtStartP—Mutated in place; read the updated value from this argument after the call.D—Mutated in place; read the updated value from this argument after the call.
- FirstParameter(): number
- LastParameter(): number
- NbIntervals(S: GeomAbs_Shape): number
If necessary, breaks the curve in intervals of continuity . And returns the number of intervals.
Parameters (1)S
- Intervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
Stores in <T> the parameters bounding the intervals of continuity .
The array must provide enough room to accommodate for the parameters. i.e. T.Length() >NbIntervals()Parameters (2)T—Mutated in place; read the updated value from this argument after the call.S
- IsClosed(): boolean
- IsPeriodic(): boolean
- Period(): number
Computes the point of parameter U on the curve.
Parameters (1)U
Raised if the continuity of the current interval is not C2.
Parameters (4)UP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.V2—Mutated in place; read the updated value from this argument after the call.
Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
Parameters (5)UP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.V2—Mutated in place; read the updated value from this argument after the call.V3—Mutated in place; read the updated value from this argument after the call.
The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
Parameters (2)UN
- Resolution(R3d: number): number
Returns the parametric resolution corresponding to the real space resolution <R3d>.
Parameters (1)R3d
Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
- IsRational(): boolean
- Degree(): number
- NbPoles(): number
- Poles(TP: NCollection_Array1_gp_Pnt2d): voidParameters (1)
TP
- Poles(aCurve: Geom_BSplineCurve, TP: NCollection_Array1_gp_Pnt2d): voidParameters (2)
aCurveTP
- PolesAndWeights(TP: NCollection_Array1_gp_Pnt2d, TW: NCollection_Array1_double): voidParameters (2)
TPTW
- PolesAndWeights(aCurve: Geom_BSplineCurve, TP: NCollection_Array1_gp_Pnt2d, TW: NCollection_Array1_double): voidParameters (3)
aCurveTPTW
- NbKnots(): number
- Knots(kn: NCollection_Array1_double): voidParameters (1)
kn
- Multiplicities(mu: NCollection_Array1_int): voidParameters (1)
mu
HLRBRep_CurveTool
Constructors(1)
HLRBRep_EdgeBuilder
Constructors(1)
Creates an EdgeBuilder algorithm. <VList> describes the edge and the interferences. AreaLimits are created from the vertices. Builds(IN) is automatically called.
Parameters (1)VList
Instance methods(18)
- InitAreas(): void
Initialize an iteration on the areas.
- NextArea(): void
Set the current area to the next area.
- PreviousArea(): void
Set the current area to the previous area.
- HasArea(): boolean
Returns True if there is a current area.
Returns the state of the current area.
Returns the edge state of the current area.
Returns the AreaLimit beginning the current area. This is a NULL handle when the area is infinite on the left.
Returns the AreaLimit ending the current area. This is a NULL handle when the area is infinite on the right.
- Builds(ToBuild: TopAbs_State): void
Reinitialize the results iteration to the parts with State <ToBuild>. If this method is not called after construction the default is <ToBuild> = IN.
Parameters (1)ToBuild
- MoreEdges(): boolean
Returns True if there are more new edges to build.
- NextEdge(): void
Proceeds to the next edge to build. Skip all remaining vertices on the current edge.
- MoreVertices(): boolean
True if there are more vertices in the current new edge.
- NextVertex(): void
Proceeds to the next vertex of the current edge.
Returns the current vertex of the current edge.
- IsBoundary(): boolean
Returns True if the current vertex comes from the boundary of the edge.
- IsInterference(): boolean
Returns True if the current vertex was an interference.
Returns the new orientation of the current vertex.
- Destroy(): void
HLRBRep_EdgeData
Constructors(1)
Instance methods(40)
- Set(Reg1: boolean, RegN: boolean, EG: TopoDS_Edge, V1: number, V2: number, Out1: boolean, Out2: boolean, Cut1: boolean, Cut2: boolean, Start: number, TolStart: number, End: number, TolEnd: number): voidParameters (13)
Reg1RegNEGV1V2Out1Out2Cut1Cut2StartTolStartEndTolEnd
- Selected(): boolean
- Selected(B: boolean): voidParameters (1)
B
- Rg1Line(): boolean
- Rg1Line(B: boolean): voidParameters (1)
B
- RgNLine(): boolean
- RgNLine(B: boolean): voidParameters (1)
B
- Vertical(): boolean
- Vertical(B: boolean): voidParameters (1)
B
- Simple(): boolean
- Simple(B: boolean): voidParameters (1)
B
- OutLVSta(): boolean
- OutLVSta(B: boolean): voidParameters (1)
B
- OutLVEnd(): boolean
- OutLVEnd(B: boolean): voidParameters (1)
B
- CutAtSta(): boolean
- CutAtSta(B: boolean): voidParameters (1)
B
- CutAtEnd(): boolean
- CutAtEnd(B: boolean): voidParameters (1)
B
- VerAtSta(): boolean
- VerAtSta(B: boolean): voidParameters (1)
B
- VerAtEnd(): boolean
- VerAtEnd(B: boolean): voidParameters (1)
B
- AutoIntersectionDone(): boolean
- AutoIntersectionDone(B: boolean): voidParameters (1)
B
- Used(): boolean
- Used(B: boolean): voidParameters (1)
B
- HideCount(): number
- HideCount(I: number): voidParameters (1)
I
- VSta(): number
- VSta(I: number): voidParameters (1)
I
- VEnd(): number
- VEnd(I: number): voidParameters (1)
I
- UpdateMinMax(theTotMinMax: HLRAlgo_EdgesBlock_MinMaxIndices): voidParameters (1)
theTotMinMax
- Tolerance(): number
HLRBRep_EdgeFaceTool
The EdgeFaceTool computes the UV coordinates at a given parameter on a Curve and a Surface. It also compute the signed curvature value in a direction at a given u,v point on a surface.
Constructors(1)
HLRBRep_EdgeIList
Constructors(1)
Static methods(2)
- AddInterference(IL: NCollection_List_HLRAlgo_Interference, I: HLRAlgo_Interference, T: HLRBRep_EdgeInterferenceTool): void
Add the interference to the list <IL>.
Parameters (3)IL—Mutated in place; read the updated value from this argument after the call.IT
Process complex transitions on the list IL.
Parameters (2)IL—Mutated in place; read the updated value from this argument after the call.T
HLRBRep_EdgeInterferenceTool
Implements the methods required to instantiates the EdgeInterferenceList from HLRAlgo.
Instance methods(12)
- InitVertices(): void
- MoreVertices(): boolean
- NextVertex(): void
- CurrentParameter(): number
- IsPeriodic(): boolean
- EdgeGeometry(Param: number, Tgt: gp_Dir, Nrm: gp_Dir, Curv: number): { Curv: number }
Returns local geometric description of the Edge at parameter . See method Reset of class EdgeFaceTransition from TopCnx for other arguments.
Parameters (4)ParamTgt—Mutated in place; read the updated value from this argument after the call.Nrm—Mutated in place; read the updated value from this argument after the call.Curv
ReturnsA result object with fields:
Curv: updated value from the call.
- ParameterOfInterference(I: HLRAlgo_Interference): numberParameters (1)
I
- SameInterferences(I1: HLRAlgo_Interference, I2: HLRAlgo_Interference): boolean
True if the two interferences are on the same geometric locus.
Parameters (2)I1I2
- SameVertexAndInterference(I: HLRAlgo_Interference): boolean
True if the Interference and the current Vertex are on the same geometric locus.
Parameters (1)I
- InterferenceBoundaryGeometry(I: HLRAlgo_Interference, Tang: gp_Dir, Norm: gp_Dir, Curv: number): { Curv: number }
Returns the geometry of the boundary at the interference . See the AddInterference method of the class EdgeFaceTransition from TopCnx for the other arguments.
Parameters (4)ITang—Mutated in place; read the updated value from this argument after the call.Norm—Mutated in place; read the updated value from this argument after the call.Curv
ReturnsA result object with fields:
Curv: updated value from the call.
HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter
Instance methods(5)
- Perform(Poly1: HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter, Poly2: HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter, NumSegOn1: number, NumSegOn2: number, ParamOnSeg1: number, ParamOnSeg2: number): { NumSegOn1: number; NumSegOn2: number; ParamOnSeg1: number; ParamOnSeg2: number }Parameters (6)
Poly1Poly2NumSegOn1NumSegOn2ParamOnSeg1ParamOnSeg2
- Perform(Uo: number, Vo: number, UInf: number, VInf: number, USup: number, VSup: number): voidParameters (6)
UoVoUInfVInfUSupVSup
- NbRoots(): number
- Roots(U: number, V: number): { U: number; V: number }Parameters (2)
UV
- AnErrorOccurred(): boolean
HLRBRep_FaceData
Constructors(1)
Instance methods(34)
- SetWire(WI: number, NE: number): void
Set <NE> the number of edges of the wire number <WI>.
Parameters (2)WINE
- SetWEdge(WI: number, EWI: number, EI: number, Or: TopAbs_Orientation, OutL: boolean, Inte: boolean, Dble: boolean, IsoL: boolean): void
Set the edge number <EWI> of the wire <WI>.
Parameters (8)WIEWIEIOrOutLInteDbleIsoL
- Selected(): boolean
- Selected(B: boolean): voidParameters (1)
B
- Back(): boolean
- Back(B: boolean): voidParameters (1)
B
- Side(): boolean
- Side(B: boolean): voidParameters (1)
B
- Closed(): boolean
- Closed(B: boolean): voidParameters (1)
B
- Hiding(): boolean
- Hiding(B: boolean): voidParameters (1)
B
- Simple(): boolean
- Simple(B: boolean): voidParameters (1)
B
- Cut(): boolean
- Cut(B: boolean): voidParameters (1)
B
- WithOutL(): boolean
- WithOutL(B: boolean): voidParameters (1)
B
- Plane(): boolean
- Plane(B: boolean): voidParameters (1)
B
- Cylinder(): boolean
- Cylinder(B: boolean): voidParameters (1)
B
- Cone(): boolean
- Cone(B: boolean): voidParameters (1)
B
- Sphere(): boolean
- Sphere(B: boolean): voidParameters (1)
B
- Torus(): boolean
- Torus(B: boolean): voidParameters (1)
B
- Size(): number
- Size(S: number): voidParameters (1)
S
- Orientation(O: TopAbs_Orientation): voidParameters (1)
O
- Tolerance(): number
HLRBRep_FaceIterator
Constructors(1)
Instance methods(13)
- InitEdge(fd: HLRBRep_FaceData): void
Begin an exploration of the edges of the face <fd>.
Parameters (1)fd—Mutated in place; read the updated value from this argument after the call.
- MoreEdge(): boolean
- NextEdge(): void
- BeginningOfWire(): boolean
Returns True if the current edge is the first of a wire.
- EndOfWire(): boolean
Returns True if the current edge is the last of a wire.
- SkipWire(): void
Skip the current wire in the exploration.
Returns the edges of the current wire.
- Edge(): number
- OutLine(): boolean
- Internal(): boolean
- Double(): boolean
- IsoLine(): boolean
HLRBRep_Hider
Instance methods(1)
- Hide(FI: number, MST: NCollection_DataMap_TopoDS_Shape_BRepTopAdaptor_Tool_TopTools_ShapeMapHasher): void
Removes from the edges, the parts hidden by the hiding face number <FI>.
Parameters (2)FIMST—Mutated in place; read the updated value from this argument after the call.
HLRBRep_HLRToShape
A framework for filtering the computation results of an HLRBRep_Algo algorithm by extraction. From the results calculated by the algorithm on a shape, a filter returns the type of edge you want to identify. You can choose any of the following types of output:
- visible sharp edges
- hidden sharp edges
- visible smooth edges
- hidden smooth edges
- visible sewn edges
- hidden sewn edges
- visible outline edges
- hidden outline edges.
- visible isoparameters and
- hidden isoparameters. Sharp edges present a C0 continuity (non G1). Smooth edges present a G1 continuity (non G2). Sewn edges present a C2 continuity. The result is composed of 2D edges in the projection plane of the view which the algorithm has worked with. These 2D edges are not included in the data structure of the visualized shape. In order to obtain a complete image, you must combine the shapes given by each of the chosen filters. The construction of the shape does not call a new computation of the algorithm, but only reads its internal results. The methods of this shape are almost identic to those of the HLRBrep_PolyHLRToShape class.
Constructors(1)
Constructs a framework for filtering the results of the
HLRBRep_Algoalgorithm, A. Use the extraction filters to obtain the results you want for A.Parameters (1)A
Instance methods(22)
Return visible sharp edges (of C0-continuity) of specified shape.
Parameters (1)S
Return visible smooth edges (G1-continuity between two surfaces).
Return visible smooth edges (G1-continuity between two surfaces) of specified shape.
Parameters (1)S
Return visible sewn edges (of CN-continuity on one surface).
Return visible sewn edges (of CN-continuity on one surface) of specified shape.
Parameters (1)S
Return visible outline edges ("silhouette").
Return visible outline edges ("silhouette") of specified shape.
Parameters (1)S
Return visible outline edges ("silhouette").
Return visible isoparameters.
Return visible isoparameters of specified shape.
Parameters (1)S
Return hidden sharp edges (of C0-continuity).
Return hidden sharp edges (of C0-continuity) of specified shape.
Parameters (1)S
Return hidden smooth edges (G1-continuity between two surfaces).
Return hidden smooth edges (G1-continuity between two surfaces) of specified shape.
Parameters (1)S
Return hidden sewn edges (of CN-continuity on one surface).
Return hidden sewn edges (of CN-continuity on one surface) of specified shape.
Parameters (1)S
Return hidden outline edges ("silhouette").
Return hidden outline edges ("silhouette") of specified shape.
Parameters (1)S
Return hidden isoparameters.
Return hidden isoparameters of specified shape.
Parameters (1)S
- CompoundOfEdges(type_: HLRBRep_TypeOfResultingEdge, visible: boolean, In3d: boolean): TopoDS_Shape
Returns compound of resulting edges of required type and visibility, taking into account the kind of space (2d or 3d).
Parameters (3)type_visibleIn3d
- CompoundOfEdges(S: TopoDS_Shape, type_: HLRBRep_TypeOfResultingEdge, visible: boolean, In3d: boolean): TopoDS_Shape
For specified shape returns compound of resulting edges of required type and visibility, taking into account the kind of space (2d or 3d).
Parameters (4)Stype_visibleIn3d
HLRBRep_IntConicCurveOfCInter
Constructors(1)
Empty constructor.
HLRBRep_InterCSurf
Constructors(1)
Empty Constructor.
HLRBRep_InternalAlgo
Constructors(2)
- Parameters (1)
A
Static methods(2)
- get_type_name(): string
Instance methods(26)
set the projector.
- Update(): void
update the DataStructure.
- Load(S: HLRTopoBRep_OutLiner, SData: Standard_Transient, nbIso: number): void
add the shape .
Parameters (3)SSDatanbIso
- Load(S: HLRTopoBRep_OutLiner, nbIso: number): void
add the shape .
Parameters (2)SnbIso
- Index(S: HLRTopoBRep_OutLiner): number
return the index of the Shape and return 0 if the Shape is not found.
Parameters (1)S
- Remove(I: number): void
remove the Shape of Index .
Parameters (1)I
- ShapeData(I: number, SData: Standard_Transient): void
Change the Shape Data of the Shape of index .
Parameters (2)ISData
- NbShapes(): number
- ShapeBounds(I: number): HLRBRep_ShapeBoundsParameters (1)
I
- InitEdgeStatus(): void
init the status of the selected edges depending of the back faces of a closed shell.
- Select(): void
select all the DataStructure.
- Select(I: number): void
select only the Shape of index .
Parameters (1)I
- SelectEdge(I: number): void
select only the edges of the Shape .
Parameters (1)I
- SelectFace(I: number): void
select only the faces of the Shape .
Parameters (1)I
- ShowAll(): void
set to visible all the edges.
- ShowAll(I: number): void
set to visible all the edges of the Shape .
Parameters (1)I
- HideAll(): void
set to hide all the edges.
- HideAll(I: number): void
set to hide all the edges of the Shape .
Parameters (1)I
- PartialHide(): void
own hiding of all the shapes of the DataStructure without hiding by each other.
- Hide(): void
hide all the DataStructure.
- Hide(I: number): void
hide the Shape by itself.
Parameters (1)I
- Hide(I: number, J: number): void
hide the Shape <S1> by the shape <S2>.
Parameters (2)IJ
- Debug(deb: boolean): voidParameters (1)
deb
- Debug(): boolean
HLRBRep_LineTool
The LineTool class provides class methods to access the methodes of the Line.
Constructors(1)
Static methods(37)
- FirstParameter(C: gp_Lin): numberParameters (1)
C
- LastParameter(C: gp_Lin): numberParameters (1)
C
- Parameters (1)
C
- NbIntervals(C: gp_Lin, S: GeomAbs_Shape): number
If necessary, breaks the line in intervals of continuity . And returns the number of intervals.
Parameters (2)CS
- Intervals(C: gp_Lin, T: NCollection_Array1_double, Sh: GeomAbs_Shape): void
Sets the current working interval.
Parameters (3)CT—Mutated in place; read the updated value from this argument after the call.Sh
- IntervalFirst(C: gp_Lin): number
Returns the first parameter of the current interval.
Parameters (1)C
- IntervalLast(C: gp_Lin): number
Returns the last parameter of the current interval.
Parameters (1)C
- Parameters (1)
C
- Parameters (1)
C
- IsPeriodic(C: gp_Lin): booleanParameters (1)
C
- Parameters (1)
C
Computes the point of parameter U on the line.
Parameters (2)CU
Computes the point of parameter U on the line.
Parameters (3)CUP—Mutated in place; read the updated value from this argument after the call.
Computes the point of parameter U on the line with its first derivative. Raised if the continuity of the current interval is not C1.
Parameters (4)CUP—Mutated in place; read the updated value from this argument after the call.V—Mutated in place; read the updated value from this argument after the call.
Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
Parameters (5)CUP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.V2—Mutated in place; read the updated value from this argument after the call.
Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
Parameters (6)CUP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.V2—Mutated in place; read the updated value from this argument after the call.V3—Mutated in place; read the updated value from this argument after the call.
The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
Parameters (3)CUN
- Resolution(C: gp_Lin, R3d: number): number
Returns the parametric resolution corresponding to the real space resolution <R3d>.
Parameters (2)CR3d
Returns the type of the line in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
Parameters (1)C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Bezier(C: gp_Lin): Geom_BezierCurveParameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Poles(C: gp_Lin, TP: NCollection_Array1_gp_Pnt): voidParameters (2)
CTP
- IsRational(C: gp_Lin): booleanParameters (1)
C
- PolesAndWeights(C: gp_Lin, TP: NCollection_Array1_gp_Pnt, TW: NCollection_Array1_double): voidParameters (3)
CTPTW
- Parameters (1)
C
- KnotsAndMultiplicities(C: gp_Lin, TK: NCollection_Array1_double, TM: NCollection_Array1_int): voidParameters (3)
CTKTM
- Parameters (3)
CU0U1
- SamplePars(C: gp_Lin, U0: number, U1: number, Defl: number, NbMin: number): NCollection_HArray1_double
Returns sample parameters for the line within [U0, U1] range.
Parameters (5)C—the lineU0—start parameterU1—end parameterDefl—deflection tolerance (unused for lines)NbMin—minimum number of sample points (unused for lines)
Returnsarray of 3 sample parameter values
- SamplePars_1(C: gp_Lin, U0: number, U1: number, Defl: number, NbMin: number): NCollection_HArray1_double
Returns sample parameters for the line within [U0, U1] range.
Parameters (5)C—the lineU0—start parameterU1—end parameterDefl—deflection tolerance (unused for lines)NbMin—minimum number of sample points (unused for lines)
Returnsarray of 3 sample parameter values
- SamplePars_2(C: gp_Lin, U0: number, U1: number, Defl: number, NbMin: number): { Pars: NCollection_HArray1_double; [Symbol.dispose](): void }DeprecatedParameters (5)
CU0U1DeflNbMin
ReturnsA result object with fields:
Pars: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter
Instance methods(3)
- Value(X: number, F: number): { returnValue: boolean; F: number }
Computes the value of the signed distance between the implicit curve and the point at parameter Param on the parametrised curve.
Parameters (2)XF
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- Derivative(X: number, D: number): { returnValue: boolean; D: number }
Computes the derivative of the previous function at parameter Param.
Parameters (2)XD
ReturnsA result object with fields:
returnValue: the C++ return valueD: updated value from the call.
- Values(X: number, F: number, D: number): { returnValue: boolean; F: number; D: number }
Computes the value and the derivative of the function.
Parameters (3)XFD
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.D: updated value from the call.
HLRBRep_PolyAlgo
to remove Hidden lines on Shapes with Triangulations. A framework to compute the shape as seen in a projection plane. This is done by calculating the visible and the hidden parts of the shape. HLRBRep_PolyAlgo works with three types of entity:
- shapes to be visualized (these shapes must have already been triangulated.)
- edges in these shapes (these edges are defined as polygonal lines on the triangulation of the shape, and are the basic entities which will be visualized or hidden), and
- triangles in these shapes which hide the edges.
HLRBRep_PolyAlgois based on the principle of comparing each edge of the shape to be visualized with each of the triangles produced by the triangulation of the shape, and calculating the visible and the hidden parts of each edge.
For a given projection,HLRBRep_PolyAlgocalculates a set of lines characteristic of the object being represented.
It is also used in conjunction with theHLRBRep_PolyHLRToShapeextraction utilities, which reconstruct a new, simplified shape from a selection of calculation results.
This new shape is made up of edges, which represent the shape visualized in the projection.HLRBRep_PolyAlgoworks with a polyhedral simplification of the shape whereasHLRBRep_Algotakes the shape itself into account. When you useHLRBRep_Algo, you obtain an exact result, whereas, when you useHLRBRep_PolyAlgo, you reduce computation time but obtain polygonal segments. AnHLRBRep_PolyAlgoobject provides a framework for: - defining the point of view
- identifying the shape or shapes to be visualized
- calculating the outlines
- calculating the visible and hidden lines of the shape. Warning
- Superimposed lines are not eliminated by this algorithm.
- There must be no unfinished objects inside the shape you wish to visualize.
- Points are not treated.
- Note that this is not the sort of algorithm used in generating shading, which calculates the visible and hidden parts of each face in a shape to be visualized by comparing each face in the shape with every other face in the same shape.
Constructors(3)
Constructs an empty framework for the calculation of the visible and hidden lines of a shape in a projection. Use the functions:
- Projector to define the point of view
- Load to select the shape or shapes to be visualized
- Update to compute the visible and hidden lines of the shape. Warning The shape or shapes to be visualized must have already been triangulated.
- Parameters (1)
A
- Parameters (1)
S
Static methods(2)
- get_type_name(): string
Instance methods(25)
- NbShapes(): number
- Shape(I: number): TopoDS_ShapeParameters (1)
I
- Remove(I: number): void
remove the Shape of Index .
Parameters (1)I
- Index(S: TopoDS_Shape): number
return the index of the Shape and return 0 if the Shape is not found.
Parameters (1)S
- Load(theShape: TopoDS_Shape): void
Loads the shape S into this framework. Warning S must have already been triangulated.
Parameters (1)theShape
Sets the parameters of the view for this framework. These parameters are defined by an
HLRAlgo_Projectorobject, which is returned by the Projector function on a Prs3d_Projector object.- Projector(theProj: HLRAlgo_Projector): voidParameters (1)
theProj
- TolAngular(): number
- TolAngular(theTol: number): voidParameters (1)
theTol
- TolCoef(): number
- TolCoef(theTol: number): voidParameters (1)
theTol
- Update(): void
Launches calculation of outlines of the shape visualized by this framework. Used after setting the point of view and defining the shape or shapes to be visualized.
- InitHide(): void
- MoreHide(): boolean
- NextHide(): void
- Hide(status: HLRAlgo_EdgeStatus, S: TopoDS_Shape, reg1: boolean, regn: boolean, outl: boolean, intl: boolean): { returnValue: HLRAlgo_BiPoint_PointsT; reg1: boolean; regn: boolean; outl: boolean; intl: boolean; [Symbol.dispose](): void }Parameters (6)
statusSreg1regnoutlintl
- InitShow(): void
- MoreShow(): boolean
- NextShow(): void
- Show(S: TopoDS_Shape, reg1: boolean, regn: boolean, outl: boolean, intl: boolean): { returnValue: HLRAlgo_BiPoint_PointsT; reg1: boolean; regn: boolean; outl: boolean; intl: boolean; [Symbol.dispose](): void }Parameters (5)
Sreg1regnoutlintl
Make a shape with the internal outlines in each face.
Parameters (1)S
- Debug(): boolean
- Debug(theDebug: boolean): voidParameters (1)
theDebug
HLRBRep_PolyHLRToShape
A framework for filtering the computation results of an HLRBRep_Algo algorithm by extraction. From the results calculated by the algorithm on a shape, a filter returns the type of edge you want to identify. You can choose any of the following types of output:
- visible sharp edges
- hidden sharp edges
- visible smooth edges
- hidden smooth edges
- visible sewn edges
- hidden sewn edges
- visible outline edges
- hidden outline edges.
- visible isoparameters and
- hidden isoparameters. Sharp edges present a C0 continuity (non G1). Smooth edges present a G1 continuity (non G2). Sewn edges present a C2 continuity. The result is composed of 2D edges in the projection plane of the view which the algorithm has worked with. These 2D edges are not included in the data structure of the visualized shape. In order to obtain a complete image, you must combine the shapes given by each of the chosen filters. The construction of the shape does not call a new computation of the algorithm, but only reads its internal results.
Constructors(1)
Constructs a framework for filtering the results of the
HLRBRep_Algoalgorithm, A. Use the extraction filters to obtain the results you want for A.
Instance methods(19)
- Update(A: HLRBRep_PolyAlgo): voidParameters (1)
A
- Show(): void
- Hide(): void
- Parameters (1)
S
Sets the extraction filter for visible smooth edges.
- Parameters (1)
S
Sets the extraction filter for visible sewn edges.
- Parameters (1)
S
Sets the extraction filter for visible outlines.
Parameters (1)S
- Parameters (1)
S
Sets the extraction filter for hidden smooth edges.
Parameters (1)S
Sets the extraction filter for hidden sewn edges.
Parameters (1)S
Sets the extraction filter for hidden outlines. Hidden outlines occur, for instance, in tori. In this case, the inner outlines of the torus seen on its side are hidden.
Parameters (1)S
HLRBRep_ShapeBounds
Contains a Shape and the bounds of its vertices, edges and faces in the DataStructure.
Constructors(3)
- constructor(S: HLRTopoBRep_OutLiner, nbIso: number, V1: number, V2: number, E1: number, E2: number, F1: number, F2: number): HLRBRep_ShapeBoundsParameters (8)
SnbIsoV1V2E1E2F1F2
- constructor(S: HLRTopoBRep_OutLiner, SData: Standard_Transient, nbIso: number, V1: number, V2: number, E1: number, E2: number, F1: number, F2: number): HLRBRep_ShapeBoundsParameters (9)
SSDatanbIsoV1V2E1E2F1F2
Instance methods(11)
- Translate(NV: number, NE: number, NF: number): voidParameters (3)
NVNENF
- Shape(S: HLRTopoBRep_OutLiner): voidParameters (1)
S
- ShapeData(SD: Standard_Transient): voidParameters (1)
SD
- NbOfIso(nbIso: number): voidParameters (1)
nbIso
- NbOfIso(): number
- Sizes(NV: number, NE: number, NF: number): { NV: number; NE: number; NF: number }Parameters (3)
NVNENF
- Bounds(V1: number, V2: number, E1: number, E2: number, F1: number, F2: number): { V1: number; V2: number; E1: number; E2: number; F1: number; F2: number }Parameters (6)
V1V2E1E2F1F2
- UpdateMinMax(theTotMinMax: HLRAlgo_EdgesBlock_MinMaxIndices): voidParameters (1)
theTotMinMax
HLRBRep_ShapeToHLR
compute the OutLinedShape of a Shape with an OutLiner, a Projector and create the Data Structure of a Shape.
Constructors(1)
HLRBRep_SLProps
Template class for computing local properties of a 3D surface: point, first and second derivatives, tangent directions, normal, and curvature analysis (max, min, mean, Gaussian).
Constructors(3)
- constructor(N: number, Resolution: number): HLRBRep_SLProps
idem as previous constructor but without setting the value of parameters and <V> and the surface. the surface can have an empty constructor.
Parameters (2)NResolution
- constructor(S: unknown, N: number, Resolution: number): HLRBRep_SLProps
idem as previous constructor but without setting the value of parameters and <V>.
Parameters (3)SNResolution
- constructor(S: unknown, U: number, V: number, N: number, Resolution: number): HLRBRep_SLProps
Initializes the local properties of the surface for the parameter values (, <V>). The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, or 2). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).
Parameters (5)SUVNResolution
Instance methods(21)
- SetSurface(S: unknown): void
Initializes the local properties of the surface S for the new surface.
Parameters (1)S
- SetParameters(U: number, V: number): void
Initializes the local properties of the surface S for the new parameter values (, <V>).
Parameters (2)UV
Returns the point.
Returns the first U derivative. The derivative is computed if it has not been yet.
Returns the first V derivative. The derivative is computed if it has not been yet.
Returns the second U derivatives The derivative is computed if it has not been yet.
Returns the second V derivative. The derivative is computed if it has not been yet.
Returns the second UV cross-derivative. The derivative is computed if it has not been yet.
- IsTangentUDefined(): boolean
returns True if the U tangent is defined. For example, the tangent is not defined if the two first U derivatives are null.
Returns the tangent direction <D> on the iso-V.
Parameters (1)D—Mutated in place; read the updated value from this argument after the call.
- IsTangentVDefined(): boolean
returns if the V tangent is defined. For example, the tangent is not defined if the two first V derivatives are null.
Returns the tangent direction <D> on the iso-V.
Parameters (1)D—Mutated in place; read the updated value from this argument after the call.
- IsNormalDefined(): boolean
Tells if the normal is defined.
Returns the normal direction.
- IsCurvatureDefined(): boolean
returns True if the curvature is defined.
- IsUmbilic(): boolean
returns True if the point is umbilic (i.e. if the curvature is constant).
- MaxCurvature(): number
Returns the maximum curvature.
- MinCurvature(): number
Returns the minimum curvature.
- CurvatureDirections(MaxD: gp_Dir, MinD: gp_Dir): void
Returns the direction of the maximum and minimum curvature <MaxD> and <MinD>.
Parameters (2)MaxD—Mutated in place; read the updated value from this argument after the call.MinD—Mutated in place; read the updated value from this argument after the call.
- MeanCurvature(): number
Returns the mean curvature.
- GaussianCurvature(): number
Returns the Gaussian curvature.
HLRBRep_SLPropsATool
Constructors(1)
HLRBRep_SurfaceTool
Constructors(1)
HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter
Instance methods(5)
- NbVariables(): number
returns 2.
- NbEquations(): number
returns 2.
- Value(X: math_Vector, F: math_Vector): boolean
computes the values <F> of the Functions for the variable <X>. returns True if the computation was done successfully, False otherwise.
Parameters (2)XF
- Derivatives(X: math_Vector, D: math_Matrix): boolean
returns the values <D> of the derivatives for the variable <X>. returns True if the computation was done successfully, False otherwise.
Parameters (2)XD
- Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean
returns the values <F> of the functions and the derivatives <D> for the variable <X>. returns True if the computation was done successfully, False otherwise.
Parameters (3)XFD
HLRBRep_TheExactInterCSurf
HLRBRep_TheIntConicCurveOfCInter
Constructors(1)
Empty constructor.
HLRBRep_TheInterferenceOfInterCSurf
Constructors(1)
Constructs an empty interference between Polygon and Polyhedron.
HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter
Constructors(1)
Empty constructor.
HLRBRep_TheIntPCurvePCurveOfCInter
Constructors(1)
Instance methods(2)
- SetMinNbSamples(theMinNbSamples: number): void
Set / get minimum number of points in polygon for intersection.
Parameters (1)theMinNbSamples
- GetMinNbSamples(): number
HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter
Instance methods(12)
- DeflectionOverEstimation(): number
Returns the tolerance of the polygon.
- SetDeflectionOverEstimation(x: number): voidParameters (1)
x
- Closed(clos: boolean): voidParameters (1)
clos
- Closed(): boolean
Returns True if the polyline is closed.
- NbSegments(): number
Give the number of Segments in the polyline.
Returns the points of the segment <Index> in the Polygon.
Parameters (3)theIndextheBegin—Mutated in place; read the updated value from this argument after the call.theEnd—Mutated in place; read the updated value from this argument after the call.
- InfParameter(): number
Returns the parameter (On the curve) of the first point of the Polygon.
- SupParameter(): number
Returns the parameter (On the curve) of the last point of the Polygon.
- AutoIntersectionIsPossible(): boolean
- ApproxParamOnCurve(Index: number, ParamOnLine: number): number
Give an approximation of the parameter on the curve according to the discretization of the Curve.
Parameters (2)IndexParamOnLine
- CalculRegion(x: number, y: number, x1: number, x2: number, y1: number, y2: number): numberParameters (6)
xyx1x2y1y2
- Dump(): void
HLRBRep_ThePolygonOfInterCSurf
Constructors(3)
- constructor(Curve: gp_Lin, NbPnt: number): HLRBRep_ThePolygonOfInterCSurfParameters (2)
CurveNbPnt
- constructor(Curve: gp_Lin, Upars: NCollection_Array1_double): HLRBRep_ThePolygonOfInterCSurfParameters (2)
CurveUpars
- constructor(Curve: gp_Lin, U1: number, U2: number, NbPnt: number): HLRBRep_ThePolygonOfInterCSurfParameters (4)
CurveU1U2NbPnt
Instance methods(12)
Give the bounding box of the polygon.
- DeflectionOverEstimation(): number
- SetDeflectionOverEstimation(x: number): voidParameters (1)
x
- Closed(flag: boolean): voidParameters (1)
flag
- Closed(): boolean
- NbSegments(): number
Give the number of Segments in the polyline.
- BeginOfSeg(theIndex: number): gp_Pnt
Give the point of range Index in the Polygon.
Parameters (1)theIndex
Give the point of range Index in the Polygon.
Parameters (1)theIndex
- InfParameter(): number
Returns the parameter (On the curve) of the first point of the Polygon.
- SupParameter(): number
Returns the parameter (On the curve) of the last point of the Polygon.
- ApproxParamOnCurve(Index: number, ParamOnLine: number): number
Give an approximation of the parameter on the curve according to the discretization of the Curve.
Parameters (2)IndexParamOnLine
- Dump(): void
HLRBRep_ThePolygonToolOfInterCSurf
Constructors(1)
Static methods(7)
- Bounding(thePolygon: HLRBRep_ThePolygonOfInterCSurf): Bnd_Box
Give the bounding box of the polygon.
Parameters (1)thePolygon
- DeflectionOverEstimation(thePolygon: HLRBRep_ThePolygonOfInterCSurf): numberParameters (1)
thePolygon
- Closed(thePolygon: HLRBRep_ThePolygonOfInterCSurf): booleanParameters (1)
thePolygon
- NbSegments(thePolygon: HLRBRep_ThePolygonOfInterCSurf): numberParameters (1)
thePolygon
- BeginOfSeg(thePolygon: HLRBRep_ThePolygonOfInterCSurf, Index: number): gp_Pnt
Give the point of range Index in the Polygon.
Parameters (2)thePolygonIndex
- EndOfSeg(thePolygon: HLRBRep_ThePolygonOfInterCSurf, Index: number): gp_Pnt
Give the point of range Index in the Polygon.
Parameters (2)thePolygonIndex
- Dump(thePolygon: HLRBRep_ThePolygonOfInterCSurf): voidParameters (1)
thePolygon
HLRBRep_ThePolyhedronToolOfInterCSurf
Constructors(1)
HLRBRep_TheProjPCurOfCInter
Constructors(1)
HLRBRep_TheQuadCurvExactInterCSurf
Instance methods(4)
- NbRoots(): number
- Root(Index: number): numberParameters (1)
Index
- NbIntervals(): number
- Intervals(Index: number, U1: number, U2: number): { U1: number; U2: number }
U1 and U2 are the parameters of a segment on the curve.
Parameters (3)IndexU1U2
ReturnsA result object with fields:
U1: updated value from the call.U2: updated value from the call.
HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf
Constructors(1)
Create the function.
Parameters (2)QC
Instance methods(3)
- Value(X: number, F: number): { returnValue: boolean; F: number }
Computes the value of the signed distance between the implicit surface and the point at parameter Param on the parametrised curve. Value always returns True.
Parameters (2)XF
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- Derivative(X: number, D: number): { returnValue: boolean; D: number }
Computes the derivative of the previous function at parameter Param. Derivative always returns True.
Parameters (2)XD
ReturnsA result object with fields:
returnValue: the C++ return valueD: updated value from the call.
- Values(X: number, F: number, D: number): { returnValue: boolean; F: number; D: number }
Computes the value and the derivative of the function. returns True.
Parameters (3)XFD
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.D: updated value from the call.
HLRBRep_TypeOfResultingEdge
Properties(6)
HLRBRep_VertexList
Instance methods(9)
- IsPeriodic(): boolean
Returns True when the curve is periodic.
- More(): boolean
Returns True when there are more vertices.
- Next(): void
Proceeds to the next vertex.
Returns the current vertex.
- IsBoundary(): boolean
Returns True if the current vertex is on the boundary of the edge.
- IsInterference(): boolean
Returns True if the current vertex is an interference.
Returns the orientation of the current vertex if it is on the boundary of the edge.
Returns the transition of the current vertex if it is an interference.
Returns the transition of the current vertex relative to the boundary if it is an interference.