Comments (4)
From #291:
Maybe the safety could be approximated with a few iterations with steepest descent?
The most promising literature that I could find to date is ON THE DISTANCE FROM A POINT TO A QUADRIC SURFACE. What we need for safety is a sort of "conservative" estimate, ie the returned value can be too low but it must never be too large, I think.
from celeritas.
This is a blocking task for #181 to calculate the step length.
from celeritas.
#406 implements the CalcSafetyDistance
algorithm, which works for spheres, planes, and cylinders, since the gradient of those surfaces points to the nearest point on the surface. For any other surfaces, the safety distance is zero (ultra-conservative). For "complex" volumes (those with internal surfaces) the safety distance will be unnecessarily conservative near those internal surfaces.
from celeritas.
I finally rediscovered this reference: Hart, Sphere Tracing: A Geometric Method for the
Antialiased Ray Tracing of Implicit Surfaces which in Appendix A (pp 5-109–5-110) discusses distance to plane, sphere, cylinder, cone, torus. Distance to an ellipsoid requires solving a sixth degree polynomial.
from celeritas.
Related Issues (20)
- Fix performance regression in ORANGE testem3 HOT 6
- Add 3D raytrace visualizer
- DUNE integration
- LZ integration HOT 1
- ePIC integration HOT 5
- LEGEND integration HOT 2
- ALICE integration
- Support optical surface interfaces HOT 2
- Define "volume instance" IDs and expose physical volumes for Geant4/VecGeom
- Refactor and optimize field propagation
- Move RNGs down to corecel
- Optical photon stepping loop
- Basic muon decay physics
- Refactor primary construction into aux data + generator HOT 4
- Fix Coulomb scattering applicabiliity and discrete model selection
- Add Geant4 EM model wrappers for Celeritas interactions
- Support scoring of optical photons by Geant4 host sensitive detectors
- Support tesselated surfaces
- XLZD integration
- Reexamine use of virtual inheritance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from celeritas.