1 | import { PolyhedronGeometry } from "./PolyhedronGeometry.js";
|
2 |
|
3 | /**
|
4 | * A class for generating a tetrahedron geometries.
|
5 | * @see {@link https://threejs.org/docs/index.html#api/en/geometries/TetrahedronGeometry | Official Documentation}
|
6 | * @see {@link https://github.com/mrdoob/three.js/blob/master/src/geometries/TetrahedronGeometry.js | Source}
|
7 | */
|
8 | export class TetrahedronGeometry extends PolyhedronGeometry {
|
9 | /**
|
10 | * Create a new instance of {@link TetrahedronGeometry}
|
11 | * @param radius Radius of the tetrahedron. Expects a `Float`. Default `1`
|
12 | * @param detail Setting this to a value greater than 0 adds vertices making it no longer a tetrahedron. Expects a `Integer`. Default `0`
|
13 | */
|
14 | constructor(radius?: number, detail?: number);
|
15 |
|
16 | /**
|
17 | * A Read-only _string_ to check if `this` object type.
|
18 | * @remarks Sub-classes will update this value.
|
19 | * @defaultValue `TetrahedronGeometry`
|
20 | */
|
21 | override readonly type: string | "TetrahedronGeometry";
|
22 |
|
23 | /** @internal */
|
24 | static fromJSON(data: {}): TetrahedronGeometry;
|
25 | }
|