PrusaSlicer-NonPlainar/src/libslic3r/OpenVDBUtils.hpp

30 lines
1.2 KiB
C++
Raw Normal View History

#ifndef OPENVDBUTILS_HPP
#define OPENVDBUTILS_HPP
2019-10-31 13:36:33 +00:00
#include <libslic3r/TriangleMesh.hpp>
#include <libslic3r/SLA/SLACommon.hpp>
2019-10-31 13:36:33 +00:00
#include <openvdb/openvdb.h>
namespace Slic3r {
openvdb::FloatGrid::Ptr meshToVolume(const TriangleMesh & mesh,
const openvdb::math::Transform &tr = {},
float exteriorBandWidth = 3.0f,
float interiorBandWidth = 3.0f,
int flags = 0);
2019-10-31 13:36:33 +00:00
openvdb::FloatGrid::Ptr meshToVolume(const sla::Contour3D & mesh,
const openvdb::math::Transform &tr = {},
float exteriorBandWidth = 3.0f,
float interiorBandWidth = 3.0f,
int flags = 0);
2019-10-31 13:36:33 +00:00
sla::Contour3D volumeToMesh(const openvdb::FloatGrid &grid,
double isovalue = 0.0,
double adaptivity = 0.0,
bool relaxDisorientedTriangles = true);
} // namespace Slic3r
#endif // OPENVDBUTILS_HPP