Archived

This topic is now archived and is closed to further replies.

MaxScript (3D Studio Max 4): Finding Triangle Strips

This topic is 6031 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everybody, At the moment I am working on a 3D Studio Max 4 Script that is able to export models into our special engine format. The method is quite simple: I convert the active selection into an Editable_Mesh an write then the X-, Y- and Z-coordinate of every vertex into an ASCII File. The problem: Sometimes 3DS Max uses Triangle Strips and sometimes it prefers to use Triangle Lists. How can I find out, what method is used for each vertex? Or do you know a method how to convert everything into triangle lists? The code:
...
o = selection as array	-- store the selected objects in an array
   for i = 1 to o.count do	-- repeat for each selected object
   (
   converttomesh o	-- convert this object to a mesh
   for t = 1 to o[i].numverts do
...
[/CODE]

Thank you very much!

Andi     
Xenoage Games

Share this post


Link to post
Share on other sites
Hi 3dcgi,

thank you very much for your help, but the problem is already solved
With "getface" I can find the Vertices for each Triangle, that''s all I want.

Bye,

Andi


Xenoage Games

Share this post


Link to post
Share on other sites