-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
types.js
33 lines (29 loc) · 1.19 KB
/
types.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* @typedef {number[]} vec2
*/
/**
* @typedef {number[]} vec3
*/
/**
* @typedef {object} SimplicialComplex Geometry definition.
* @property {Float32Array | Array | vec3[]} positions
* @property {Float32Array | Array | vec3[]} [tangents]
* @property {Float32Array | Array | vec3[]} [normals]
* @property {Float32Array | Array | vec2[]} [uvs]
* @property {(Uint8Array | Uint16Array | Uint32Array | Array | vec3[])} [cells]
*/
/**
* @typedef {object} SimplicialComplexWithTNB Geometry definition augmented with tangents, normals and binormals.
* @property {Float32Array | Array | vec3[]} positions
* @property {Float32Array | Array | vec3[]} tangents
* @property {Float32Array | Array | vec3[]} normals
* @property {Float32Array | Array | vec3[]} binormals
* @property {Float32Array | Array | vec2[]} [uvs]
* @property {(Uint8Array | Uint16Array | Uint32Array | Array | vec3[])} [cells]
*/
/**
* @typedef {object} Options Options for frames computation. All optional.
* @property {boolean} [closed=false] Specify is the path is closed.
* @property {vec3} [initialNormal=null] Specify a starting normal for the frames. Default to the direction of the minimum tangent component.
*/
export {};