MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMinimalSurface.h File Reference

Go to the source code of this file.

Namespaces

namespace  MR
 
namespace  MR::TPMS
 

Enumerations

enum class  MR::TPMS::Type : int {
  MR::TPMS::SchwartzP , MR::TPMS::DoubleSchwartzP , MR::TPMS::Gyroid , MR::TPMS::DoubleGyroid ,
  MR::TPMS::Count
}
 Supported types of TPMS (Triply Periodic Minimal Surfaces) More...
 

Functions

MRVOXELS_API std::vector< std::string > MR::TPMS::getTypeNames ()
 
MRVOXELS_API FunctionVolume MR::TPMS::buildVolume (Type type, const Vector3f &size, float frequency, float resolution)
 
MRVOXELS_API Expected< MeshMR::TPMS::build (Type type, const Vector3f &size, float frequency, float resolution, float iso, ProgressCallback cb={})
 Constructs TPMS level-set and then convert it to mesh.
 
MRVOXELS_API Expected< MeshMR::TPMS::fill (Type type, const Mesh &mesh, float frequency, float resolution, float iso, ProgressCallback cb={})
 Constructs TPMS-filling for the given mesh.
 
MRVOXELS_API size_t MR::TPMS::getNumberOfVoxels (const Mesh &mesh, float frequency, float resolution)
 Returns number of voxels that would be used to perform fillWithTPMS.
 
MRVOXELS_API size_t MR::TPMS::getNumberOfVoxels (const Vector3f &size, float frequency, float resolution)
 Returns number of voxels that would be used to perform buildTPMS or buildTPMSVolume.
 
MRVOXELS_API float MR::TPMS::estimateIso (Type type, float targetDensity)
 
MRVOXELS_API float MR::TPMS::estimateDensity (Type type, float targetIso)