API Reference GE Extensions editor gen Gen Mesh Explorer Experimental 3D mesh and JBeam explorer for inspecting vehicle geometry, beams, and materials.
Experimental 3D mesh and JBeam explorer for inspecting vehicle geometry, beams, and materials.
The exp_meshexplorer module provides a comprehensive mesh/JBeam inspection tool within the gen editor. It loads DAE (Collada) and JBeam files, displays mesh geometry with LOD levels, allows beam/node selection, shows material properties, and supports parameter editing for beams (spring, damping, deformation, strength).
Field Type Description W.outtable Output data W.uitable UI state including surf_over for surface hover W.ddirtytable Dirty flags for parameter changes
Function Description W.jpartSort(ajpart, col, dir)Sorts JBeam parts by name or beam count W.partPin(cpart)Pins geometry entries for selected JBeam parts forParam()Computes average beam parameters for current selection
Field Description alodLOD level array dgeoGeometry dictionary
Field Description abeampickCurrently selected beams
Parameter Description strengthBeam break strength deformDeformation threshold springSpring constant dampDamping coefficient
The module includes a built-in file browser (fsnode) for navigating:
/art/shapes/ - 3D model files
Vehicle JBeam directories
DAE (Collada) mesh files
Module Path Mesh /lua/ge/extensions/editor/gen/meshRender /lua/ge/extensions/editor/gen/renderUtils /lua/ge/extensions/editor/gen/utilsUI Lib /lua/ge/extensions/editor/gen/lib/uiAI Lib /lua/ge/extensions/editor/gen/lib/aiJBeam Lib /lua/ge/extensions/editor/gen/lib/jbeamVehicles core/vehicles
-- The mesh explorer is launched from the gen editor menu.
-- It provides interactive inspection of vehicle meshes and JBeam data.
-- Sorting JBeam parts by beam count:
W. jpartSort (ajpart, 4 , 1 ) -- column 4 (beams), ascending
-- Pinning geometry for selected parts:
W. partPin ( "chassis" )
Function Signature Description W.jpartSort(ajpart, col, dir)(table, number, number)Sorts JBeam parts array by column (2=name, 4=beam count) and direction (1=asc, 2=desc) W.partPin(cpart)(string?)Populates ageopin with geometry keys for selected/matching JBeam parts W.up(ind, lbl)(string, string)Initializes mesh explorer: loads favorites, registers window, loads materials, populates model list, restores last state W.dir2list(path)(string?) → table, tableLists directories and .dae files at given path (or current fsnode.path). Returns (dirs, files) with favorite flags W.onVal(key, val, mute)(string, any?, boolean?)Main event handler for all UI interactions (file nav, model select, LOD, geo, beams, groups, params, etc.) W.update()()Per-frame update: handles mouse hover/click for mesh selection, camera targeting, keyboard shortcuts