ws-3d: tests/ops/meshops (triangulate, transform, normals, tangents, weld, merge, bounds, units, up axis, greedy voxels, api texture encoding)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
185a920769
commit
e5a932ddaa
2 files changed
+356
-1
No files matched your search
@@ -1053,7 +1053,7 @@ end
|
||||
|
||||
-- meshVoxels(scene, opts?) -> scene with a mesh for every voxel grid (scene.voxels) and node.mesh set on every node
|
||||
-- that shows one (node.voxels); one shared material (white, rough, not metallic: the colours are per vertex). Options as
|
||||
-- voxelsToPrimitive. Grids that already have a mesh made by this function are meshed again.
|
||||
-- voxelsToPrimitive. Each call adds new meshes (call it once per scene, after editing the grids).
|
||||
function MeshOps.meshVoxels(scene: Scene, opts: { pivot: string?, scale: number?, colors: string?, indexAttribute: boolean? }?): (Scene?, Err.Err?)
|
||||
if type(scene) ~= "table" or scene.kind ~= "scene" then
|
||||
return nil, Err.new(Err.ARG, "expected a Scene")
|
||||
|
||||
Reference in new issue
Block a user