MVE - Multi-View Environment mve-devel
|
This class computes the implicit function by querying function values at the octree primal vertices of the leaf nodes, called voxels. More...
#include <iso_octree.h>
Public Types | |
typedef std::vector< std::pair< VoxelIndex, VoxelData > > | VoxelVector |
Public Member Functions | |
IsoOctree (void) | |
void | clear (void) |
Resets the octree to its initial state. | |
void | clear_voxel_data (void) |
Clears the voxel data, keeps samples and hierarchy. | |
void | compute_voxels (void) |
Evaluate the implicit function for all voxels on all leaf nodes. | |
VoxelVector const & | get_voxels (void) const |
Returns the map of computed voxels. | |
![]() | |
Octree (void) | |
virtual | ~Octree (void) |
void | clear (void) |
Resets the octree to its initial state. | |
void | clear_samples (void) |
Clears all samples in all nodes. | |
Iterator | get_iterator_for_root (void) const |
Returns an octree iterator for the root. | |
int | get_max_level (void) const |
Returns the maximum level on which voxels are generated. | |
int | get_num_levels (void) const |
Returns the number of levels (WARNING: traverses whole tree). | |
std::size_t | get_num_nodes (void) const |
Returns the number of nodes in the octree. | |
std::size_t | get_num_samples (void) const |
Returns the number of samples in the octree. | |
Node const * | get_root_node (void) const |
Returns the root node (read-only). | |
math::Vec3d const & | get_root_node_center (void) const |
Returns the center of the root node. | |
double | get_root_node_size (void) const |
Returns the size of the root node. | |
void | get_samples_per_level (std::vector< std::size_t > *stats) const |
Returns octree level statistics (WARNING: traverses whole tree). | |
void | influence_query (math::Vec3d const &pos, double factor, std::vector< Sample const * > *result) const |
Queries all samples that influence the given point. | |
void | insert_sample (Sample const &s) |
Inserts a single sample into the octree. | |
void | insert_samples (SampleList const &samples) |
Inserts all samples from the point set into the octree. | |
void | limit_octree_level (void) |
Limits the octree to the max level. | |
void | node_center_and_size (Iterator const &iter, math::Vec3d *center, double *size) const |
Retuns center and size for the iterator node. | |
void | print_stats (std::ostream &out) |
Prints some octree statistics to the stream. | |
void | refine_octree (void) |
Refines the octree by subdividing all leaves. | |
void | set_max_level (int max_level) |
Sets the maximum level on which voxels are generated. | |
This class computes the implicit function by querying function values at the octree primal vertices of the leaf nodes, called voxels.
Definition at line 25 of file iso_octree.h.
typedef std::vector<std::pair<VoxelIndex, VoxelData> > fssr::IsoOctree::VoxelVector |
Definition at line 28 of file iso_octree.h.
|
inline |
Definition at line 61 of file iso_octree.h.
|
inline |
Resets the octree to its initial state.
Definition at line 66 of file iso_octree.h.
|
inline |
Clears the voxel data, keeps samples and hierarchy.
Definition at line 73 of file iso_octree.h.
void fssr::IsoOctree::compute_voxels | ( | void | ) |
Evaluate the implicit function for all voxels on all leaf nodes.
Definition at line 29 of file iso_octree.cc.
|
inline |
Returns the map of computed voxels.
Definition at line 79 of file iso_octree.h.