Class: MeshBuilder

vox. MeshBuilder

new MeshBuilder(voxelData, paramopt)

Parameters:
Name Type Attributes Description
voxelData vox.VoxelData
param Object <optional>
Properties
Name Type Attributes Description
voxelSize number <optional>
ボクセルの大きさ. default = 1.0.
vertexColor boolean <optional>
頂点色を使用する. default = false.
optimizeFaces boolean <optional>
隠れた頂点/面を削除する. dafalue = true.
originToBottom boolean <optional>
地面の高さを形状の中心にする. dafalue = true.
Properties:
Name Type Description
geometry THREE.Geometry
material THREE.Material
Source:

Members

(static) textureFactory :vox.TextureFactory

Type:
Source:

Methods

build()

Voxelデータからジオメトリとマテリアルを作成する.
Source:

createMesh() → {THREE.Mesh}

Source:
Returns:
Type
THREE.Mesh

getTexture() → {THREE.Texture}

Source:
Returns:
Type
THREE.Texture

isOuterVoxel() → {boolean}

外側に面したボクセルか
Source:
Returns:
Type
boolean