2013-06-23 15:07:12 +00:00
|
|
|
ZTable* O_OBJECT
|
2013-06-24 17:35:49 +00:00
|
|
|
TriangleMesh* O_OBJECT
|
2013-07-06 13:26:32 +00:00
|
|
|
Point* O_OBJECT
|
2013-07-15 20:57:22 +00:00
|
|
|
Line* O_OBJECT
|
2013-07-15 10:14:22 +00:00
|
|
|
Polyline* O_OBJECT
|
|
|
|
Polygon* O_OBJECT
|
2013-07-06 14:33:49 +00:00
|
|
|
ExPolygon* O_OBJECT
|
2013-07-13 22:38:01 +00:00
|
|
|
ExPolygonCollection* O_OBJECT
|
2013-07-15 10:14:22 +00:00
|
|
|
ExtrusionPath* O_OBJECT
|
|
|
|
ExtrusionLoop* O_OBJECT
|
2013-07-14 11:05:55 +00:00
|
|
|
Surface* O_OBJECT
|
2013-07-14 12:56:43 +00:00
|
|
|
SurfaceCollection* O_OBJECT
|
2013-07-15 10:14:22 +00:00
|
|
|
|
|
|
|
ExtrusionRole T_UV
|
|
|
|
SurfaceType T_UV
|
2013-07-16 18:09:53 +00:00
|
|
|
ClipperLib::JoinType T_UV
|
2013-07-16 22:29:09 +00:00
|
|
|
ClipperLib::PolyFillType T_UV
|
2013-07-15 21:12:13 +00:00
|
|
|
|
2013-07-16 18:09:53 +00:00
|
|
|
Lines T_ARRAYREF
|
|
|
|
Polygons T_ARRAYREF
|
|
|
|
ExPolygons T_ARRAYREF
|
2013-07-15 21:12:13 +00:00
|
|
|
|
|
|
|
INPUT
|
|
|
|
|
2013-07-16 18:09:53 +00:00
|
|
|
T_ARRAYREF
|
|
|
|
if (SvROK($arg) && SvTYPE(SvRV($arg)) == SVt_PVAV) {
|
|
|
|
AV* av = (AV*)SvRV($arg);
|
|
|
|
const unsigned int len = av_len(av)+1;
|
|
|
|
$type* tmp = new $type(len);
|
|
|
|
for (unsigned int i = 0; i < len; i++) {
|
|
|
|
SV** elem = av_fetch(av, i, 0);
|
|
|
|
(*tmp)[i].from_SV_check(*elem);
|
|
|
|
}
|
|
|
|
$var = *tmp;
|
|
|
|
delete tmp;
|
|
|
|
} else
|
|
|
|
Perl_croak(aTHX_ \"%s: %s is not an array reference\",
|
|
|
|
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
|
|
|
|
\"$var\");
|
|
|
|
|
2013-07-15 21:12:13 +00:00
|
|
|
OUTPUT
|
|
|
|
|
2013-07-16 18:09:53 +00:00
|
|
|
T_ARRAYREF
|
2013-07-15 21:23:35 +00:00
|
|
|
AV* av = newAV();
|
|
|
|
$arg = newRV_noinc((SV*)av);
|
|
|
|
const unsigned int len = $var.size();
|
|
|
|
av_extend(av, len-1);
|
|
|
|
for (unsigned int i = 0; i < len; i++) {
|
2013-07-16 18:09:53 +00:00
|
|
|
av_store(av, i, ${var}[i].to_SV_ref());
|
2013-07-15 21:23:35 +00:00
|
|
|
}
|