UNPKG

primitive-geometry

Version:

Geometries for 3D rendering, including normals, UVs and cell indices (faces). Perfect if you want to supercharge your dependency folder... with 30KB of geometries.

29 lines (28 loc) 817 B
export default plane; export type PlaneOptions = { sx?: number; sy?: number; nx?: number; ny?: number; direction?: PlaneDirection; quads?: boolean; }; export type PlaneDirection = "x" | "-x" | "y" | "-y" | "z" | "-z"; /** * @typedef {object} PlaneOptions * @property {number} [sx=1] * @property {number} [sy=sx] * @property {number} [nx=1] * @property {number} [ny=nx] * @property {PlaneDirection} [direction="z"] * @property {boolean} [quads=false] */ /** * @typedef {"x" | "-x" | "y" | "-y" | "z" | "-z"} PlaneDirection */ /** * @alias module:plane * @param {PlaneOptions} [options={}] * @returns {import("../types.js").SimplicialComplex} */ declare function plane({ sx, sy, nx, ny, direction, quads, }?: PlaneOptions, ...args: any[]): import("../types.js").SimplicialComplex;