mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-28 18:22:02 +08:00
30 lines
1.2 KiB
C++
30 lines
1.2 KiB
C++
#ifndef OPENVDBUTILS_HPP
|
|
#define OPENVDBUTILS_HPP
|
|
|
|
#include <libslic3r/TriangleMesh.hpp>
|
|
#include <libslic3r/SLA/SLABoilerPlate.hpp>
|
|
#include <openvdb/openvdb.h>
|
|
|
|
namespace Slic3r {
|
|
|
|
openvdb::FloatGrid::Ptr meshToVolume(const TriangleMesh &mesh,
|
|
float exteriorBandWidth = 3.0f,
|
|
float interiorBandWidth = 3.0f,
|
|
int flags = 0,
|
|
const openvdb::math::Transform &tr = {});
|
|
|
|
openvdb::FloatGrid::Ptr meshToVolume(const sla::Contour3D &mesh,
|
|
float exteriorBandWidth = 3.0f,
|
|
float interiorBandWidth = 3.0f,
|
|
int flags = 0,
|
|
const openvdb::math::Transform &tr = {});
|
|
|
|
sla::Contour3D volumeToMesh(const openvdb::FloatGrid &grid,
|
|
double isovalue = 0.0,
|
|
double adaptivity = 0.0,
|
|
bool relaxDisorientedTriangles = true);
|
|
|
|
} // namespace Slic3r
|
|
|
|
#endif // OPENVDBUTILS_HPP
|