5.1.2. Using Ray-tracing for scientific computation

DirectViz can take advantage of the high mathematical precision of ray tracing to do computation, for example computing statistics, on OpenInventor scenes.

As an example, the demo WallThickness in the DirectViz shortcuts performs a real time thickness computation on a mechanical part.

Internally it uses the experimental RTXWallThicknessShader.

For each ray hitting the surface, a cone is sampled near the normal vector direction and additional rays are launched.

Then, the minimal distance is retained and mapped to a colormap.

Thickness computation

Figure 5.2. Thickness computation