gs-json
Version:
gs-JSON is a domain agnostic unifying 3D file format for geometric and semantic modelling (hence the 'gs').
9 lines (8 loc) • 466 B
TypeScript
import * as three from "three";
import * as gs from "../../gs-json";
/**
* Function to transform a set of vertices in 3d space onto the xy plane. This function assumes that the vertices
* are co-planar. Returns a set of three Vectors that represent points on the xy plane.
*/
export declare function makeVertices2D(vertices: gs.IVertex[]): three.Vector3[];
export declare function triangulate2D(vertices: gs.IVertex[], verts_indexes: number[]): number[];