new MeshBuilder(voxelData, paramopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
voxelData |
vox.VoxelData | ||||||||||||||||||||||
param |
Object |
<optional> |
Properties
|
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