At this moment my algorithm create edge array and then iterate over all array and try find primitive with same edge(two points), but this is very slow.
For eg. SOP assemble node is very fast, but I cannot find in HDK doc any function which return polygon neighbors.
HDK - get primitive neighbors
4867 3 0-
- cybermax
- Member
- 255 posts
- Joined: Aug. 2009
- Offline
-
- edward
- Member
- 8080 posts
- Joined: July 2005
- Offline
-
- cybermax
- Member
- 255 posts
- Joined: Aug. 2009
- Offline
edwardthank you so much,
See:
- http://www.sidefx.com/docs/hdk11.0/_g_e_o___closure_8h_source.html [sidefx.com]
- http://www.sidefx.com/docs/hdk11.0/_g_e_o___point_ref_8h_source.html [sidefx.com]
- http://www.sidefx.com/docs/hdk11.0/_g_b___point_ref_8h_source.html [sidefx.com]
everything works fine, only one question :?
I am using findPolysUsingEdge from GEO_Closure and I dont know why this function have last parameter “GB_PointRefArray &prefarr” ???
I create GEO_Closure and GB_PointRefArray with this:
GU_Detail* source;
//…
GEO_Closure* close_source = new GEO_Closure(*source);
GB_PointRefArray* prefarr = new GB_PointRefArray(source,0);
but when I call findPolysUsingEdge, it need “prefarr”, but GEO_Closure have all geometry(instance of GU_Detail), so why it need “prefarr”???
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
-
- Anonymous
- Member
- 678 posts
- Joined: July 2005
- Offline
We are around 1 month from H14 and there was quite a lot of changes between H12 - H13. One of them is that a lot of stuff is DEPRACATED() 
What we should use today to find our friendly neighbors ? (something that is available in H13 and up)
EDIT:
getEdgeAdjacentPolygons() kinda works. I can live with it for now

What we should use today to find our friendly neighbors ? (something that is available in H13 and up)
EDIT:
getEdgeAdjacentPolygons() kinda works. I can live with it for now
-
- Quick Links


