Getting Geometry and Texturing data from entities (through WorldDraw?)

Getting Geometry and Texturing data from entities (through WorldDraw?)

akolymparis
Contributor Contributor
695 Views
3 Replies
Message 1 of 4

Getting Geometry and Texturing data from entities (through WorldDraw?)

akolymparis
Contributor
Contributor

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! 

0 Likes
696 Views
3 Replies
Replies (3)
Message 2 of 4

akolymparis
Contributor
Contributor

Bumping.

Still looking for answers 😃

0 Likes
Message 3 of 4

johnteng00
Advocate
Advocate
I want the same info, looks like with ObjectARX, we may not be able to get it. Have you tried to post the question to the development net work?
0 Likes
Message 4 of 4

akolymparis
Contributor
Contributor

Hey there.

 

No actually I haven't tried that. Embarrassingly enough. 

Will do though.

0 Likes