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: 

Need help finding the distance between multiple shapes in ICE

1 REPLY 1
Reply
Message 1 of 2
tbttfox
342 Views, 1 Reply

Need help finding the distance between multiple shapes in ICE

So I've got a couple shapes on a mesh defined in an order. For example: shape01, shape02, shape03 ...  I could have any number of shapes.

 

To do what I want, I need to get the per-vertex squared distance between each adjacent shape.

 

It's relatively easy to get the vectors between the shapes: Make an array of shapes, remove the first index on one branch, remove the last index on another branch, then subtract the two branches.

 

The problem I have is now, how do I get the squared length of each vector?

 

Put another way, I have vectors in arrays like this [[v1,v2,v3,v4],[v5,v6,v7,v8] ... ], and I want to get lengths like this [[L1,L2,L3,L4],[L5,L6,L7,L8] ... ]

 

If worse comes to worse, I'll start digging through the api and write my own node, but I really would like to avoid that.  Any help would be appreciated.

1 REPLY 1
Message 2 of 2
tbttfox
in reply to: tbttfox

Oops, nevermind.  The length node does, indeed, work.  I was just visualizing it incorrectly

 

Sometimes just asking the question gets your answer 🙂

 

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

Post to forums  

Autodesk Design & Make Report