View source: R/mesh_mark_pois.R
proj_poi | R Documentation |
proj_poi(ray, mesh)
ray |
A 2x3 matrix containing x, y, and z coordinates for two points that define the ray. |
mesh |
A triangular mesh object ( |
Determines the location of a POI on the mesh surface based on a ray. This
function is used internally by the mesh_mark_pois()
function,
and may not be very useful in other contexts.
The function uses ray tracing to project the given ray onto the mesh surface and finds the closest intersection point. If the ray does not intersect with the mesh, an empty object is returned.
A vector with the x, y, and z coordinates of the POI.
mesh_intersect_rays()
for the ray tracing implementation.
mesh_mark_pois()
for ray determination.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.