ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DistanceComputationTools.cpp File Reference
#include <DistanceComputationTools.h>
#include <CVPointCloud.h>
#include <DgmOctreeReferenceCloud.h>
#include <FastMarchingForPropagation.h>
#include <LocalModel.h>
#include <Polyline.h>
#include <ReferenceCloud.h>
#include <SaitoSquaredDistanceTransform.h>
#include <ScalarField.h>
#include <ScalarFieldTools.h>
#include <SimpleTriangle.h>
#include <SquareMatrix.h>
#include <algorithm>
#include <cassert>
Include dependency graph for DistanceComputationTools.cpp:

Go to the source code of this file.

Classes

struct  cloudViewer::TriangleList
 List of triangles (indexes) More...
 
struct  cloudViewer::OctreeAndMeshIntersection
 
struct  CellToTest
 
struct  TrianglesToTest
 Helper structure for triangles to test. More...
 

Namespaces

 cloudViewer
 Generic file read and write utility for python interface.
 

Functions

bool ComparePointsAndTriangles (ReferenceCloud &Yk, unsigned &remainingPoints, cloudViewer::GenericIndexedMesh *mesh, std::vector< unsigned > &trianglesToTest, std::size_t &trianglesToTestCount, std::vector< ScalarType > &minDists, ScalarType maxRadius, cloudViewer::DistanceComputationTools::Cloud2MeshDistancesComputationParams &params)
 Method used by computeCloud2MeshDistanceWithOctree. More...
 
int ComputeMaxNeighborhoodLength (ScalarType maxSearchDist, PointCoordinateType cellSize)
 
void applySqrtToPointDist (const CCVector3 &aPoint, ScalarType &aScalarValue)
 
static int ComputeNeighborhood2MeshDistancesWithOctree (OctreeAndMeshIntersection *intersection, DistanceComputationTools::Cloud2MeshDistancesComputationParams &params, ReferenceCloud &Yk, unsigned cellIndex, const Tuple3i &cellPos, TrianglesToTest &ttt, bool boundedSearch, int maxNeighbourhoodLength)
 Helper function to compute neighborhood to mesh distances with octree. More...
 

Function Documentation

◆ applySqrtToPointDist()

void applySqrtToPointDist ( const CCVector3 aPoint,
ScalarType &  aScalarValue 
)
inline

◆ ComparePointsAndTriangles()

◆ ComputeMaxNeighborhoodLength()

◆ ComputeNeighborhood2MeshDistancesWithOctree()

static int ComputeNeighborhood2MeshDistancesWithOctree ( OctreeAndMeshIntersection intersection,
DistanceComputationTools::Cloud2MeshDistancesComputationParams params,
ReferenceCloud Yk,
unsigned  cellIndex,
const Tuple3i cellPos,
TrianglesToTest ttt,
bool  boundedSearch,
int  maxNeighbourhoodLength 
)
static