Archived

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

X_Andi

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

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
I don''t know the answer to your question, but you might also want to try asking it at the Discreet forums. There is a fairly active MaxScript community.
http://support.discreet.com/~max

--
http://www.3dcgi.com/

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