grasshopper2 Rhinorhino3d.com
ComponentCurve
Line Into Cloud
00000000-4ae1-48be-9c60-d9755208f84a
object preview

Shoot a line into a point cloud and terminate at the first collision. The radius of each point is sampled from a given scalar field, so in fact the cloud consists of spheres.

Note that the resulting line does not extend beyond the length of the initial line. This makes it possible to limit the penetrative depth of the shot.

1
2
3
4
5
Example file LineIntoCloud.ghz.Interactive in Grasshopper 2
Shoot a line into a cloud of points with a custom radius for all. The line ends when- ever the first circle is hit, resulting in deeper penetration for smaller radii. The pink circles are drawn as a visual aid.