Incorrect visualizing from .gdml file

Hello, I apologize if this discussion has already taken place, but I couldn’t find answers to my question.

I uploaded the geometry from a .gdml file, assigned materials and display colors to each volume. In 3D, everything appears correctly, but when slicing the geometry, some parts of the magnet are displayed not as solid colors but as colored dots on a white background.

Could you please help me understand why this might have happened and how to fix it?

This looks like it might be a new feature of the visualization: if a volume’s surface is too complicated to render analytically (maybe it’s a multilayer boolean or something), it will be rendered using a “point cloud” (i.e., randomly sampling points on the surface). This is be done per-volume, so you don’t end up with your whole geometry as a point cloud, just because of a single problematic shape.

1 Like

Thank you for the responce, it sounds reasonably. But in a 3D view it looks ordinary, so I supposed (before your ansver) that it is not the case.

Hi

Mike is right. If the volume is too complex it defaults to cloud drawing. Slicing adds to the complexity - an additional Boolean operation - so it’s tipped your volume into the “too complex” category when you slice.

A very nice image, by the way. It’s good to see users making the most of our visualisation tools.

John

1 Like

Thank you for your responce.

To experiment a little with the image, you can try the following options:

  1. Move the cutting plane by a few millimiters

  2. Increase the number of cloud points and the point size:

/vis/viewer/set/numberOfCloudPoints 1000000

/vis/viewer/set/globalMarkerScale 3

You can even try to draw the entire detector as a cloud of points:

/vis/viewer/set/style cloud

  1. In case of issues with rendering booleans we usually recommend to try the ray traycer

/vis/open RayTracerX

Unfortunately the cutting plane does not work this mode