Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

  1. Add the color(s) in the global data if it (they) doesn’t (don’t) already exist

  2. Eventually, create a material that refers to the previous color(s) (Optional)

  3. Create a new style that will point to the desired color (or material)

  4. Edit the A3DGraphicsData of the object you want to overwrite

...

languagec

...

.

...