Libs/Analyze/MeshGenerator.h
Mesh generation. More...
Namespaces
| Name |
|---|
| shapeworks User usage reporting (telemetry) |
Classes
| Name | |
|---|---|
| class | shapeworks::MeshReconstructors |
| class | shapeworks::MeshGenerator |
Detailed Description
Mesh generation.
The MeshGenerator performs the actual work of reconstructing a mesh from a shape (list of points).
Source code
```cpp
pragma once
include
include "vnl/vnl_vector.h"
include "StudioMesh.h"
include "MeshWorkQueue.h"
class SurfaceReconstructor;
namespace shapeworks {
class QMeshWarper;
class MeshReconstructors {
public:
std::vector
class MeshGenerator { public:
MeshGenerator();
~MeshGenerator();
MeshHandle build_mesh(const MeshWorkItem& item);
MeshHandle build_mesh_from_points(const Eigen::VectorXd& shape, int domain);
MeshHandle build_mesh_from_image(ImageType::Pointer image, float iso_value = 0.0001);
MeshHandle build_mesh_from_file(std::string filename, float iso_value = 0.0001);
void set_mesh_reconstructors(std::shared_ptr
void set_reconstruction_method(std::string method); std::string get_reconstruction_method();
static const std::string RECONSTRUCTION_LEGACY_C; static const std::string RECONSTRUCTION_DISTANCE_TRANSFORM_C; static const std::string RECONSTRUCTION_MESH_WARPER_C;
private:
std::shared_ptr
std::string reconstruction_method_ = RECONSTRUCTION_MESH_WARPER_C;
}; } ```
Updated on 2026-03-31 at 16:02:10 +0000