mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 21:58:03 -06:00
WIP: Generating offset curves with properly rounded corners from
a Voronoi diagram. Curve extraction is based on the OpenVoronoi implementation.
This commit is contained in:
parent
1e5d1cb616
commit
6f4d24ab95
5 changed files with 437 additions and 16 deletions
14
src/libslic3r/VoronoiOffset.hpp
Normal file
14
src/libslic3r/VoronoiOffset.hpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#ifndef slic3r_VoronoiOffset_hpp_
|
||||
#define slic3r_VoronoiOffset_hpp_
|
||||
|
||||
#include "libslic3r.h"
|
||||
|
||||
#include "Geometry.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
Polygons voronoi_offset(const Geometry::VoronoiDiagram &vd, const Lines &lines, double offset_distance, double discretization_error);
|
||||
|
||||
} // namespace Slic3r
|
||||
|
||||
#endif // slic3r_VoronoiOffset_hpp_
|
Loading…
Add table
Add a link
Reference in a new issue