How to get texels from a ON_Texture?

I’m trying to integrate a custom ViewportRenderer and need to get the textures of the model.

I’m using a CRhRdkRenderMesh to walk the model.

I see the ON_Texture.m_filename as a path - but it appears to be a concat of the model filepath and the original texture filename.


The texture might be embedded in the model. Check the bitmap table, or CRhinoDoc::m_bitmap_table.

Does this help?

Yes. Exactly what I needed.