OpenCascade.js
API ReferenceModelingAlgorithmsTKHLR

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)

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_Algo is 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_Algo calculates a set of lines characteristic of the object being represented. It is also used in conjunction with the HLRBRep_HLRToShape extraction 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_Algo takes the shape itself into account whereas HLRBRep_PolyAlgo works with a polyhedral simplification of the shape.
    When you use HLRBRep_Algo, you obtain an exact result, whereas, when you use HLRBRep_PolyAlgo, you reduce computation time but obtain polygonal segments. In the case of complicated shapes, HLRBRep_Algo may be time-consuming. An HLRBRep_Algo object 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)

Instance methods(6)

  • Add(S: TopoDS_Shape, SData: Standard_Transient, nbIso: number): void

    add the Shape .

    Parameters (3)
    • S
    • SData
    • nbIso
  • 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)
    • S
    • nbIso
  • Index(S: TopoDS_Shape): number

    return the index of the Shape and return 0 if the Shape is not found.

    Parameters (1)
    • S
  • return the index of the Shape and return 0 if the Shape is not found.

    Parameters (1)
    • S
  • 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)

Static methods(2)

Instance methods(17)

HLRBRep_BCurveTool

Constructors(1)

Static methods(30)

HLRBRep_BiPnt2D

Contains the colors of a shape.

Constructors(3)

Instance methods(12)

HLRBRep_BiPoint

Contains the colors of a shape.

Constructors(2)

Instance methods(12)

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 from HLRBRep .

    Parameters (3)
    • A
    • U
    • P
      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)
    • A
    • U
    • P
      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)
    • A
    • U
    • P
      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.
  • D3(A: HLRBRep_Curve, U: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d): void

    Computes the point.
    , the first derivative <V1>, the second derivative <V2> and third derivative <V3> of parameter on the curve .

    Parameters (6)
    • A
    • U
    • P
      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.
  • 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
  • returns the first parameter bound of the curve.

    Parameters (1)
    • A
  • 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)

Instance methods(44)

  • Parameters (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)
    • TotMin
    • TotMax
  • 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)
    • TotMin
    • TotMax
  • 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
  • Value3D(U: number): gp_Pnt

    Computes the 3D point of parameter U on the curve.

    Parameters (1)
    • U
  • D0(U: number, P: gp_Pnt): void

    Computes the 3D point of parameter U on the curve.

    Parameters (2)
    • U
    • P
      Mutated in place; read the updated value from this argument after the call.
  • D0(U: number, P: gp_Pnt2d): void

    Computes the point of parameter U on the curve.

    Parameters (2)
    • U
    • P
      Mutated in place; read the updated value from this argument after the call.
  • D1(U: number, P: gp_Pnt, V: gp_Vec): void

    Computes the point of parameter U on the curve with its first derivative.

    Parameters (3)
    • U
    • P
      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.
  • D1(U: number, P: gp_Pnt2d, V: gp_Vec2d): 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 (3)
    • U
    • P
      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.
  • Tangent(AtStart: boolean, P: gp_Pnt2d, D: gp_Dir2d): void

    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)
    • AtStart
    • P
      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
  • If necessary, breaks the curve in intervals of continuity . And returns the number of intervals.

    Parameters (1)
    • S
  • 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
  • Value(U: number): gp_Pnt2d

    Computes the point of parameter U on the curve.

    Parameters (1)
    • U
  • D2(U: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d): void

    Raised if the continuity of the current interval is not C2.

    Parameters (4)
    • U
    • P
      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.
  • D3(U: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d): void

    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)
    • U
    • P
      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(U: number, N: number): gp_Vec2d

    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)
    • U
    • N
  • 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
  • Parameters (1)
    • TP
  • Parameters (2)
    • aCurve
    • TP
  • Parameters (2)
    • TP
    • TW
  • Parameters (3)
    • aCurve
    • TP
    • TW
  • NbKnots(): number
  • Parameters (1)
    • kn
  • Parameters (1)
    • mu

HLRBRep_EdgeBuilder

Constructors(1)

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)

HLRBRep_EdgeIList

Constructors(1)

Static methods(2)

HLRBRep_EdgeInterferenceTool

Implements the methods required to instantiates the EdgeInterferenceList from HLRAlgo.

Instance methods(12)

HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter

Instance methods(5)

HLRBRep_FaceData

Constructors(1)

Instance methods(34)

HLRBRep_FaceIterator

Constructors(1)

Instance methods(13)

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)

Instance methods(22)

HLRBRep_InternalAlgo

Constructors(2)

Static methods(2)

Instance methods(26)

HLRBRep_LineTool

The LineTool class provides class methods to access the methodes of the Line.

Constructors(1)

