mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 23:54:00 -06:00
Add test for polyline lines
This commit is contained in:
parent
439255ca46
commit
77c479c127
3 changed files with 34 additions and 19 deletions
|
@ -110,19 +110,6 @@ Line::to_SV_pureperl() {
|
|||
return newRV_noinc((SV*)av);
|
||||
}
|
||||
|
||||
SV*
|
||||
lines2perl(pTHX_ Lines& lines)
|
||||
{
|
||||
AV* av = newAV();
|
||||
av_extend(av, lines.size()-1);
|
||||
int i = 0;
|
||||
for (Lines::iterator it = lines.begin(); it != lines.end(); ++it) {
|
||||
SV* sv = (*it).to_SV_ref();
|
||||
av_store(av, i++, sv);
|
||||
}
|
||||
return (SV*)newRV_noinc((SV*)av);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue