mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
Fixed wrong refactoring of perimeter tree traversal. #1832
This commit is contained in:
parent
b71d28bd5a
commit
52de292a48
6 changed files with 31 additions and 11 deletions
|
@ -20,7 +20,7 @@
|
|||
%code{% const char* CLASS = "Slic3r::Point"; RETVAL = THIS->last_point(); %};
|
||||
int count()
|
||||
%code{% RETVAL = THIS->entities.size(); %};
|
||||
std::vector<int> orig_indices()
|
||||
std::vector<size_t> orig_indices()
|
||||
%code{% RETVAL = THIS->orig_indices; %};
|
||||
%{
|
||||
|
||||
|
@ -79,5 +79,16 @@ ExtrusionEntityCollection::no_sort(...)
|
|||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
ExtrusionEntityCollection*
|
||||
ExtrusionEntityCollection::chained_path_indices(bool no_reverse)
|
||||
PREINIT:
|
||||
const char* CLASS = "Slic3r::ExtrusionPath::Collection";
|
||||
CODE:
|
||||
std::vector<size_t> indices;
|
||||
RETVAL = THIS->chained_path(no_reverse, &indices);
|
||||
RETVAL->orig_indices = indices;
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
%}
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
std::vector<Points::size_type> T_STD_VECTOR_INT
|
||||
std::vector<size_t> T_STD_VECTOR_INT
|
||||
t_config_option_key T_STD_STRING
|
||||
|
||||
BoundingBox* O_OBJECT
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
%typemap{std::string};
|
||||
%typemap{t_config_option_key};
|
||||
%typemap{std::vector<int>};
|
||||
%typemap{std::vector<size_t>};
|
||||
%typemap{std::vector<unsigned int>*};
|
||||
%typemap{std::vector<double>};
|
||||
%typemap{std::vector<double>*};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue