Point
verb.core.Point
TYPEDEF
Point = Array<Float>
A Point
in verb is represented simply by an array of floating point numbers.
So, in JavaScript, one would write simply [0,0,0]
to create a Point at the origin.
Vector
verb.core.Vector
TYPEDEF
Vector = Array<Float>
Like a Point
, a Vector
is simply an array of floating point numbers
So, in JavaScript, one would write simply [1,0,0]
to create the a unit vector in the x direction
Matrix
verb.core.Matrix
TYPEDEF
Matrix = Array<Array<Float>>
Matrix
is represented by a nested array of floating point number arrays
So, in JavaScript, one would write simply [[1,0],[0,1]]
to create a 2x2 identity matrix
KnotArray
verb.core.KnotArray
TYPEDEF
KnotArray = Array<Float>
A KnotArray
is a non-decreasing sequence of floating point . Use the methods in Check
to validate KnotArray
's
Plane
verb.core.Plane
CLASS
A Plane
is simply an origin point and normal
Extends: SerializableBase
constructor
METHOD
new Plane(origin : undefined, normal : undefined)
normal
PROPERTY
normal : Vector
origin
PROPERTY
origin : Point
Ray
verb.core.Ray
CLASS
A Ray
is simply an origin point and a direction
Extends: SerializableBase
constructor
METHOD
new Ray(origin : undefined, dir : undefined)
dir
PROPERTY
dir : Vector
origin
PROPERTY
origin : Point
NurbsCurveData
verb.core.NurbsCurveData
CLASS
A simple data structure representing a NURBS curve. NurbsCurveData
does no checks for legality. You can use
verb.eval.Check
for that.
Extends: SerializableBase
constructor
METHOD
new NurbsCurveData(degree : undefined, knots : undefined, controlPoints : undefined)
degree
PROPERTY
degree : Int
integer degree of curve
controlPoints
PROPERTY
controlPoints : Array<Point>
2d array of control points, where each control point is an array of length (dim)
knots
PROPERTY
knots : Array<Float>
array of nondecreasing knot values
NurbsSurfaceData
verb.core.NurbsSurfaceData
CLASS
A simple data structure representing a NURBS surface. NurbsSurfaceData
does no checks for legality. You can use
verb.eval.Check
for that.
Extends: SerializableBase
constructor
METHOD
new NurbsSurfaceData(degreeU : undefined, degreeV : undefined, knotsU : undefined, knotsV : undefined, controlPoints : undefined)
degreeU
PROPERTY
degreeU : Int
integer degree of surface in u direction
degreeV
PROPERTY
degreeV : Int
integer degree of surface in v direction
knotsU
PROPERTY
knotsU : KnotArray
array of nondecreasing knot values in u direction
knotsV
PROPERTY
knotsV : KnotArray
array of nondecreasing knot values in v direction
controlPoints
PROPERTY
controlPoints : Array<Array<Point>>
2d array of control points, the vertical direction (u) increases from top to bottom, the v direction from left to right, and where each control point is an array of length (dim)
Tri
verb.core.Tri
TYPEDEF
Tri = Array<Int>
A triangular face of a mesh
UV
verb.core.UV
TYPEDEF
UV = Array<Float>
A UV
is simply an array of floating point numbers.
So, in JavaScript, one would write simply [1,0]
to create a UV
MeshData
verb.core.MeshData
CLASS
A simple data structure representing a mesh. MeshData
does not check for legality.
Extends: SerializableBase
constructor
METHOD
new MeshData(faces : Array<Tri>, points : Array<Point>, normals : Array<Point>, uvs : Array<UV>)
empty
STATIC METHOD
empty() : MeshData
faces
PROPERTY
faces : Array<Tri>
points
PROPERTY
points : Array<Point>
normals
PROPERTY
normals : Array<Point>
uvs
PROPERTY
uvs : Array<UV>
PolylineData
verb.core.PolylineData
CLASS
A simple data structure representing a polyline. PolylineData
is useful, for example, as the result of a curve tessellation.
Extends: SerializableBase
constructor
METHOD
new PolylineData(points : undefined, params : undefined)
points
PROPERTY
points : Array<Point>
The points in the polyline
params
PROPERTY
params : Array<Float>
The parameters of the individual points
VolumeData
verb.core.VolumeData
CLASS
A simple data structure representing a NURBS volume. This data structure is largely experimental in intent. Like CurveData and SurfaceData, this data structure does no legality checks.
Extends: SerializableBase
constructor
METHOD
new VolumeData(degreeU : undefined, degreeV : undefined, degreeW : undefined, knotsU : undefined, knotsV : undefined, knotsW : undefined, controlPoints : undefined)
degreeU
PROPERTY
degreeU : Int
integer degree in u direction
degreeV
PROPERTY
degreeV : Int
integer degree in v direction
degreeW
PROPERTY
degreeW : Int
integer degree in w direction
knotsU
PROPERTY
knotsU : KnotArray
array of nondecreasing knot values in u direction
knotsV
PROPERTY
knotsV : KnotArray
array of nondecreasing knot values in v direction
knotsW
PROPERTY
knotsW : KnotArray
array of nondecreasing knot values in w direction
controlPoints
PROPERTY
controlPoints : Array<Array<Array<Point>>>
3d array of control points, where rows are the u dir, and columns run along the positive v direction, and where each control point is an array of length (dim)
Pair
verb.core.Pair<T1, T2>
CLASS
A simple parametric data type representing a pair of two objects
constructor
METHOD
new Pair<T1, T2>(item1 : T1, item2 : T2)
item0
PROPERTY
item0 : T1
item1
PROPERTY
item1 : T2
Interval
verb.core.Interval<T>
CLASS
A simple parametric data type representing an "interval" between two numbers. This data structure does no legality checks.
constructor
METHOD
new Interval<T>(min : undefined, max : undefined)
min
PROPERTY
min : T
max
PROPERTY
max : T