I have an object and points (point cloud). I would like to modify the named attribute of the nearest vertex to each point. How to do this?

I tried using the “sample nearest” node, but I couldn’t make a selection out of the output. Then I tried it with the “sample index” node, and it seemed like it was modifying the named attribute for all vertices for each point, or the “sample nearest” node used the source object’s location instead of the point cloud.

I would appreciate some help

  • Hadriscus@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    15 days ago

    Modifying how ? this is central to the question

    This is how I understand it :

    • drem@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      15 days ago

      I have an other named attribute and I would like to assign “1” to it for the vertices that are closest to the points.

      Your solution is close to what I want

    • drem@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      15 days ago

      Your solution sets the closest index for all vertices. The ideal solution would be to only change the named attribute for the nearest vertices.