Hello,
I want to set a vertex normal of a poly mesh to a specific value.
I have been using "Application.PasteUserNormals" which produces the correct result but is very slow.
Using this command a few hundred vertices is enough to make XSI unresponsive to the user.
I have tried using "Application.SetUserNormalValues" which is fast but the results aren't correct.
As you know "Application.SetUserNormalValues" takes as input:
A list of indices
A list of normals
To generate a list of indices I am using Application.Selection(0).ActivePrimitive.Geometry.Vertices
So for a simple cube primitive Application.Selection(0).ActivePrimitive.Geometry.Vertices.Count = 8 which is WRONG!
For a simple cube poly mesh the number of vertices should be 24 since the cube has hard edges
I have also tried to use ...Geometry.IndexArray & ...Geometry.Points
How do I get a true list of all the vertices in a poly mesh?
Any help would be really appreciated! 🙂
Thanks,
sa.