Transformed texture coordinates question

Hello,

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?

Thanks

Alex

@andy, is this something you can help with?

Alex

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.

  • Andy

Hello Andy,

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?

Thanks

Alex

It is certainly possible this is not wrapped in .net

  • Andy

Hello Andy,

Any chance this can be confirmed and added in the wrapper to-do list?

Thanks

Alex