Skip to main content

VoxelDataResource

Client Server

Constructors​

VoxelDataResource(string, boolean)​

VoxelDataResource()​

VoxelDataResource(string)​

Methods​

string Save(string, boolean)​

save voxel data in AM file second parameter controls if file will be overwritten

Vec3, Vec3 GetLocalBounds()​

get center (in local space) and approximate dimensions of the voxel data

Vec3, Vec3 GetPreciseLocalBounds()​

get center (in local space) and dimensions of the voxel data

userdata Duplicate()​

nil RebuildLighting()​

Properties​

boolean isEditable​

returns false if loaded as aevv

boolean isSaved​

returns true if data was modified

boolean hasAnyVoxels​

number volumePerc​

Approximate. Quickly count non-zero blocks of voxel object. Block size is 8x8x8. Block can be fully filled or just 1 voxel

number volume​

number scaleToStatic​

number loadLodScale​

number voxelSize​