Closed DraTeots closed 3 months ago
There are a couple of other geometries that are prone to the same behavior. They are further in hierarchy and more difficult to spot. Please tell me if you would like to see them too.
It is side effect that node Default\world_volume\LFHCAL_env_22
marked as not-visible.
In the console you also can see following message:
Creating clones 2986 takes 92 ms uniquevis 1151
Total visible nodes 0 numfaces 0
Create tm = 75 meshes 0 faces 0
FAILS to get geometry bounding box
Means no visible nodes found.
Via context menu you can change visibility flag for that node - then it will be displayed.
But probably I will change behavior here - when drawing node its visibility flag should be ignored
I add commit which let draw mentioned node. Here solution - if all child nodes/volumes are not visible - force drawing of volume associated with the main node.
But in case if visibility flag disabled for that node - nothing will be drawn in any case.
Therefore proper solution - always enable visibility flags for the nodes
Thank you! I was indeed confused by the depth of the visibility flag (all higher-level components were marked as visible). I saw "Total visible nodes 0 numfaces 0 " but kind of interpretted it otherwise "There is bounding box problem, so there are 0 visible nodes in the end".
So the change you've made is what I intuitively supposed is happening. I tested it, it works great now. It also works great as there are hundreds of identical elements each with visibility off and manually clicking through them is impossible.
Thank you!!!
Dear Developers,
In DD4Hep generated TGeo root file, I can't open/draw/process one particular geometry with error in console
FAILS to get geometry bounding box
To reproduce:
Open https://root.cern/js/latest file https://eic.github.io/epic/artifacts/tgeo/epic_full.root :
https://root.cern/js/latest/?file=https://eic.github.io/epic/artifacts/tgeo/epic_full.root
Navigate to
Default\world_volume\LFHCAL_env_22
- press draw. Nothing will happen and 'FAILS to get geometry bounding box' will be print in the console. Same will happen with any daughter.Thank you in advance!