I'm working on a viewer using OpenCASCADE. The user uses the STEP format to load geometric shapes. Actually, everything is working fine so far.
First of all, these geometric shapes go into a kind of simulation and draw conclusions according to calculation. I have thousands of rows of data output consisting of 4 columns of X, Y, Z, and Value. These data show the interaction values of a point in 3D space.
My problem starts here. I want to colorize 3D shapes according to these results. I've tried two different methods so far. I don't know which is the correct method. I would like to get your ideas for more suitable solutions.
The first method is can make a color map on Meshed surfaces by reading STL. The downside to this is that I have to convert the geometries to Mesh surfaces every time. It will be much faster for me to work on AIS_Shape read directly from the STEP file. (first-method-stl-color-mapping.png)
The second method is I read the AIS_Shapes from the STEP file. I can add texture to the surfaces from png format. In this, I need to process the data and create a texture file in PNG format. This can take quite a long time. (second-method-ais-object-textured.png)
Is there a much more convenient way to visualize the assembly file read from STEP format as I have attached in the sample picture (sample.jpg)?