DAVID4 SDK  1.8.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
david::IMeasure Class Referenceabstract

Interface for 'Measurement' functions. More...

#include <IMeasure.h>

Inheritance diagram for david::IMeasure:
david::MeasureJsonRpc

Public Member Functions

virtual ~IMeasure ()
 Destructor.
 
virtual void ComputeSurfaceDistances (std::vector< float > &distances, int meshID1, int meshID2, double distThresh)=0
 Computes signed distance between 'test object' and 'reference object'. More...
 

Detailed Description

Interface for 'Measurement' functions.

Definition at line 29 of file IMeasure.h.

Member Function Documentation

virtual void david::IMeasure::ComputeSurfaceDistances ( std::vector< float > &  distances,
int  meshID1,
int  meshID2,
double  distThresh 
)
pure virtual

Computes signed distance between 'test object' and 'reference object'.

For each vertex of mesh 'test object' the signed distance to the mesh 'reference object' is computed.

Parameters
[out]distancesReceives the distance values. One signed distance value for each vertex of 'test object'.
[in]meshID1ID of the mesh that is the test object.
[in]meshID2ID of the other mesh that is the reference object.
[in]distThreshDistance threshold: Distance values are limited to the range [-distThresh, distThresh].
Exceptions
david::Error_InvalidMeshId(david::FunctionException) Specified meshID does not exist.

Implemented in david::MeasureJsonRpc.

Examples:
SimpleMeshComparison.cpp.

The documentation for this class was generated from the following file: