Skip to main content

make_ring_vertices

make_ring_vertices(out, Px, Py, Pz, N, B, T, u, bend_angle, shape, shape_normals, shape_length, shape_transform)

Kind: global function

ParamTypeDescription
outStreamGeometryBuilder
Pxnumber
Pynumber
Pznumber
NVector3normal
BVector3binormal
TVector3tangent
unumberX component of UV
bend_angleArray.<number> | Float32Array
shapeArray.<number> | Float32Array2d shape, format [x0,y1, x1,y1, ... , xN,yN]
shape_normalsArray.<number> | Float32Array
shape_lengthnumbernumber of points in the shape
shape_transformArray.<number> | Float32Array3x3 2d transform matrix for shape Note that matrix uses row-major order