mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-19 13:14:26 +08:00
Increase fidelity of openvdb previews and log duration of generating it
This commit is contained in:
parent
faf20a2650
commit
8511a17ad0
@ -138,7 +138,7 @@ indexed_triangle_set SLAPrint::Steps::generate_preview_vdb(
|
|||||||
bench.start();
|
bench.start();
|
||||||
|
|
||||||
// update preview mesh
|
// update preview mesh
|
||||||
double vscale = 1. / (2. * po.m_config.layer_height.getFloat());
|
double vscale = 1. / po.m_config.layer_height.getFloat();
|
||||||
auto voxparams = csg::VoxelizeParams{}
|
auto voxparams = csg::VoxelizeParams{}
|
||||||
.voxel_scale(vscale)
|
.voxel_scale(vscale)
|
||||||
.exterior_bandwidth(1.f)
|
.exterior_bandwidth(1.f)
|
||||||
@ -150,7 +150,7 @@ indexed_triangle_set SLAPrint::Steps::generate_preview_vdb(
|
|||||||
|
|
||||||
bench.stop();
|
bench.stop();
|
||||||
|
|
||||||
std::cout << "Preview gen took: " << bench.getElapsedSec() << std::endl;
|
BOOST_LOG_TRIVIAL(trace) << "Preview gen took: " << bench.getElapsedSec();
|
||||||
|
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user