proj_poi: Determine Point of Interest (POI) on a mesh surface using ray...

View source: R/mesh_mark_pois.R

proj_poiR Documentation

Determine Point of Interest (POI) on a mesh surface using ray tracing

Description

[Experimental]

Usage

proj_poi(ray, mesh)

Arguments

ray

A 2x3 matrix containing x, y, and z coordinates for two points that define the ray.

mesh

A triangular mesh object (mesh3d).

Details

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.

Value

A vector with the x, y, and z coordinates of the POI.

See Also

mesh_intersect_rays() for the ray tracing implementation. mesh_mark_pois() for ray determination.


cornelmpop/Lithics3D documentation built on Feb. 10, 2024, 11:54 p.m.