The gradient and the Hessian of the distance between point and triangle in 3D (Q2287494)

From MaRDI portal
scientific article
Language Label Description Also known as
English
The gradient and the Hessian of the distance between point and triangle in 3D
scientific article

    Statements

    The gradient and the Hessian of the distance between point and triangle in 3D (English)
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    21 January 2020
    0 references
    Summary: Computation of the distance between point and triangle in 3D is a common task in numerical analysis. The input values of the algorithm are coordinates of three points of the triangle and one point from which the distance is determined. An existing algorithm is extended to compute the gradient and the Hessian of that distance with respect to coordinates of involved points. Derivation of exact expressions for gradient and Hessian is presented, and numerical accuracy is evaluated for various cases. The algorithm has \(O(1)\) time and space complexity. The included open-source code may be used in applications where derivatives of point-triangle distance are required.
    0 references
    0 references
    point-triangle distance
    0 references
    gradient
    0 references
    Hessian
    0 references
    0 references