I’m reading 3DM files using RhinoIO.Net and I’m trying to recreate Rhino’s ‘texture mapped’ objects in my application. I’m having some issues with transformed textures. I can get the Texture.UvwTransform from each of the File3DM.Materials, but I don’t know how to get that information for indiviual objects. Any clue?
You need to look at the ON_MappingRef that is part of ON_3dmObjectAttributes::m_render_settings, and the corresponding entries on the ONX_Model::m_mapping_table (ON_TextureMapping).
The best way might be to create an object with texture mapping in the Rhino UI, and see what you get in the file.
Thanks for the quick answer. I see the MaterialRefs and HasMapping members in the Attributes, but no MappingRef. Is it possible that this is not exposed in the .Net wrapper?