mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-11 07:28:58 +08:00
Minor optimization for mesh_to_grid
This commit is contained in:
parent
27a18065b3
commit
f862526bb7
@ -81,11 +81,13 @@ openvdb::FloatGrid::Ptr mesh_to_grid(const indexed_triangle_set & mesh,
|
||||
|
||||
constexpr int DilateIterations = 1;
|
||||
|
||||
if (interiorBandWidth > 1.f)
|
||||
grid = openvdb::tools::dilateSdf(
|
||||
*grid, interiorBandWidth, openvdb::tools::NN_FACE_EDGE,
|
||||
DilateIterations,
|
||||
openvdb::tools::FastSweepingDomain::SWEEP_LESS_THAN_ISOVALUE);
|
||||
|
||||
if (exteriorBandWidth > 1.f)
|
||||
grid = openvdb::tools::dilateSdf(
|
||||
*grid, exteriorBandWidth, openvdb::tools::NN_FACE_EDGE,
|
||||
DilateIterations,
|
||||
|
Loading…
x
Reference in New Issue
Block a user