1#ifndef MESH_HIERARCHY_H
2#define MESH_HIERARCHY_H
4#include <geogram/basic/common.h>
5#include <geogram/mesh/mesh.h>
30 int generateHierarchyFromFile(
const std::string& input_mesh_file,
const std::string& output_dir,
bool fill_volume =
true);
64 bool loadVolumeMesh(
const std::string& filename, GEO::Mesh& M,
bool fill_volume)
const;
Class to manage a hierarchy of meshes with different resolutions.
int getPointsForLevel(int base_points, int level) const
Calculate number of points for a given level.
int getNumLevels() const
Get the number of levels in the last generated hierarchy.
void setMaxVertices(int max_vertices)
Set the maximum number of vertices for level 1.
bool loadVolumeMesh(const std::string &filename, GEO::Mesh &M, bool fill_volume) const
Load a volume mesh from file.
void ensureDirectoryExists(const std::string &path) const
Ensure directory exists, create if it doesn't.
void setMinVertices(int min_vertices)
Set the minimum number of vertices for coarsest level.
int generateHierarchyFromFile(const std::string &input_mesh_file, const std::string &output_dir, bool fill_volume=true)
Generate hierarchy of meshes from input mesh file.
void initializeGeogram()
Initialize Geogram if not already initialized.