PDA

View Full Version : Help Building Faces


chrrox
11-25-2010, 04:51 PM
I have a file for example that has one big array stored for all vertex normals and uv's.
Then I have the faces exported by material groups.
How would i re import this into max without using duplicate vertex points or merging it into one big mesh. My code to load it is something like this i can post the whole script if needed.
This code below keeps duplicating the entire vertex array when i only need them created one time.
Thanks so much in advance and Happy Thanksgiving :)
msh = mesh vertices:Vert_array faces:Face_array name:Offset_Info_array[a].MeshName
msh.numTVerts = UV_array.count
buildTVFaces msh
for j = 1 to UV_array.count do setTVert msh j UV_array[j]
for j = 1 to Face_array.count do setTVFace msh j Face_array[j]
for j = 1 to Normal_array.count do setNormal msh j Normal_array[j]

CGTalk Moderation
11-25-2010, 04:51 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.