Need to generate point position array from vertice array

Discussions about SOFTIMAGEs© Interactive Creative Environment©
User avatar
dwigfor
Posts: 395
Joined: 17 Nov 2009, 16:46

Need to generate point position array from vertice array

Post by dwigfor » 23 Oct 2012, 20:30

I'm trying to generate an array of point positions from an array of vertices (integers).

My problem is that it appears the point position array is getting reordered.

(Array of Integers) -> Test Vertex Index (Integer)->Filter (Keep) -> Build Array From Set->
Get Point Position -> Filter(Array)

Thanks for your help,
-Dave

grahamef
Posts: 281
Joined: 23 Jun 2009, 19:01

Re: Need to generate point position array from vertice array

Post by grahamef » 23 Oct 2012, 21:53

Here's one way:

Get Point Positions --> Build Array from Set --> Select in Array (Array)
(array of integers) -----------------------------------------> (Index)

User avatar
dwigfor
Posts: 395
Joined: 17 Nov 2009, 16:46

Re: Need to generate point position array from vertice array

Post by dwigfor » 23 Oct 2012, 23:18

Thanks Grahame. I'll try that tonight!

I'm slowly venturing into ICE Modelling and I'm trying to build a Bridge Between 2 Polygons compound. My thinking is to get the PolygonToVertices for the 2 polygons, create polygons between the selected polys (based on Chris' Procedural Bridge Tutorial #2), Delete the original polys, weld the points of the new topo with the original topo. I thought I had it working, but was going crazy why I couldn't get it to work. Finally discovered it was the ordering of that point position array (I think the help mentions something about ordering in the Build Array with a Filter node.... Hopefully this will work, and then I just gotta figure out how to weld the points (I think I saw ChrisG has a compound for this on vimeo)

-Dave

User avatar
dwigfor
Posts: 395
Joined: 17 Nov 2009, 16:46

Re: Need to generate point position array from vertice array

Post by dwigfor » 24 Oct 2012, 01:45

Works great! I think my problem was I didn't have a Build Array From Set after Get Point Position, when I tried using Select In Array. I'll have to keep that in mind in the future.

Thanks again! -Dave