Skip to main content

VoxelDB

Client Server

Deprecated

The voxel edit functions in this class are old and may not correctly work. Instead use Vox.

Methods

nil Clear()

nil Flush()

Flush() adds a special operation in the queue, which waits for all running ops to finish. If we had flush after each op, it would eliminate all multithreaded processing.

Vec3i FromWorld(Vec3)

integer FromWorld(number)

Vec3 ToWorld(Vec3i)

number ToWorld(number)

boolean SetUnitVoxelDim(boolean)

nil SetMask_deprecated(Vec3i, boolean)

boolean GetMask(Vec3i)

boolean GetMask(number, number, number)

integer GetMaskNeighbours(Vec3i, integer)

int is the neighborhood radius, 1 means it's from pos - 1 to pos + 1, sum of voxels in 3x3 square without center (0-26) it should be in range 1-8

integer GetMaskNeighbours(number, number, number, integer)

integer GetMaskNeighboursVN(Vec3i, integer)

integer GetMaskNeighboursVN(number, number, number, integer)

nil ClearVoxel(Vec3i)

nil ClearVoxel(number, number, number)

nil SetColor(Vec3i, Vec3)

nil SetColor(number, number, number, Vec3)

userdata GetColor(Vec3i)

Vec3 GetNormalV(Vec3i)

Vec3 GetFilteredNormalV(Vec3i)

nil PaintSphereV(Vec3i, integer, Vec3)

nil PaintBoxV(Vec3i, Vec3i, Vec3)

nil PaintBoxV(Vec3i, Vec3i, Quat, Vec3)

nil PaintCapsuleV(Vec3i, Vec3i, integer, Vec3)

nil PaintCapsuleV(Vec3i, Vec3i, integer, integer, Vec3)

nil ClearSphereV(Vec3i, integer)

nil ClearBoxV(Vec3i, Vec3i)

nil ClearBoxV(Vec3i, Vec3i, Quat)

nil ClearCapsuleV(Vec3i, Vec3i, integer)

nil ClearCapsuleV(Vec3i, Vec3i, integer, integer)

nil MakeSphereV(Vec3i, integer, Vec3)

nil MakeBoxV(Vec3i, Vec3i, Vec3)

nil MakeBoxV(Vec3i, Vec3i, Quat, Vec3)

nil MakeCapsuleV(Vec3i, Vec3i, integer, Vec3)

nil MakeCapsuleV(Vec3i, Vec3i, integer, integer, Vec3)

nil PaintSphereBlendV(Vec3i, integer, Vec3, number, number, number)

Vec3 GetNormal(Vec3)

Vec3 GetFilteredNormal(Vec3)

userdata TraceRay(Vec3, Vec3, number)

boolean CheckSphere(Vec3, number)

boolean CheckBox(Vec3, Vec3, Quat)

boolean CheckBox(Vec3, Vec3)

boolean CheckCapsule(Vec3, Vec3, number, number)

boolean CheckCapsule(Vec3, Vec3, number)

nil PaintSphere(Vec3, number)

nil PaintBox(Vec3, Vec3, Quat)

nil PaintBox(Vec3, Vec3)

nil PaintCapsule(Vec3, Vec3, number, number)

nil PaintCapsule(Vec3, Vec3, number)

nil ClearSphere(Vec3, number)

nil ClearBox(Vec3, Vec3, Quat)

nil ClearBox(Vec3, Vec3)

nil ClearCapsule(Vec3, Vec3, number, number)

nil ClearCapsule(Vec3, Vec3, number)

nil MakeSphere(Vec3, number)

nil MakeBox(Vec3, Vec3, Quat)

nil MakeBox(Vec3, Vec3)

nil MakeCapsule(Vec3, Vec3, number, number)

nil MakeCapsule(Vec3, Vec3, number)

nil SetMaterial(Vec3)

nil InstantiateIE(Vec3, Quat, number)

nil ClearContent()

nil RebuildLods(boolean)

boolean CopyLayer(string, string)

boolean ClearLayer(string)

nil RemoveHiddenVoxelsC32()

nil RemoveHiddenVoxelsN16()

table GetInfo()

nil CopyTo(VoxelDB)

boolean Save(string, string, integer)

userdata InspectNormals(Vec3, integer, integer)

userdata Inspect(Vec3, integer, integer, table, integer)

integer GetLODsCount()

table GetLayerStats(string)

table GetUsedLayers()

Vec3, Vec3 GetAABounds()

World position and size of AABB (axis-aligned bounding box) of the static voxel data

Properties

boolean autoLightingUpdate

integer voxelDim

boolean BlendEnabled

BlendMode BlendMode

number BlendOpacity

number BlendRadiusRatio