Fixed wrong refactoring of perimeter tree traversal. #1832

This commit is contained in:
Alessandro Ranellucci 2014-03-15 02:16:04 +01:00
parent b71d28bd5a
commit 52de292a48
6 changed files with 31 additions and 11 deletions

View file

@ -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
%}
};

View file

@ -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

View file

@ -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>*};