CExport::SaveMeshSTL Static Method
C++
static void SaveMeshSTL(const CRxString& sxFile, const CRxImage& xImgDepth3D, bool bUseVD, double dMaxEdgeLength, const double* pdCropXY)
Saves the 3D mesh provided by the given 3D depth image to binary STL format.
Parameters
[const CRxString&] sxFile |
[in] The output file name. |
[const CRxImage&] xImgDepth3D |
[in] The 3D depth image. Must be of type RGBA float. |
[bool] bUseVD |
[in] True to save the mesh in virtual depth units instead of metric units. |
[double] dMaxEdgeLength |
[in] Vertices with a depth-variation larger than this value for at least one vertex pair are not added to the mesh. |
[const double*] pdCropXY |
(Optional) [in] Pointer to 4 double values defining a mesh crop in X and Y. The values must be given in percentage of the image dimension in the order: Left, Right, Top, Bottom. |