Skip to content

Class Argos::CentroidToFace

ClassList > Argos > CentroidToFace

Bidirectional centroid-to-face distance computation between two meshes. More...

  • #include <CentroidToFace.h>

Public Static Functions

Type Name
ToFaceResult compute (const Mesh & a, const Mesh & b)
Compute bidirectional centroid-to-face distances.

Detailed Description

For each face centroid in mesh A, finds the nearest triangle in mesh B (and vice versa). Uses AABB trees for acceleration.

Public Static Functions Documentation

function compute

Compute bidirectional centroid-to-face distances.

static ToFaceResult Argos::CentroidToFace::compute (
    const  Mesh & a,
    const  Mesh & b
) 

For every face centroid in a, the nearest triangle in b is found via an AABB tree; the same is done from b to a.

Parameters:

  • a First mesh.
  • b Second mesh.

Returns:

ToFaceResult containing both distance vectors and lazy average views.



The documentation for this class was generated from the following file include/structure/CentroidToFace.h