Comments (6)
You could just add a ray max depth to the method and pass it through the Ray(). It'll only check for collisions within that range,
from jet.
Thanks, I'll try that.
from jet.
Yeah, I think you can understand why it was custom (one of Matt's usual hack jobs :)). I think you really need to be careful with this reguardless of how you do it. The issue is that the full aperture is not a simple mesh file. You need to inject some special knowledge somewhere (i.e. CSG or max ray-depth, etc) otherwise it will definitely give you wrong results. The standard method will only work for systems without further occlusion beyond the pinhole. Anything beyond that is a more compount system.
from jet.
I have to take the blame for this hack job, I'm afraid! But yes, I agree that this is a somewhat special case. I think adding an optional max ray depth to the calculate_etendue
method will generalise it significantly, and so make it more useful for situations like KB1.
from jet.
For the avoidance of confusion, @CnlPepper you mean ray.max_distance
rather than ray.max_depth
, right?
from jet.
Fixed by #9
from jet.
Related Issues (14)
- KB5 Edge2D demo is broken HOT 3
- KB5 bolometers should have their corresponding meshes set as camera_geometry HOT 1
- Add verbose parameter to import_jet_mesh HOT 2
- Add support for KS3 spectroscopy diagnostic
- Fix KS5 demos HOT 1
- Add KT3 diagnostic HOT 4
- Add the possibility to omit some JET meshes HOT 1
- Update default path to CAD files HOT 3
- Modernise load_kb5_camera HOT 1
- _find_nearest of JETEquilibrium crash when value is between (array[-2], array[-1]) HOT 1
- Add KB3H bolometer cameras
- Update setup.py and add pyproject.toml
- Change jetdata.sal to sal
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 jet.