Softimage Forum (Read Only)
Welcome to Autodesk’s Softimage Forums. Share your knowledge, ask questions, and explore popular Softimage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

List All Vertices In PolyMesh

1 REPLY 1
Reply
Message 1 of 2
sa.69303
456 Views, 1 Reply

List All Vertices In PolyMesh

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.

 

1 REPLY 1
Message 2 of 2
hbahnassi
in reply to: sa.69303

What you are looking for is PolyNode. This gives you direct access to Normals.

 

Check out the SDK for more info:

http://docs.autodesk.com/SI/2015/ENU/Softimage-Developer-Help/#!/url=./si_om/PolygonNode.html

Homam

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report