Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • VerbSurface

Index

Constructors

constructor

  • new VerbSurface(context: Context, geometryHelper: GeometryHelper): VerbSurface
  • Parameters

    • context: Context
    • geometryHelper: GeometryHelper

    Returns VerbSurface

Properties

Readonly cone

Readonly cylinder

Readonly extrusion

Readonly revolved

Readonly sphere

Readonly sweep

Methods

boundaries

  • Gets the boundary edge Nurbs curves of the surface in a list

    Parameters

    Returns any[]

    Array of curves

clone

  • Clone the Nurbs surface

    Parameters

    Returns any

    Nurbs surface

closestParam

  • Finds the closest parameter on the surface from the point

    Parameters

    Returns UVDto

    UV parameters

closestPoint

  • Finds the closest point on the surface from the point

    Parameters

    Returns number[]

    Point

controlPoints

  • Gets the control points on the surface

    Parameters

    Returns number[][][]

    Two dimensional array of points

createSurfaceByCorners

  • Creates the surface by providing 4 points as corners

    Parameters

    Returns any

    Nurbs surface

createSurfaceByKnotsControlPointsWeights

  • Creates the Nurbs surface by providing uv knots, uv degrees, points and weights

    Parameters

    Returns any

    Nurbs surface

createSurfaceByLoftingCurves

  • Creates the Nurbs surface by lofting curves

    Parameters

    Returns any

    Nurbs surface

degreeU

  • Gets the U degree of the surface

    Parameters

    Returns number

    U degree

degreeV

  • Gets the V degree of the surface

    Parameters

    Returns number

    V degree

derivatives

  • Gets the derivatives of the surface at specified uv coordinate

    Parameters

    Returns number[][][]

    Two dimensional array of vectors

domainU

  • Gets the U domain of the surface

    Parameters

    Returns IntervalDto

    U domain as interval

domainV

  • Gets the V domain of the surface

    Parameters

    Returns IntervalDto

    V domain as interval

drawSurface

  • Draws a single surface

    Parameters

    • inputs: DrawSurfaceDto

      Contains a surface and information for drawing

    Returns Mesh

    Mesh that is being drawn by Babylon

drawSurfaces

  • Draws multiple surfaces

    Parameters

    • inputs: DrawSurfacesDto

      Contains the Nurbs surfaces and information for drawing

    Returns Mesh

    Mesh that is being drawn by Babylon

drawSurfacesMultiColour

  • Draws multiple surfaces with multiple colours. Number of colours has to be equal to number of surfaces

    Parameters

    Returns Mesh

    Mesh that is being drawn by Babylon

isocurve

  • Gets the Nurbs isocurve on the surface

    Parameters

    Returns any

    Nurbs curve

isocurvesAtParams

  • Subdivides surface into isocurves on specified array of parameters

    Parameters

    Returns any[]

    Nurbs curves

isocurvesSubdivision

  • Subdivides surface into preferred number of isocurves

    Parameters

    Returns any[]

    Nurbs curves

knotsU

  • Gets the U knots of the surface

    Parameters

    Returns number[]

    Knots on u direction

knotsV

  • Gets the V knots of the surface

    Parameters

    Returns number[]

    Knots on v direction

normal

  • Gets the normal on the surface at uv coordinate

    Parameters

    Returns number[]

    Normal vector

point

  • Gets the point on the surface at uv coordinate

    Parameters

    Returns number[]

    Point

reverse

  • Reverse the Nurbs surface. This will reverse the UV origin and isocurve directions

    Parameters

    Returns any

    Nurbs surface

split

  • Splits the Nurbs surface in two halfs.

    Parameters

    Returns any[]

    Two Nurbs surfaces

transformSurface

  • Transforms the Nurbs surface with a given list of transformations.

    Parameters

    Returns any

    Nurbs surface

weights

  • Gets the weights of the surface

    Parameters

    Returns number[][]

    Two dimensional array of weights

Generated using TypeDoc