Masoud Posted June 30, 2019 Share Posted June 30, 2019 Hi; In geometry spreadsheet, (points, vertices,primitives) there is a hidden attribute called "Map Offset", that I can't find any document about it. Thanks for helping. Quote Link to comment Share on other sites More sharing options...
symek Posted June 30, 2019 Share Posted June 30, 2019 Houdini stores geometry attributes in continuous chunks of memory containing float/int values (i.e. arrays in C parlance). In other words Houdini's geometry is not designed with object oriented paradigms called array of structures (AOS) where every element is created and stored separately, but it exhibits design called structure of arrays (SOA), which keeps all values of all elements of particular types together. In time, during geometry processing, some of the points /prims might have beed deleted or rearranged. To mitigate the cost of altering those arrays (what basically means allocating new ones), Houdini can decide to leave "holes" in those arrays after entires which are not valid anymore. Because of that Houdini needs to keep track of offsets from the arrays to the actual elements, so that algorithms know where to find right values (that is: third array's entry might not belong to third point in geometry). You can see how it works in action. Create a bunch of points (Grid->Scatter), check that map offset equals points numbering(+1). Now append delete SOP and nuke half of incoming points (operation: Delete by Range) and see what's happened with map offset. Now for second point, map offset equals 3, not 2. Then Append SortSOP and see how point ordering and Map Offset equal again. 3 1 Quote Link to comment Share on other sites More sharing options...
Masoud Posted July 1, 2019 Author Share Posted July 1, 2019 Thank you very much for your detailed explanation. Is there any document about this in sidefx help pages? Quote Link to comment Share on other sites More sharing options...
symek Posted July 1, 2019 Share Posted July 1, 2019 2 hours ago, Masoud said: Thank you very much for your detailed explanation. Is there any document about this in sidefx help pages? Sure there is: Geometry Introduction cheers! skk. Quote Link to comment Share on other sites More sharing options...
Masoud Posted July 1, 2019 Author Share Posted July 1, 2019 Wow, thank you for this link. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.