MeshedGeomFile Editor
The meshed-geometry editor points a geometry at a pre-computed voxel cube tree in a .wct file. Its
model is CubeTreeFile, a reference to that file: neither the editor nor the
controller loads the voxel data, which stays deferred until something actually needs the mesh.
Important
The kind is CubeTreeFile; the label is MeshedGeomFile. The rename is display-only and lives
in exactly two registries — the kind picker's option label and the Control-Tree node label — while
the value sent to the backend stays the type name. The domain type carries the matching display
name of its own. Any page describing a mesh source has to keep the two apart.
Layout
- A caption naming what the field takes,
.wct. - The file selector — the shared file-path widget, filtered to
.wct, with an empty-state hint when nothing is chosen. - A standing description: the geometry is a pre-computed voxel cube tree, and loading it is deferred until it is needed.
Reach
One slot offers this kind: the workpiece's Raw Geometry. The fixture's geometry and the
workpiece's target geometry both exclude it, and it is not among the container kinds, so it can be
neither a transformation geometry's inner geometry nor a combination child. The Control-Tree node
carries the chosen file in its label, as MeshedGeomFile [<path>].
There is no separate geometry-source toggle: picking the MeshedGeomFile kind is choosing the
meshed source. The classification survives on the server, which still reports a raw geometry of this
type as a meshed one.
Key Model
CubeTreeFile is the file reference; CubeTree is the voxel tree itself.
The reader resolves the stored relative path and opens it with no extension test of its own — .wct
is what the app writes and what every user-facing string names, not something the loader enforces.
The consumer that reads the data is the equipment-setup scene: it recognises a workpiece whose initial geometry is a cube-tree file and builds the meshed geometry for the canvas, behind the canvas's own Meshed Geometry display toggle.
Source Code Path
See HiNC App Anatomy for git repository links.
HiNC-2025-webservice (Quasar CLI SPA):
wwwroot-src/src/components/geom/CubeTreeFileEditor.vue— the editor: the caption, the.wctfile selector and the deferred-loading description.wwwroot-src/src/components/widgets/FilePathInput.vueandwwwroot-src/src/components/widgets/FileExplorerDialog.vue— the picker and the in-app browser it opens.wwwroot-src/src/components/geom/geometryEditors.ts— maps theCubeTreeFilekind to this editor.wwwroot-src/src/components/geom/GeometryEditor.vue— the kind picker, and the display-only rename applied to its option label.wwwroot-src/src/components/controlTree/itemTypes.ts— registers the kind against the sole-editor panel, holds the other half of the rename, builds the node label that carries the file, and is where the kind's absence from the container kinds is declared.wwwroot-src/src/components/controlTree/SoleEditorPanel.vueandwwwroot-src/src/components/controlTree/GeometrySlotPanel.vue— the kind node's panel and the parent slot's picker.wwwroot-src/src/components/controlTree/useControlTreeHost.ts— the workpiece raw-geometry slot, the only slot whose allowed kinds admit it, and the node-label refresh when the file changes.wwwroot-src/src/api/geometry.ts—getCubeTreeFile,setCubeTreeFileSourceFileand the create entry.wwwroot-src/src/i18n/en/geom.ts— themeshedFile.*strings, andwwwroot-src/src/i18n/en/tree.ts— the Raw Geometry slot label.Geom/CubeTreeFileController.cs— REST endpoints at/api/CubeTreeFile/*:New,GetandSetSourceFile, and nothing else. None of them loads the voxel data.Mech/WorkpieceController.cs— the raw-geometry create path, and the classification that still reports this type as a meshed geometry.Common/IndexService.cs— the keyed object store every cube-tree-file key resolves against.Disp/EquipmentSetupDisplayee.csandMech/EquipmentSetupDisplayController.cs— the scene that builds the meshed geometry for the canvas, and the display toggle that shows it.
See Also
- Geometry Editor — the switchboard that offers this kind and hosts this editor
- StlFile Editor — the other file-backed kind, and the one this slot offers beside it