Jump to content

HDK check if a point already exists


Recommended Posts

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 by stkeg
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest mantragora

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 by mantragora
Link to comment
Share on other sites

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 by symek
Link to comment
Share on other sites

Guest mantragora

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.

Link to comment
Share on other sites

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_PointTreeGAOffset

http://www.sidefx.com/docs/hdk13.0/class_g_e_o___point_tree_g_a_offset.html

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...