@chitrashensah/geant4-csg
v0.1.3
Published
Geant4 solid geometries for Three.js - detector modeling
Maintainers
Readme
@chitrashensah/geant4-csg
Geant4 solid geometries for Three.js - detector modeling
🚀 Installation
npm install three @chitrashensah/geant4-csg📖 Quick Start
import * as THREE from 'three';
import { SphereGeometry } from '@chitrashensah/geant4-csg';
// Full sphere: SphereGeometry(pRMin, pRMax, pSTheta, pDTheta, pSPhi, pDPhi)
const sphere = new SphereGeometry(0, 50, 0, 180, 0, 360);
const mesh = new THREE.Mesh(sphere, new THREE.MeshStandardMaterial());
scene.add(mesh);🤝 Contributing
Contributions welcome! Please open an issue or pull request.
📝 License
MIT © Chitrashen Sah
👨💻 Author
Chitrashen Sah - Research Assistant, Physics Department, University of South Dakota
Developed as part of the g4web Project - web-based particle physics simulation platform.
🙏 Acknowledgments
- CSG Implementation: Based on THREE-CSGMesh by Sean Bradley (MIT License), derived from original work by Evan Wallace
- Dr. Jing Liu - Advisor, USD Physics Department
- Geant4 Collaboration
- Three.js Community
