-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"normalize" and "offset" now working
Other changes: - added preliminary documentation for "offset" functionality - added tests for "offset" functionality - de-duplicated test images
- Loading branch information
Showing
25 changed files
with
276 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,4 +230,5 @@ Reference | |
.. toctree:: | ||
base | ||
clip | ||
offset | ||
large_ints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
poly_ops/offset.hpp | ||
===================== | ||
|
||
.. cpp:namespace:: poly_ops | ||
|
||
|
||
Functions | ||
---------------- | ||
|
||
.. cpp:function:: template<typename Coord,typename Index=std::size_t,typename Input>\ | ||
void add_offset_loops(\ | ||
clipper<Coord,Index> &n,\ | ||
Input &&input,\ | ||
bool_set set,\ | ||
real_coord_t<Coord> magnitude,\ | ||
std::type_identity_t<Coord> arc_step_size) | ||
|
||
.. cpp:function:: template<typename Coord,typename Index=std::size_t,typename Input>\ | ||
void add_offset_loops_subject(\ | ||
clipper<Coord,Index> &n,\ | ||
Input &&input,\ | ||
real_coord_t<Coord> magnitude,\ | ||
std::type_identity_t<Coord> arc_step_size) | ||
|
||
.. cpp:function:: template<typename Coord,typename Index=std::size_t,typename Input>\ | ||
void add_offset_loops_clip(\ | ||
clipper<Coord,Index> &n,\ | ||
Input &&input,\ | ||
real_coord_t<Coord> magnitude,\ | ||
std::type_identity_t<Coord> arc_step_size) | ||
|
||
.. cpp:function:: template<bool TreeOut,typename Coord,typename Index=std::size_t,typename Input>\ | ||
std::conditional_t<TreeOut,\ | ||
temp_polygon_tree_range<Coord,Index>,\ | ||
temp_polygon_range<Coord,Index>>\ | ||
offset(\ | ||
Input &&input,\ | ||
real_coord_t<Coord> magnitude,\ | ||
Coord arc_step_size,\ | ||
point_tracker<Index> *pt=nullptr,\ | ||
std::pmr::memory_resource *contig_mem=nullptr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.