Static methods(37)

  • Parameters (1)
    • C
  • LastParameter(C: gp_Lin): number
    Parameters (1)
    • C
  • Parameters (1)
    • C
  • If necessary, breaks the line in intervals of continuity . And returns the number of intervals.

    Parameters (2)
    • C
    • S
  • Sets the current working interval.

    Parameters (3)
    • C
    • T
      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
  • IsClosed(C: gp_Lin): boolean
    Parameters (1)
    • C
  • IsPeriodic(C: gp_Lin): boolean
    Parameters (1)
    • C
  • Period(C: gp_Lin): number
    Parameters (1)
    • C
  • Value(C: gp_Lin, U: number): gp_Pnt

    Computes the point of parameter U on the line.

    Parameters (2)
    • C
    • U
  • D0(C: gp_Lin, U: number, P: gp_Pnt): void

    Computes the point of parameter U on the line.

    Parameters (3)
    • C
    • U
    • P
      Mutated in place; read the updated value from this argument after the call.
  • D1(C: gp_Lin, U: number, P: gp_Pnt, V: gp_Vec): void

    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)
    • C
    • U
    • P
      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: gp_Lin, 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)
    • C
    • U
    • P
      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.
  • D3(C: gp_Lin, U: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec): void

    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)
    • C
    • U
    • P
      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: gp_Lin, 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)
    • C
    • U
    • N
  • Resolution(C: gp_Lin, R3d: number): number

    Returns the parametric resolution corresponding to the real space resolution <R3d>.

    Parameters (2)
    • C
    • R3d
  • 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
  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • Degree(C: gp_Lin): number
    Parameters (1)
    • C
  • NbPoles(C: gp_Lin): number
    Parameters (1)
    • C
  • Parameters (2)
    • C
    • TP
  • IsRational(C: gp_Lin): boolean
    Parameters (1)
    • C
  • Parameters (3)
    • C
    • TP
    • TW
  • NbKnots(C: gp_Lin): number
    Parameters (1)
    • C
  • Parameters (3)
    • C
    • TK
    • TM
  • NbSamples(C: gp_Lin, U0: number, U1: number): number
    Parameters (3)
    • C
    • U0
    • U1
  • 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 line
    • U0
      start parameter
    • U1
      end parameter
    • Defl
      deflection tolerance (unused for lines)
    • NbMin
      minimum number of sample points (unused for lines)
    Returns

    array 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 line
    • U0
      start parameter
    • U1
      end parameter
    • Defl
      deflection tolerance (unused for lines)
    • NbMin
      minimum number of sample points (unused for lines)
    Returns

    array 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 }
    Deprecated
    Parameters (5)
    • C
    • U0
    • U1
    • Defl
    • NbMin
    Returns

    A 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)
    • X
    • F
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: 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)
    • X
    • D
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • D: 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)
    • X
    • F
    • D
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: 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_PolyAlgo is 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_PolyAlgo calculates a set of lines characteristic of the object being represented.
    It is also used in conjunction with the HLRBRep_PolyHLRToShape extraction 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_PolyAlgo works with a polyhedral simplification of the shape whereas HLRBRep_Algo takes the shape itself into account. When you use HLRBRep_Algo, you obtain an exact result, whereas, when you use HLRBRep_PolyAlgo, you reduce computation time but obtain polygonal segments. An HLRBRep_PolyAlgo object 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)

Static methods(2)

Instance methods(25)

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)

Instance methods(19)

HLRBRep_ShapeBounds

Contains a Shape and the bounds of its vertices, edges and faces in the DataStructure.

Constructors(3)

Instance methods(11)

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)
    • N
    • Resolution
  • constructor(S: unknown, N: number, Resolution: number): HLRBRep_SLProps

    idem as previous constructor but without setting the value of parameters and <V>.

    Parameters (3)
    • S
    • N
    • Resolution
  • 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)
    • S
    • U
    • V
    • N
    • Resolution

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)
    • U
    • V
  • 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.

  • returns True if the U tangent is defined. For example, the tangent is not defined if the two first U derivatives are null.

  • TangentU(D: gp_Dir): void

    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.
  • returns if the V tangent is defined. For example, the tangent is not defined if the two first V derivatives are null.

  • TangentV(D: gp_Dir): void

    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.

  • 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.

  • Returns the Gaussian curvature.

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)
    • X
    • F
  • 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)
    • X
    • D
  • 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)
    • X
    • F
    • D

HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter

Instance methods(12)

  • Returns the tolerance of the polygon.

  • Parameters (1)
    • x
  • Closed(clos: boolean): void
    Parameters (1)
    • clos
  • Closed(): boolean

    Returns True if the polyline is closed.

  • NbSegments(): number

    Give the number of Segments in the polyline.

  • Segment(theIndex: number, theBegin: gp_Pnt2d, theEnd: gp_Pnt2d): void

    Returns the points of the segment <Index> in the Polygon.

    Parameters (3)
    • theIndex
    • theBegin
      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.

  • ApproxParamOnCurve(Index: number, ParamOnLine: number): number

    Give an approximation of the parameter on the curve according to the discretization of the Curve.

    Parameters (2)
    • Index
    • ParamOnLine
  • CalculRegion(x: number, y: number, x1: number, x2: number, y1: number, y2: number): number
    Parameters (6)
    • x
    • y
    • x1
    • x2
    • y1
    • y2
  • Dump(): void

HLRBRep_ThePolygonOfInterCSurf

Constructors(3)

Instance methods(12)

  • Give the bounding box of the polygon.

  • Parameters (1)
    • x
  • Closed(flag: boolean): void
    Parameters (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
  • EndOfSeg(theIndex: number): gp_Pnt

    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)
    • Index
    • ParamOnLine
  • Dump(): void

HLRBRep_ThePolygonToolOfInterCSurf

Constructors(1)

Static methods(7)

HLRBRep_TheQuadCurvExactInterCSurf

Instance methods(4)

  • NbRoots(): number
  • Root(Index: number): number
    Parameters (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)
    • Index
    • U1
    • U2
    Returns

    A result object with fields:

    • U1: updated value from the call.
    • U2: updated value from the call.

HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf

Constructors(1)

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)
    • X
    • F
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: 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)
    • X
    • D
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • D: 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)
    • X
    • F
    • D
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
    • D: updated value from the call.

HLRBRep_VertexList

Instance methods(9)