This article is only about overwriting already existing colors in a model loaded with HOOPS Exchange, for further explanations about how to interpret them, please look at the following article: https://forum.techsoft3d.com/t/how-to-read-color-and-material-information-from-exchange/1568
Here’s Check out our forum post to see a code sample that describes how to overwrite the color of a whole model, the main steps are:
Add the color(s) in the global data if it (they) doesn’t (don’t) already exist
Eventually, create a material that refers to the previous color(s) (Optional)
Create a new style that will point to the desired color (or material)
Edit the A3DGraphicsData of the object you want to overwrite
...
language | c |
---|
...
.
...