JSPM

@chitrashensah/geant4-csg

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 33
  • Score
    100M100P100Q74137F
  • License AGPL-3.0-only

Geant4 constructive solid geometry (CSG) implementation for Three.js

Package Exports

    Readme

    @chitrashensah/geant4-geometry

    npm version License: MIT

    Geant4 solid geometries for Three.js - detector modeling

    🚀 Installation

    npm install three @chitrashensah/geant4-geometry

    📖 Quick Start

    import * as THREE from 'three';
    import { SphereGeometry } from '@chitrashensah/geant4-geometry';
    
    // 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