diff --git a/pcdeditor.js b/pcdeditor.js index acfdba8..aecdfae 100644 --- a/pcdeditor.js +++ b/pcdeditor.js @@ -220,6 +220,7 @@ class PCDEditor { // Edit menu const surfaceGridInput = this.qs('#surfaceGrid') + const voxelGridResInput = this.qs('#voxelGridRes') const labelIdInput = this.qs('#labelID') this.qs('#undo').onclick = () => @@ -228,6 +229,10 @@ class PCDEditor { const grid = surfaceGridInput.value pcdeditor.command(`add_surface ${grid}`).catch(this.logger) } + this.qs('#voxelGrid').onclick = () => { + const res = voxelGridResInput.value + pcdeditor.command(`voxel_grid ${res}`).catch(this.logger) + } this.qs('#unsetLabel').onclick = () => pcdeditor.command('label 0').catch(this.logger) this.qs('#setLabel').onclick = () => { @@ -781,6 +786,21 @@ class PCDEditor {
+
+
+ + +
+ +
+