ICE Modeling - What is the most efficient way to get polygon index from vertex ids

47 views
Skip to first unread message

Alok Gandhi

unread,
Oct 31, 2011, 6:46:30 PM10/31/11
to soft...@listproc.autodesk.com
Hi all,

I have a tree doing subdivisions based on the camera ray. I filter out the vertex which are in the camera view based on the angle of the point normals with the the camera ray. I seem to get the good vertices, however what I actually want is the polygon index from these vertex id's. Right now I am taking the easiest (probably coolest !!)  locations approach, it seems to work, but with a few glitches (please see the attached images). 

Of course I can do some array manipulation to get the polygon from the vertices and get the results I want,  but I was thinking, is there another way ?


Also,  if I use the location --> get data --> some polygon attrtibute -- > elements to index, I don't get any poly indices !!!



--

tree.jpg

Steven Caron

unread,
Oct 31, 2011, 6:52:46 PM10/31/11
to soft...@listproc.autodesk.com
first off ID to Location is for point clouds, use Point Index to Location?

Alok Gandhi

unread,
Oct 31, 2011, 7:03:31 PM10/31/11
to soft...@listproc.autodesk.com
Well that definitely seems to change things, the middle polys are getting subdivided now. There are still a few glitches in the arctic and antarctic regions but I think that may be coming from my angle calculation logic. Thanks Steven !!

Christian Gotzinger

unread,
Nov 1, 2011, 10:55:22 AM11/1/11
to soft...@listproc.autodesk.com
If you supply a vertex index and use "point index to location", hooked into "Get polygonindex", you won't really get what you want. After all, this particular location sits right on top of a vertex, and the vertex belongs to multiple polygons.

I would do the following (looking at your ICE tree):
Replace the "Get Point ID" by "Get self.VertextoPolygons". Then plug the result of the Filter directly into the Subdivide Locally.
Reply all
Reply to author
Forward
0 new messages