nx_cad.nx
buildroot/runtime/nx_cad.nx
about
nx_cad.nx -- parametric solid modeling (AutoCAD / Fusion / Siemens-class), the
"sketch -> extrude" core, sovereign. Takes a 2D profile (a sketch) in the XY
plane and extrudes it +Z into a closed solid: two end caps (fan-triangulated)
plus a ring of side quads. Convex profiles only in v1 (fan triangulation);
concave/holed profiles need ear-clipping + CSG (the next CAD rungs). Output is
a pipeline-native Q14-mm NxMesh -> flows straight to nx_stl_write_mesh -> slicer,
exactly like the DCC tools. Reuses nx_mesh + nx_trig (for round profiles). No
dup: grepped, no nx_cad/extrude/revolve existed. license_tier: ORIGINAL.
dependencies 3 imports · 5 importers
imports: nx_syscalls.nxnx_mesh.nxnx_trig.nx
imported by: nx_cad_exceed.nxnx_cad_page.nxnx_cad_prims2_test.nxnx_cad_test.nxnx_mesh_qem_gate.nx
structs
| none |
consts
| none |
functions
| 20 | func nx_cad_extrude(px: *i64, py: *i64, n: i64, height_q14: i64, color: i64) -> *NxMesh called by 3: nx_cad_make_boxnx_cad_make_cylindermain calls 3: nx_mesh_allocnx_mesh_set_vertexnx_mesh_set_triangle |
| 68 | func nx_cad_make_box(wx_q14: i64, wy_q14: i64, wz_q14: i64, color: i64) -> *NxMesh |
| 84 | func nx_cad_make_cylinder(radius_q14: i64, height_q14: i64, |
| 106 | func nx_cad_make_cone(radius_q14: i64, height_q14: i64, called by 2: mainmain calls 5: nx_mesh_allocnx_cos_turn_q10nx_sin_turn_q10nx_mesh_set_vertexnx_mesh_set_triangle |