location_scope

Location scope visualizes GeoLocations to visualize the results of the spatial queries, such as get_closest_location, get_points_in_radius, get_raycast_location.

The spatial query nodes perform spatial searches from some position and find locations on geometry. The results of those queries can be visualized as arrows - from the positions where we begin searching to the locations that are found.

Usage example

To use this with get_closest_locations, plug the output locations from it into location scope's locations. Then on location scope, populate geometry and positions with the same data that's get_closest_locations is using.

The process is largely the same with get_raycast_locations, but with the addition of populating location scope's raycast_directions with the same data used for raycast directions.

Inputs

locations

The geometry locations to be visualzied. Arrows will point at the position of these locations. These can be a 1D or 2D array of locations.

geometry

The geometry which is sampled by the locations. If used to visualize get_closest_locations, this should be the same geometry that was plugged into its geometry port.

positions

The positions from which to draw the arrows. If used to visualize get_closest_locations, these should be the positions plugged into that node.

raycast_directions

When used with raycast, this can be used to draw "missed" rays that did not contact the geometry. These will be a different color and smaller. If used to visualize get_raycast_locations, the directions should be plugged into here.

Diagnostic Modes

arrows

Enables or disables drawing arrows.

circles_at_origin

Enables or disables drawing circles at the origins - the positions.

circles_at_sample

Enables or disables drawing circles at the samples. These circles will draw even if no positions are provided to draw arrows from.

size

The size of each arrow.

miss size factor

The relative size of arrows for "missed rays", when used with raycast_directions.