@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
31 lines (27 loc) • 716 B
JavaScript
/**
* A geometry is separated into individual triangles, with each triangle projected onto a single plane.
* This class contains and fully describes such assignment
*/
export class FacePlaneAssignment {
/**
* Flat plane data array
* Format: [normal_0_x, normal_0_y, normal_0_z, plane_0_offset, normal_1_x, ... ]
* @type {number[]}
*/
planes = [];
/**
*
* @type {number}
*/
plane_count = 0;
/**
*
* @type {THREE.BufferGeometry|null}
*/
geometry = null;
/**
* Indices of planes associated with each face (triangle) for a given face index
* @type {number[]}
*/
face_assignments = [];
}