• Advertisement
Sign in to follow this  

MeshNormals template

This topic is 2146 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

MeshNormals template looks as below:

template MeshNormals
< F6F23F43-7686-11cf-8F52-0040333594A3 >
DWORD nNormals;
array Vector normals[nNormals];
DWORD nFaceNormals;
array MeshFace faceNormals[nFaceNormals];

I downloaded some examples x-files and analysed the code and I see that nFaceNormals in MeshNormals is always equal to nFaces in Mesh template. It is OK. But I don't understand why in some x-files nNormals from MeshNormals template isn't equal to the nVertices in Mesh template. It is sometimes much less number. This is something which I don't understand because how it is known that normals from MeshNormals template is related to which vertices[j] in Mesh template? I guess that for those "j" which are greater than "nNormals" the normals are undefined. Am I right?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement