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

Started by
1 comment, last by X_Andi 22 years, 10 months ago
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.numverts do
…
</pre>

Thank you very much!

Andi  </i>   </pre> 

Xenoage Games    
Xenoage Games
Advertisement
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/
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
Xenoage Games

This topic is closed to new replies.

Advertisement