BRL-CAD
Closest Point on Triangle
Collaboration diagram for Closest Point on Triangle:

Functions

double bg_tri_closest_pt (point_t *closest_pt, const point_t TP, const point_t V0, const point_t V1, const point_t V2)
 Calculate the minimum distance from a point to a triangle. More...
 

Detailed Description

Function Documentation

◆ bg_tri_closest_pt()

double bg_tri_closest_pt ( point_t closest_pt,
const point_t  TP,
const point_t  V0,
const point_t  V1,
const point_t  V2 
)

Calculate the minimum distance from a point to a triangle.