Buckets:
ktongue/docker_container / simsite /frontend /node_modules /three-stdlib /_polyfill /CapsuleGeometry.js
| import { LatheGeometry, Path } from "three"; | |
| const CapsuleGeometry = /* @__PURE__ */ (() => { | |
| class CapsuleGeometry2 extends LatheGeometry { | |
| constructor(radius = 1, length = 1, capSegments = 4, radialSegments = 8) { | |
| const path = new Path(); | |
| path.absarc(0, -length / 2, radius, Math.PI * 1.5, 0); | |
| path.absarc(0, length / 2, radius, 0, Math.PI * 0.5); | |
| super(path.getPoints(capSegments), radialSegments); | |
| this.type = "CapsuleGeometry"; | |
| this.parameters = { | |
| radius, | |
| height: length, | |
| capSegments, | |
| radialSegments | |
| }; | |
| } | |
| static fromJSON(data) { | |
| return new CapsuleGeometry2(data.radius, data.length, data.capSegments, data.radialSegments); | |
| } | |
| } | |
| return CapsuleGeometry2; | |
| })(); | |
| export { | |
| CapsuleGeometry | |
| }; | |
| //# sourceMappingURL=CapsuleGeometry.js.map | |
Xet Storage Details
- Size:
- 839 Bytes
- Xet hash:
- 4259564de4e24708aa19933da5f4f59924e504a1eddd5a90973e17485f31ba4d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.