DAVID4 SDK
1.8.7
|
Implements interface functions of IMeasure. More...
#include <MeasureJsonRpc.h>
Public Member Functions | |
MeasureJsonRpc (ClientJsonRpc *client) | |
Constructor. More... | |
~MeasureJsonRpc () | |
Destructor. | |
void | ComputeSurfaceDistances (std::vector< float > &distances, int meshID1, int meshID2, double distThresh) |
Computes signed distance between 'test object' and 'reference object'. More... | |
![]() | |
virtual | ~IMeasure () |
Destructor. | |
Implements interface functions of IMeasure.
All calls are delegated to a JSON-RPC 2.0 client.
Definition at line 22 of file MeasureJsonRpc.h.
david::MeasureJsonRpc::MeasureJsonRpc | ( | ClientJsonRpc * | client) |
Constructor.
[in,out] | client | Valid pointer to client implementation. |
|
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.
[out] | distances | Receives the distance values. One signed distance value for each vertex of 'test object'. |
[in] | meshID1 | ID of the mesh that is the test object. |
[in] | meshID2 | ID of the other mesh that is the reference object. |
[in] | distThresh | Distance threshold: Distance values are limited to the range [-distThresh, distThresh]. |
david::Error_InvalidMeshId | (david::FunctionException) Specified meshID does not exist. |
Implements david::IMeasure.