Lagrange
MeshToVolumeOptions Struct Reference

Mesh to volume conversion options. More...

#include <lagrange/volume/mesh_to_volume.h>

Public Types

enum class  Sign { FloodFill , WindingNumber }
 Available methods to compute the sign of the distance field (i.e. More...
 

Public Attributes

double voxel_size = -0.01
 Grid voxel size. More...
 
Sign signing_method = Sign::FloodFill
 Method used to compute the sign of the distance field that determines interior voxels.
 

Detailed Description

Mesh to volume conversion options.

Member Enumeration Documentation

◆ Sign

enum class Sign
strong

Available methods to compute the sign of the distance field (i.e.

which voxels are inside or outside of the input volume).

Enumerator
FloodFill 

Default voxel flood-fill method used by OpenVDB.

WindingNumber 

Fast winding number approach based on [Barill et al. 2018].

Member Data Documentation

◆ voxel_size

double voxel_size = -0.01

Grid voxel size.

If the target voxel size is too small, an exception will will be raised. A negative value is interpreted as being relative to the mesh bbox diagonal.


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