stkeg Posted February 4, 2014 Share Posted February 4, 2014 (edited) is there a HDK function that will let me input coordinates and see if there is an existing point at those (or close enough) coordinates? Basically I just want to use the existing point offset instead of creating a new point. Edited February 4, 2014 by stkeg Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted February 4, 2014 Share Posted February 4, 2014 There are some methods with "proximity" in GU_Detail but I never used them so can't say for sure. Quote Link to comment Share on other sites More sharing options...
symek Posted February 4, 2014 Share Posted February 4, 2014 is there a HDK function that will let me input coordinates and see if there is an existing point close by? This is usual job of GEO_PointTree. Quote Link to comment Share on other sites More sharing options...
stkeg Posted February 4, 2014 Author Share Posted February 4, 2014 originally worded this badly, but i want to input coordinates and see if a point with those coordinates already exists. if it does i want the point offset. Quote Link to comment Share on other sites More sharing options...
edward Posted February 5, 2014 Share Posted February 5, 2014 Yes, use GEO_PointTree. Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted February 6, 2014 Share Posted February 6, 2014 According to docuentation GEO class is going out so is there something new implemented that will stay a little longer with us than this class? Quote Link to comment Share on other sites More sharing options...
symek Posted February 6, 2014 Share Posted February 6, 2014 According to docuentation GEO class is going out so is there something new implemented that will stay a little longer with us than this class? Bother to give a link to documentation you are referring to? AFAIK GEO_* aren't meant to be replaced at all, only geometry primitives originally being defined as classes in GEO library are now represented as an arrays of offsets, what makes them lightweight, multi-thread and cache friendly. Doesn't look like GEO_Detail for example is going to be gone any soon. Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted February 6, 2014 Share Posted February 6, 2014 (edited) http://www.sidefx.com/docs/hdk13.0/hdk_changes_13_0.html To be able to start removing problematic legacy structures and behaviour from the HDK, many functions are now deprecated, including anything with GEO_Point, GEO_Vertex, GEO_AttributeHandle, or GEO_PrimList in the signature. First line the from link. As I understand, since GEO_PointTree contains GEO_Point in its name, it will be extinguished too. I see already quite a lot of things market as deprecated there. Edited February 6, 2014 by mantragora Quote Link to comment Share on other sites More sharing options...
symek Posted February 6, 2014 Share Posted February 6, 2014 (edited) You're confused by its name. GEO library contains an object called a PointTree which is a specialized UT_KDTree merely for use with points, not necessarily GEO_Point - it's quite apparent in its header. UT_KDTree is also "templated" and it does't look like it goes anywhere soon. Edited February 6, 2014 by symek Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted February 6, 2014 Share Posted February 6, 2014 I looked at it and when I saw some deprecated stuff I assumed that it's going the same death spiral route. I didn't looked at it more closely yet. Thank for clarification. Quote Link to comment Share on other sites More sharing options...
edward Posted February 7, 2014 Share Posted February 7, 2014 http://www.sidefx.com/docs/hdk13.0/hdk_changes_13_0.htmlFirst line the from link. As I understand, since GEO_PointTree contains GEO_Point in its name, it will be extinguished too. I see already quite a lot of things market as deprecated there.True. The replacement is GEO_PointTreeGAOffsethttp://www.sidefx.com/docs/hdk13.0/class_g_e_o___point_tree_g_a_offset.html Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted February 7, 2014 Share Posted February 7, 2014 Thanks E.D.W.A.R.D.. 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.