diff --git a/library/bindings/PolyVoxCore.i b/library/bindings/PolyVoxCore.i index 9b43810d..94dc8087 100644 --- a/library/bindings/PolyVoxCore.i +++ b/library/bindings/PolyVoxCore.i @@ -15,6 +15,7 @@ %rename(divisionAssignment) operator/=; %include "stdint.i" +%include "std_vector.i" %include "Material.i" %include "Density.i" %include "Vector.i" @@ -24,4 +25,4 @@ %include "VertexTypes.i" %include "SurfaceMesh.i" %include "VolumeSampler.i" -%include "SurfaceExtractor.i" +%include "SurfaceExtractor.i" \ No newline at end of file diff --git a/library/bindings/SurfaceMesh.i b/library/bindings/SurfaceMesh.i index 1a87085a..a8df1588 100644 --- a/library/bindings/SurfaceMesh.i +++ b/library/bindings/SurfaceMesh.i @@ -9,5 +9,12 @@ %include "VertexTypes.h" %include "SurfaceMesh.h" +//%template(VertexTypeVector) std::vector; +%template(PositionMaterialVector) std::vector; +%template(PositionMaterialNormalVector) std::vector; +%template(LodRecordVector) std::vector; +%template(uint8Vector) std::vector; +%template(uint32Vector) std::vector; + %template(SurfaceMeshPositionMaterial) PolyVox::SurfaceMesh; %template(SurfaceMeshPositionMaterialNormal) PolyVox::SurfaceMesh; \ No newline at end of file