OpenCascade.js
API ReferenceModelingDataTKG3d

GeomAdaptor

OCCT package GeomAdaptor: GeomAdaptor, GeomAdaptor_Curve, GeomAdaptor_Surface, GeomAdaptor_SurfaceOfLinearExtrusion, and 3 more bound classes.

GeomAdaptor

this package contains the geometric definition of curve and surface necessary to use algorithms.

Constructors(1)

Static methods(2)

GeomAdaptor_Curve

This class provides an interface between the services provided by any curve from the package Geom and those required of the curve by algorithms which use it. Creation of the loaded curve the curve is C1 by piece.
Polynomial coefficients of BSpline curves used for their evaluation are cached for better performance. Therefore these evaluations are not thread-safe and parallel evaluations need to be prevented.

Constructors(3)

Static methods(2)

Instance methods(34)

  • Shallow copy of adaptor.

  • Reset(): void

    Reset currently loaded curve (undone Load()).

  • Load(theCurve: Geom_Curve): void
    Parameters (1)
    • theCurve
  • Load(theCurve: Geom_Curve, theUFirst: number, theULast: number): void

    Standard_ConstructionError is raised if theUFirst > theULast + Precision::PConfusion().

    Parameters (3)
    • theCurve
    • theUFirst
    • theULast
  • Provides a curve inherited from Hcurve from Adaptor. This is inherited to provide easy to use constructors.

  • FirstParameter(): number
  • LastParameter(): number
  • Returns the number of intervals for continuity . May be one if Continuity(me) >= .

    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
  • Trim(First: number, Last: number, Tol: number): Adaptor3d_Curve

    Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>.

    Parameters (3)
    • First
    • Last
    • Tol
  • IsClosed(): boolean
  • IsPeriodic(): boolean
  • Period(): number
  • Resolution(R3d: number): number

    returns the parametric resolution

    Parameters (1)
    • R3d
  • Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.

  • Degree(): number

    this should NEVER make a copy of the underlying curve to read the relevant information

  • IsRational(): boolean

    this should NEVER make a copy of the underlying curve to read the relevant information

  • NbPoles(): number

    this should NEVER make a copy of the underlying curve to read the relevant information

  • NbKnots(): number

    this should NEVER make a copy of the underlying curve to read the relevant information

  • this will NOT make a copy of the Bezier Curve : If you want to modify the Curve please make a copy yourself Also it will NOT trim the surface to myFirst/Last.

  • this will NOT make a copy of the BSpline Curve : If you want to modify the Curve please make a copy yourself Also it will NOT trim the surface to myFirst/Last.

  • EvalD0(theU: number): gp_Pnt

    Point evaluation. Raises an exception on failure.

    Parameters (1)
    • theU
  • EvalD1(theU: number): Geom_Curve_ResD1

    D1 evaluation. Raises an exception on failure.

    Parameters (1)
    • theU
  • EvalD2(theU: number): Geom_Curve_ResD2

    D2 evaluation. Raises an exception on failure.

    Parameters (1)
    • theU
  • EvalD3(theU: number): Geom_Curve_ResD3

    D3 evaluation. Raises an exception on failure.

    Parameters (1)
    • theU
  • EvalDN(theU: number, theN: number): gp_Vec

    DN evaluation. Raises an exception on failure.

    Parameters (2)
    • theU
    • theN

GeomAdaptor_Surface

An interface between the services provided by any surface from the package Geom and those required of the surface by algorithms which use it. Creation of the loaded surface the surface is C1 by piece.
Polynomial coefficients of BSpline surfaces used for their evaluation are cached for better performance. Therefore these evaluations are not thread-safe and parallel evaluations need to be prevented.

Constructors(3)

Static methods(2)

