Ported Surface->offset() to XS

This commit is contained in:
Alessandro Ranellucci 2013-11-23 18:29:25 +01:00
parent a331f4d27a
commit 46e3b3180e
6 changed files with 35 additions and 5 deletions

View file

@ -80,6 +80,17 @@ Surface::polygons()
OUTPUT:
RETVAL
Surfaces
Surface::offset(delta, scale = CLIPPER_OFFSET_SCALE, joinType = ClipperLib::jtMiter, miterLimit = 3)
const float delta
double scale
ClipperLib::JoinType joinType
double miterLimit
CODE:
offset(*THIS, RETVAL, delta, scale, joinType, miterLimit);
OUTPUT:
RETVAL
%}
};

View file

@ -24,6 +24,7 @@ Lines T_ARRAYREF
Polygons T_ARRAYREF
Polylines T_ARRAYREF
ExPolygons T_ARRAYREF
Surfaces T_ARRAYREF
# we return these types whenever we want the items to be returned
# by reference and marked ::Ref because they're contained in another

View file

@ -19,6 +19,7 @@
%typemap{Polygons};
%typemap{Polylines};
%typemap{ExPolygons};
%typemap{Surfaces};
%typemap{Polygons*};
%typemap{TriangleMeshPtrs};