Buckets:
ktongue/docker_container / simsite /frontend /node_modules /three /src /geometries /TetrahedronGeometry.js
| import { PolyhedronGeometry } from './PolyhedronGeometry.js'; | |
| class TetrahedronGeometry extends PolyhedronGeometry { | |
| constructor( radius = 1, detail = 0 ) { | |
| const vertices = [ | |
| 1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1 | |
| ]; | |
| const indices = [ | |
| 2, 1, 0, 0, 3, 2, 1, 3, 0, 2, 3, 1 | |
| ]; | |
| super( vertices, indices, radius, detail ); | |
| this.type = 'TetrahedronGeometry'; | |
| this.parameters = { | |
| radius: radius, | |
| detail: detail | |
| }; | |
| } | |
| static fromJSON( data ) { | |
| return new TetrahedronGeometry( data.radius, data.detail ); | |
| } | |
| } | |
| export { TetrahedronGeometry }; | |
Xet Storage Details
- Size:
- 590 Bytes
- Xet hash:
- 038e8b69485e3cf04355704098d290c2f107e0b6ac9afb8ed137da87f470f56a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.