code wiki / (root) / nx_mesh_edit.nx

nx_mesh_edit.nx

buildroot/runtime/nx_mesh_edit.nx

6281 B160 linesdepth 5pulls 5 transitivereach 17 importersview sourcekind librarytopic mesh
docsdependenciesstructsconstsfunctions

about

nx_mesh_edit.nx -- DCC modeling verbs on NxMesh (Blender-class), all sovereign. The mesh kernel (nx_mesh) had factories + validate but no EDITING verbs -- the operations a modeler is made of. This adds the fundamentals: rigid transform (translate / uniform scale), bounding box, triangle subdivision (the density lever a sculptor needs), and a square-pyramid factory (a non-cube solid for the model->print capstone). All operate in the pipeline-native Q14-mm units so the output flows straight to nx_stl_write_mesh -> slicer. No dup: grepped the runtime, no nx_mesh_{translate,scale,subdivide,aabb} or pyramid existed. license_tier: ORIGINAL.

dependencies 2 imports · 16 importers

nx_syscalls.nx nx_mesh.nx nx_mesh_edit.nx nx_cad_exceed.nx nx_cad_page.nx nx_cad_prims2_test.nx nx_cad_test.nx nx_csg_fillet_test.nx nx_csg_scene_gate.nx nx_csg_test.nx nx_csg_torus_test.nx nx_dcc_slice_probe.nx nx_dcc_slice_watertight_gate.nx

diagram shows first 10 each side; +0 more imports, +6 more importers in the complete lists below.

imports: nx_syscalls.nxnx_mesh.nx

imported by: nx_cad_exceed.nxnx_cad_page.nxnx_cad_prims2_test.nxnx_cad_test.nxnx_csg_fillet_test.nxnx_csg_scene_gate.nxnx_csg_test.nxnx_csg_torus_test.nxnx_dcc_slice_probe.nxnx_dcc_slice_watertight_gate.nxnx_dcc_to_print_test.nxnx_mesh_edit_test.nxnx_mesh_sculpt.nxnx_mesh_sculpt_test.nxnx_slice_layer_probe.nxnx_underridge_cleaner_gate.nx

structs

none

consts

none

functions

18func nx_mesh_translate(m: *NxMesh, dx: i64, dy: i64, dz: i64) -> i64
32func nx_mesh_scale_rat(m: *NxMesh, num: i64, den: i64) -> i64
called by 1: main
50func nx_mesh_aabb(m: *NxMesh, out6: *i64) -> i64
89func nx_mesh_subdivide(m: *NxMesh) -> *NxMesh
141func nx_mesh_make_pyramid(half_q14: i64, height_q14: i64, color: i64) -> *NxMesh