Getting Geometry and Texturing data from entities (through WorldDraw?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings all.
While trying to find ways to optimize some old code I had made for gathering such information as geometry (vertices/faces/normals) and material properties from entities, I stumbled upon this [very interesting post].
After I tried out some stuff I managed to retrieve some data for most kinds of 3D entities but here's the problem:
My understanding was that worldDraw is the same method everyentity calls to draw itself in the editor and thus I was expecting/hoping to have access to information like texture UV coordinates and on the way autocad draws lines with dashed linetypes etc. But I found that was not the case.
I have overriden WorldGeometry, WorldDraw and SubEntityTraits as per the example and I jave implemented some code in the calls that actually give me geometric information back. For example, through Shell() I have retrieved geometry for all solids, meshes and surfaces I've tried, but no matter how i've set their materials and material mapping, the faceData do not contain a material mapper and vertex data do not contain any texture coordinates, they are simply null.
Is there a way to access that information besides calculating UVs for every entity (my previous code did that, but I would rather use something native)?
Thank you in advance for any answers!