Class: MagicaVoxel::Model

Inherits:
Chunk
  • Object
show all
Defined in:
lib/magica_voxel/model.rb

Overview

The Chunk type XYZI

Since:

  • 0.1.0

Constant Summary

Constants inherited from Chunk

Chunk::TYPES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Chunk

#each, header, #initialize, read

Constructor Details

This class inherits a constructor from MagicaVoxel::Chunk

Instance Attribute Details

#voxelsObject (readonly)

Since:

  • 0.1.0



9
10
11
# File 'lib/magica_voxel/model.rb', line 9

def voxels
  @voxels
end

Instance Method Details

#inspectObject

:nodoc:

Returns:

  • 0.1.0

Since:

  • 0.1.0



14
15
16
# File 'lib/magica_voxel/model.rb', line 14

def inspect
  "#<MagicaVoxel::Model size=#{voxels.size}>"
end