version bump, viewer defaults to none for fields

This commit is contained in:
Andrea Pozzetti
2026-02-12 21:57:40 +01:00
parent 18ec7a37be
commit f4e2295514
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-geometrypack"
description = "CGAL - Blender - IGL - Paraview - VTK. Geometry processing nodes for ComfyUI - mesh manipulation, remeshing, hole filling, UV unwrapping, and 3D visualization"
version = "0.1.6"
version = "0.1.7"
license = { text = "GPL-3.0-or-later" }
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
@@ -52,6 +52,9 @@ export class FieldVisualization {
return { pointFields: [], cellFields: [], allFields: [] };
}
// Fields to hide from dropdown (VTK internal arrays that aren't useful to visualize)
const HIDDEN_FIELDS = ['Attribute', 'vtkOriginalPointIds', 'vtkOriginalCellIds'];
const pointData = polyData.getPointData();
const cellData = polyData.getCellData();
@@ -62,6 +65,8 @@ export class FieldVisualization {
for (let i = 0; i < pointData.getNumberOfArrays(); i++) {
const array = pointData.getArray(i);
const name = array.getName();
// Skip hidden/internal fields
if (HIDDEN_FIELDS.includes(name)) continue;
const range = array.getRange();
pointFields.push({
name,
@@ -77,6 +82,8 @@ export class FieldVisualization {
for (let i = 0; i < cellData.getNumberOfArrays(); i++) {
const array = cellData.getArray(i);
const name = array.getName();
// Skip hidden/internal fields
if (HIDDEN_FIELDS.includes(name)) continue;
const range = array.getRange();
cellFields.push({
name,
+2 -4
View File
@@ -363,10 +363,8 @@
colormapLabel.style.display = 'flex';
// Auto-select first field
if (fieldInfo.allFields.length > 0) {
fieldSelector.value = fieldInfo.allFields[0].fullName;
}
// Default to "None" - don't auto-select any field
// fieldSelector.value stays as "" (None option)
} else {
fieldLabel.style.display = 'none';
colormapLabel.style.display = 'none';