2019-11-01 14:31:26 +00:00
|
|
|
#ifndef OPENVDBUTILS_HPP
|
|
|
|
#define OPENVDBUTILS_HPP
|
2019-10-31 13:36:33 +00:00
|
|
|
|
|
|
|
#include <libslic3r/TriangleMesh.hpp>
|
|
|
|
#include <libslic3r/SLA/SLABoilerPlate.hpp>
|
|
|
|
#include <openvdb/openvdb.h>
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
openvdb::FloatGrid::Ptr meshToVolume(const TriangleMesh & mesh,
|
|
|
|
const openvdb::math::Transform &tr);
|
|
|
|
|
|
|
|
openvdb::FloatGrid::Ptr meshToVolume(const sla::Contour3D & mesh,
|
|
|
|
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
|
|
|
|
|
2019-11-01 14:31:26 +00:00
|
|
|
#endif // OPENVDBUTILS_HPP
|