Instance methods(54)

  • Shallow copy of adaptor.

  • Load(theSurf: Geom_Surface): void
    Parameters (1)
    • theSurf
  • Load(theSurf: Geom_Surface, theUFirst: number, theULast: number, theVFirst: number, theVLast: number, theTolU: number, theTolV: number): void

    Standard_ConstructionError is raised if theUFirst>theULast or theVFirst>theVLast.

    Parameters (7)
    • theSurf
    • theUFirst
    • theULast
    • theVFirst
    • theVLast
    • theTolU
    • theTolV
  • FirstUParameter(): number
  • LastUParameter(): number
  • FirstVParameter(): number
  • LastVParameter(): number
  • Bounds(theU1: number, theU2: number, theV1: number, theV2: number): { theU1: number; theU2: number; theV1: number; theV2: number }

    Returns the parametric bounds of the surface.

    Parameters (4)
    • theU1
      minimum U parameter
    • theU2
      maximum U parameter
    • theV1
      minimum V parameter
    • theV2
      maximum V parameter
    Returns

    A result object with fields:

    • theU1: minimum U parameter
    • theU2: maximum U parameter
    • theV1: minimum V parameter
    • theV2: maximum V parameter
  • ToleranceU(): number

    Returns tolerance in U direction.

  • ToleranceV(): number

    Returns tolerance in V direction.

  • Returns the number of U intervals for continuity . May be one if UContinuity(me) >= .

    Parameters (1)
    • S
  • Returns the number of V intervals for continuity . May be one if VContinuity(me) >= .

    Parameters (1)
    • S
  • Returns the intervals with the requested continuity in the U direction.

    Parameters (2)
    • T
      Mutated in place; read the updated value from this argument after the call.
    • S
  • Returns the intervals with the requested continuity in the V direction.

    Parameters (2)
    • T
      Mutated in place; read the updated value from this argument after the call.
    • S
  • UTrim(First: number, Last: number, Tol: number): Adaptor3d_Surface

    Returns a surface trimmed in the U direction equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>.

    Parameters (3)
    • First
    • Last
    • Tol
  • VTrim(First: number, Last: number, Tol: number): Adaptor3d_Surface

    Returns a surface trimmed in the V direction between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>.

    Parameters (3)
    • First
    • Last
    • Tol
  • IsUClosed(): boolean
  • IsVClosed(): boolean
  • IsUPeriodic(): boolean
  • UPeriod(): number
  • IsVPeriodic(): boolean
  • VPeriod(): number
  • EvalD0(theU: number, theV: number): gp_Pnt

    Point evaluation. Raises an exception on failure.

    Parameters (2)
    • theU
    • theV
  • EvalD1(theU: number, theV: number): Geom_Surface_ResD1

    D1 evaluation. Raises an exception on failure.

    Parameters (2)
    • theU
    • theV
  • EvalD2(theU: number, theV: number): Geom_Surface_ResD2

    D2 evaluation. Raises an exception on failure.

    Parameters (2)
    • theU
    • theV
  • EvalD3(theU: number, theV: number): Geom_Surface_ResD3

    D3 evaluation. Raises an exception on failure.

    Parameters (2)
    • theU
    • theV
  • EvalDN(theU: number, theV: number, theNu: number, theNv: number): gp_Vec

    DN evaluation. Raises an exception on failure.

    Parameters (4)
    • theU
    • theV
    • theNu
    • theNv
  • UResolution(R3d: number): number

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

    Parameters (1)
    • R3d
  • VResolution(R3d: number): number

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

    Parameters (1)
    • R3d
  • Returns the type of the surface: Plane, Cylinder, Cone, Sphere, Torus, BezierSurface, BSplineSurface, SurfaceOfRevolution, SurfaceOfExtrusion, OtherSurface.

  • UDegree(): number
  • NbUPoles(): number
  • VDegree(): number
  • NbVPoles(): number
  • NbUKnots(): number
  • NbVKnots(): number
  • IsURational(): boolean
  • IsVRational(): boolean
  • This will NOT make a copy of the Bezier Surface : If you want to modify the Surface please make a copy yourself Also it will NOT trim the surface to myU/VFirst/Last.

  • This will NOT make a copy of the BSpline Surface : If you want to modify the Surface please make a copy yourself Also it will NOT trim the surface to myU/VFirst/Last.

  • OffsetValue(): number

GeomAdaptor_SurfaceOfLinearExtrusion

Generalised cylinder. This surface is obtained by sweeping a curve in a given direction. The parametrization range for the parameter U is defined with referenced the curve. The parametrization range for the parameter V is ]-infinite,+infinite[ The position of the curve gives the origin for the parameter V. The continuity of the surface is CN in the V direction.

Constructors(3)

Static methods(2)

Instance methods(41)

GeomAdaptor_SurfaceOfRevolution

This class defines a complete surface of revolution. The surface is obtained by rotating a curve a complete revolution about an axis. The curve and the axis must be in the same plane.
If the curve and the axis are not in the same plane it is always possible to be in the previous case after a cylindrical projection of the curve in a referenced plane.
For a complete surface of revolution the parametric range is 0 <= U <= 2*PI The parametric range for V is defined with the revolved curve. The origin of the U parametrization is given by the position of the revolved curve (reference).
The direction of the revolution axis defines the positive sense of rotation (trigonometric sense) corresponding to the increasing of the parametric value U. The derivatives are always defined for the u direction. For the v direction the definition of the derivatives depends on the degree of continuity of the referenced curve.

Constructors(3)

Static methods(2)

Instance methods(42)

GeomAdaptor_TransformedCurve

An adaptor for curves with an applied transformation.
This class wraps a GeomAdaptor_Curve (or an Adaptor3d_CurveOnSurface) and applies a gp_Trsf transformation to all point and derivative evaluations. It serves as a base class for BRepAdaptor_Curve and allows batch evaluation with transformations in GeomGridEval_Curve.
The evaluation methods (Value, D0, D1, D2, D3, DN) are marked final to enable optimizations in grid evaluation.

Constructors(3)

Static methods(2)

Instance methods(41)

GeomAdaptor_TransformedSurface

An adaptor for surfaces with an applied transformation.
This class wraps a GeomAdaptor_Surface and applies a gp_Trsf transformation to all point and derivative evaluations. It serves as a base class for BRepAdaptor_Surface and allows batch evaluation with transformations in GeomGridEval_Surface.
The evaluation methods (Value, D0, D1, D2, D3, DN) are marked final to enable optimizations in grid evaluation.

Constructors(3)

  • Creates an undefined surface with identity transformation.

  • Creates a surface adaptor with transformation.

    Parameters (2)
    • theSurface
      underlying geometry
    • theTrsf
      transformation to apply
  • constructor(theSurface: Geom_Surface, theUFirst: number, theULast: number, theVFirst: number, theVLast: number, theTrsf: gp_Trsf, theTolU?: number, theTolV?: number): GeomAdaptor_TransformedSurface

    Creates a surface adaptor with transformation and parameter bounds.

    Parameters (8)
    • theSurface
      underlying geometry
    • theUFirst
      minimum U parameter
    • theULast
      maximum U parameter
    • theVFirst
      minimum V parameter
    • theVLast
      maximum V parameter
    • theTrsf
      transformation to apply
    • theTolU
      tolerance in U direction
    • theTolV
      tolerance in V direction

Static methods(2)

Instance methods(61)