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