mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
hollowing params renamed, filtering generalized
This commit is contained in:
parent
bc3d22348a
commit
4b08865809
12 changed files with 111 additions and 72 deletions
|
@ -18,13 +18,15 @@ TriangleMesh volumeToMesh(const openvdb::FloatGrid &grid,
|
|||
double adaptivity = 0.0,
|
||||
bool relaxDisorientedTriangles = true);
|
||||
|
||||
using HollowingFilter = std::function<void(openvdb::FloatGrid& grid, double thickness, double scale)>;
|
||||
|
||||
// Generate an interior for any solid geometry maintaining a given minimum
|
||||
// wall thickness. The returned mesh has triangles with normals facing inside
|
||||
// the mesh so the result can be directly merged with the input to finish the
|
||||
// hollowing.
|
||||
// TODO: The thicknes is not strictly maintained due to the used gaussian filter
|
||||
TriangleMesh hollowed_interior(const TriangleMesh &mesh, double min_thickness,
|
||||
double accuracy = 0.5, double smoothing = 0.5);
|
||||
double quality = 0.5,
|
||||
HollowingFilter filt = nullptr);
|
||||
|
||||
} // namespace Slic3r
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue