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.
17 lines (16 loc) • 491 B
TypeScript
export default icosphere;
export type IcosphereOptions = {
radius?: number;
subdivisions?: number;
};
/**
* @typedef {object} IcosphereOptions
* @property {number} [radius=0.5]
* @property {number} [subdivisions=2]
*/
/**
* @alias module:icosphere
* @param {IcosphereOptions} [options={}]
* @returns {import("../types.js").SimplicialComplex}
*/
declare function icosphere({ radius, subdivisions }?: IcosphereOptions, ...args: any[]): import("../types.js").SimplicialComplex;