mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-24 01:01:15 -06:00
Add quadric edge collapse
This commit is contained in:
parent
c64ce8777f
commit
e3cdeda673
5 changed files with 687 additions and 2 deletions
17
src/libslic3r/QuadricEdgeCollapse.hpp
Normal file
17
src/libslic3r/QuadricEdgeCollapse.hpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// paper: https://people.eecs.berkeley.edu/~jrs/meshpapers/GarlandHeckbert2.pdf
|
||||
// sum up: https://users.csc.calpoly.edu/~zwood/teaching/csc570/final06/jseeba/
|
||||
// inspiration: https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification
|
||||
|
||||
#include "TriangleMesh.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
/// <summary>
|
||||
/// Simplify mesh by Quadric metric
|
||||
/// </summary>
|
||||
/// <param name="its">IN/OUT triangle mesh to be simplified.</param>
|
||||
/// <param name="triangle_count">wanted triangle count.</param>
|
||||
/// <returns>TRUE on success otherwise FALSE</returns>
|
||||
bool its_quadric_edge_collapse(indexed_triangle_set &its, size_t triangle_count);
|
||||
|
||||
} // namespace Slic3r
|
||||
Loading…
Add table
Add a link
Reference in a new issue