godot_voxel/doc/api/VoxelBuffer.md

110 lines
1.6 KiB
Markdown
Raw Normal View History

2019-05-27 03:06:28 -07:00
# Class: VoxelBuffer
Inherits: Reference
_Godot version: 3.2_
## Online Tutorials:
## Constants:
#### <20> ChannelId.CHANNEL_TYPE = 0
#### <20> ChannelId.CHANNEL_ISOLEVEL = 1
#### <20> ChannelId.CHANNEL_DATA2 = 2
#### <20> ChannelId.CHANNEL_DATA3 = 3
#### <20> ChannelId.CHANNEL_DATA4 = 4
#### <20> ChannelId.CHANNEL_DATA5 = 5
#### <20> ChannelId.CHANNEL_DATA6 = 6
#### <20> ChannelId.CHANNEL_DATA7 = 7
#### <20> ChannelId.MAX_CHANNELS = 8
## Properties:
## Methods:
#### <20> void clear ( )
#### <20> void copy_from ( VoxelBuffer other, int channel=0 )
#### <20> void copy_from_area ( VoxelBuffer other, Vector3 src_min, Vector3 src_max, Vector3 dst_min, int channel=0 )
#### <20> void create ( int sx, int sy, int sz )
#### <20> void fill ( int value, int channel=0 )
#### <20> void fill_area ( int value, Vector3 min, Vector3 max, int channel=0 )
#### <20> void fill_f ( float value, int channel=0 )
#### <20> Vector3 get_size ( ) const
#### <20> int get_size_x ( ) const
#### <20> int get_size_y ( ) const
#### <20> int get_size_z ( ) const
#### <20> int get_voxel ( int x, int y, int z, int channel=0 ) const
#### <20> float get_voxel_f ( int x, int y, int z, int channel=0 ) const
#### <20> bool is_uniform ( int channel ) const
#### <20> void optimize ( )
#### <20> void set_voxel ( int value, int x, int y, int z, int channel=0 )
#### <20> void set_voxel_f ( float value, int x, int y, int z, int channel=0 )
#### <20> void set_voxel_v ( int value, Vector3 pos, int channel=0 )
## Signals:
---
* [Class List](Class_List.md)
* [Doc Index](../01_get-started.md)
_Generated on Aug 26, 2019_