Geom Software - C++ Programming and Geometry Libraries
FADEPLACEHOLDER Documentation pages v1.03
Geometry functions

Functions

std::shared_ptr< WofMeshGEOM_WOF::melt (std::vector< Point3 > &vInputCorners, double avgLength, double featureThresh=15.0)
 Retriangulate a triangle mesh. More...
 
std::shared_ptr< WofMeshGEOM_WOF::reconstruct_auto (std::vector< Point3 > &vPoints, bool bAllowSmoothing, double sfactor=2.0)
 Reconstruct with an automatic spacing value. More...
 
std::shared_ptr< WofMeshGEOM_WOF::reconstruct_abs (std::vector< Point3 > &vPoints, bool bAllowSmoothing, double spacingAbs)
 Reconstruct with an absolute spacing value. More...
 
void GEOM_WOF::toCloud (std::vector< Point3 > &vCornersIn, double length, double featureThresh, std::vector< Point3 > &vCloudOut)
 Mesh-to-Cloud. More...
 

Detailed Description

Function Documentation

◆ melt()

std::shared_ptr<WofMesh> GEOM_WOF::melt ( std::vector< Point3 > &  vInputCorners,
double  avgLength,
double  featureThresh = 15.0 
)

This function takes a triangular mesh and a distance. It pixels the input surface and reconstructs the mesh.

Parameters
[in]vInputCornerscontains the input triangles (3 corners per triangle)
[in]avgLengthspecifies the average distance to be used
[in]featureThreshis an optional parameter. It specifies that edges above this value shall be treated as feature lines.
Warning
Choose avgLength with care. Large area meshes can cause an extreme number of elements.

◆ reconstruct_abs()

std::shared_ptr<WofMesh> GEOM_WOF::reconstruct_abs ( std::vector< Point3 > &  vPoints,
bool  bAllowSmoothing,
double  spacingAbs 
)

This function takes a 3D point cloud and reconstructs a triangular mesh.

Parameters
[in]vPointscontains the input point cloud
[in]spacingAbsis an absolute spacing value. Large values
[in]bAllowSmoothingspecifies if the point cloud shall be smoothed before reconstruction. avoid holes and create coarser meshes.
Returns
the reconstructed mesh.

When the absolute spacing value is unknown then better use reconstruct_auto().

◆ reconstruct_auto()

std::shared_ptr<WofMesh> GEOM_WOF::reconstruct_auto ( std::vector< Point3 > &  vPoints,
bool  bAllowSmoothing,
double  sfactor = 2.0 
)

This function takes a 3D point cloud and reconstructs a triangular mesh.

Parameters
[in]vPointscontains the input point cloud
[in]sfactorinfluences the mesh density. The average spacing in the point cloud is automatically estimated and multiplied by sfactor. Use larger values to avoid holes and to create coarser meshes. By default sfactor=2.0.
[in]bAllowSmoothingspecifies if the point cloud shall be smoothed before reconstruction.
Returns
the reconstructed mesh.

◆ toCloud()

void GEOM_WOF::toCloud ( std::vector< Point3 > &  vCornersIn,
double  length,
double  featureThresh,
std::vector< Point3 > &  vCloudOut 
)

This function takes a 3D mesh and a distance. It transforms the mesh into a 3D point cloud

Parameters
[in]vCornersIncontains the input triangles (3 corners per triangle)
[in]lengthspecifies the approximate distance to be used
[in]featureThreshis an optional parameter. Edges whose dihedral angle is beyond featureThresh are treated as feature edges
[out]vCloudOutis used to return the point cloud