Quality dependent geometry errors in 3D view

Versions

FLUKA: 4-5.2
Flair: 3.4-5.4
Operating system: Ubuntu 24.04 LTS

Description

I tried to make a nice picture of my geometry for a presentation, but with an increased quality of the 3D view, geometry errors started to show up



The difference between the 2 images is just the quality slider changed from lowest to second to lowest setting. I thought this might have to do with a few touching bodies, but after removing some of them, even more erroneous regions showed up, specifically in regions that do not touch anymore:

I also cannot find any errors in the 2D views.

Best regards
Roman

Input files

cryo_collimator.flair (10.5 KB)
cryo_collimator.inp (12.3 KB)

Hello Roman,

I had a quick look and it seems to me as if there are indeed overlap errors. For example, the green points below show positions that are included in several regions (e.g. AbsR and ABSCOREL).

I would suggest looking into this as this could potentially lead to problems in your calculations.

Yet, when it comes to the generation of the image only, you can still do this at present. If you go to the “Options” dialog under the 3D tab, you can tick off “Show errors”.

This will make the error message disappear. Yet, I think that the message should be investigated.

Cheers Chris

Dear Chris,

yes there are still some touching bodies. I ignored them as numerical overlap should have no meaningful impact on what I want to study. Also the touching bodies don’t coincide with the region I marked in my third image.

By now I have convinced myself that the errors that show up are actually a buggy handling of alpha/see-through portions. Case in point: I found a ghost body that is actually the cut of my viewport with clipped away parts.


While it is strange to see it in the first place, in low quality it is simply a ghost, but in higher quality rendering

errors appear in some overlapping, see-through area. (note the light grey region had it’s alpha value removed here.)
If the see-through-ness of the cut is handled in the same way as alpha values of regions, this would explain the erroneous areas I saw before.

Flair files with the shown cut (with a few more --but not all-- touching bodies fixed):
cryo_collimator.flair (10.6 KB)
cryo_collimator.inp (12.5 KB)

@ctheis independent of the display problems above, the geometry in your SimpleGeo image looks odd for two reasons:

  1. The underside should not have the longitudinal rectangular structures, which look like misplaced clamps from the inside

  2. The Regions AbsL and ABSCOREL, which seem to correspond the the vaguely cylindrical point cloud, should only touch at their bases, not on the sides:

There seems to be something up with the geometry import.

Hello @rmartin

the errors that you see in when switching to the high quality renderer came from a very subtle bug that became apparent only in this mode despite being there also in the fast preview. There was some corruption in the tracking cache, that become apparent when we completely track rays through transparent regions. It is fixed (as you can see below) and the fix will appear in a future release.

What concerns the geometry import in SimpleGeo, there indeed seems to be a glitch somewhere. I will take a look when I find some time.

Cheers
Chris