#ifndef VOXEL_MESHER_H #define VOXEL_MESHER_H #include "../voxel_buffer.h" #include class VoxelMesher : public Reference { GDCLASS(VoxelMesher, Reference) public: struct Output { Vector surfaces; Mesh::PrimitiveType primitive_type; }; virtual void build(Output &output, const VoxelBuffer &voxels, int padding); virtual int get_minimum_padding() const; Ref build_mesh(Ref voxels); protected: static void _bind_methods(); }; #endif // VOXEL_MESHER_H