39 #ifndef H_OGF_VOXEL_COMMANDS_VOXEL_GROB_ATTRIBUTES_COMMANDS_H
40 #define H_OGF_VOXEL_COMMANDS_VOXEL_GROB_ATTRIBUTES_COMMANDS_H
80 void init_box_from_object(
101 const std::string& name,
102 float min_val = 0.0,
float max_val = 1.0
114 const std::string& attribute=
"distance",
115 bool signed_dist=
false
132 const std::string& attribute=
"distance",
145 const std::string& attribute,
A template class for strings that need to have a specific type in the GOM system.
Commands that manipulate voxel attributes.
void Poisson_reconstruction(const MeshGrobName &points, const std::string &attribute="distance", index_t depth=8, const NewMeshGrobName &reconstruction="reconstruction")
Reconstructs a surface from points and normals using Misha Kahzdan's Screened Poisson Reconstruction.
void delete_attribute(const std::string &name)
Deletes an attribute.
void normalize_attribute(const std::string &name, float min_val=0.0, float max_val=1.0)
Normalizes a floating-point attribute.
void load_attribute(const std::string &attribute, const FileName &filename)
Loads an attribute for a 32 bit floating point raw file.
~VoxelGrobAttributesCommands() override
VoxelGrobAttributesCommands destructor.
VoxelGrobAttributesCommands()
VoxelGrobAttributesCommands constructor.
void compute_distance_to_surface(const MeshGrobName &surface, const std::string &attribute="distance", bool signed_dist=false)
Computes the distance between each vertex and a surface.
Base class for Commands related with a VoxelGrob object.
geo_index_t index_t
The type for storing and manipulating indices.
Global Graphite namespace.
Definitions common to all include files in the voxel library.
Base class for Commands related with a VoxelGrob object.