-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TGeoPainter build method doesn't fill name and other Object3d fields #303
Comments
A bit naive addition/suggestion (as I can imagine reasons it is not done). Besides names and hierarchy, there is userData field that can store e.g. TGeoNode reference in Object3D |
I see your point - all intermediate levels of geometry hierarchy did not get names. Why you need them? I also will check if |
Main reason is saving JavaScript resources. |
Let assign name to all created Object3D instances. Default is off
Let assign TGeoNode as Object3D.userData field. Default is off
I add new parameters to build() function. Now one can configure Code available in |
Thank you very much!
Actually in EIC they are used after GLTF export so even having node names in subsequent CAD and other software is good. I am in particular working on event display. Full EIC geometry in TGeo now has something like 3,500,000 elements and was working on scripts pruning the geometry and optimizing the rest after it is rendered with three.js. Thanks again for addressing this! |
If you have very large geometry, you probably can be interested to enable This option is semi-experimental, but really can improve large geometry display. |
Would be very helpful if in InstancedGeometry mode some names were set to InstancedVolumes too. Maybe the volume name or the first node. Or maybe there is a mechanism already? As of now I see a list of InstancedGeometry-ies in the root of the Object3D without names. |
Now |
Now this functionality available in 7.7.0 release |
When using build() function to convert root geometry to Object3d, I noticed that nodes name fields are empty (see the screen below - red) and some other fields are not set properly (green).
I believe this is the reason, that if converters ( such as root2cad or root to GLTF ) produce geometry that is hard to navigate in consequent CAD or 3D software (see the screen, Blender is an example, others show the same):
Here is the reference geometry:
epic_dirc_only.root.zip
The code is straight forward:
The text was updated successfully, but these errors were encountered: