Posted by: | zarusz | |
Data created: | 28 November 2010 |
Hello, I am trying to port my existing max export plugin written in C++ to C# using MAX.NET wrapper. In IRVertex I have encountered a problem accessing multiple normals. According to the C++ RVertex definition (taken from maxsdk): class RVertex: public MaxHeapOperators { The ern is an array of RNormal of length calculated from (rFlags & SPECIFIED_NORMAL), wheras in MAX.NET the IRVertex.Ern is a single IRNormal just like IRVertex.Rn. In my opition the Ern should be an array just like the original C++ RVertex. I would like to wish this would be fixed in the near future. Thanks in advance. | |
2 December 2010
#2582 | |
Hi Tomasz, This is something that needs to be manually specified for the translator. I will try and straighten it out for the next build. Marsel Khadiyev (Software Developer, EPHERE Inc.) | |
2 December 2010
#2584 | |
Hello Marsel, I am glad to hear that. Many thanks for help on this.
| |
6 October 2011
#2818 | |
access the normals of a vertex over the rnormal is somewhat buggd inside max. there is a different appraoch mentioned inside the maxsdk help. basicly its a simple help utility that loops through all faces, build their facenormal and checks with the smoothing group. if the smoothing groups are different between faces it will generate a new normal verctor for the vertex, here is a code snipped this is the vertex normal class to handle the normals
this function generates a list<vnormal> from a trimesh
and here we generate the vnromals and access them
don't use the ipoint3 for fir direct use. if you make crossproduct, add, multiply operations with them you get wrong results. when i read the vert data i convert them directly to Vector3D and work with this instead of ipoint3. but you can convert them back very easily. basicly they are the same but you can do math operations directly with them. Mario Röske |