Hi, I'm trying to learn point clouds on my own, but I am kinda stuck with the execution…
In theory, point clouds do a radial look up and return the number of points specified within the radius. So, I've seen some setups where people just itterate on PCs to average and distribute some attributes, but what about:
Finding the nearest point in a point cloud and setting an attribute only to it ? It seems like if I set the max points in the pcopen() function or VOP, I get returned ALL the points the pointcloud, so the attribute I am assigning is applied to all of them. I want to have a loop like behavior with BREAK, where the assigning of attributes stops at the first point found (sorted by distance) between a target and the PC…
Any feedback and directions are welcome, I'm feeling like my head can't handle all of this PC querrying :x
Finding the single nearest point between target and PCloud
5889 7 2- xukca
- Member
- 50 posts
- Joined: July 2013
- Offline
- PradeepBarua
- Member
- 443 posts
- Joined: Sept. 2012
- Offline
You can't assign attribute to certain points of a geometry. But you can set different value for them. If you assign value to selected points it will automatically assign 0 to rest of points. That's why you have to initialize attribute before assigning.
For example:
You have a geometry which contains 100 points and you assign myAttribute to 0-25 with some value then Houdini automatically assign 0 to other points.
For example:
You have a geometry which contains 100 points and you assign myAttribute to 0-25 with some value then Houdini automatically assign 0 to other points.
- PradeepBarua
- Member
- 443 posts
- Joined: Sept. 2012
- Offline
- xukca
- Member
- 50 posts
- Joined: July 2013
- Offline
- tamte
- Member
- 8833 posts
- Joined: July 2007
- Offline
- xukca
- Member
- 50 posts
- Joined: July 2013
- Offline
- PradeepBarua
- Member
- 443 posts
- Joined: Sept. 2012
- Offline
- xukca
- Member
- 50 posts
- Joined: July 2013
- Offline
-
- Quick Links