Initial project import

This commit is contained in:
drjones
2026-06-13 17:36:44 -07:00
commit ad2a18cc8d
18471 changed files with 4497570 additions and 0 deletions

26
node_modules/three-stdlib/_polyfill/CapsuleGeometry.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
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