nx_step_geom.nx
buildroot/runtime/nx_step_geom.nx
about
nx_step_geom.nx -- REAL GEOMETRY extraction from a STEP file (cadtwin P3a: structure -> actual coordinates).
nx_step_parse gave the assembly tree/BOM; this pulls the model's real 3D geometry: parse every CARTESIAN_POINT
entity's coordinate tuple (STEP reals like -10., 0.E+000, 2.5) into a fixed-point point cloud (fx256). That
cloud is real model geometry -- feeds the bounding box, and directly into nx_partid (shape descriptor needs
only vertices). Composes nx_step_parse. First rung toward face tessellation (planar/B-spline = the next rungs).
license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_step_parse.nx
imported by: nx_step_geom_gate.nxnx_step_tess.nx
structs
| none |
consts
| 9 | const SG_FX: i64 = 256 |
functions
| 11 | func sg_isdigit(c: i64) -> i64 { if c >= 48 { if c <= 57 { return 1 } } return 0 } |
| 13 | func sg_is_numstart(c: i64) -> i64 |
| 21 | func sg_skip_to_num(buf: *u8, v0: i64, e: i64) -> i64 |
| 32 | func sg_parse_real(buf: *u8, p: i64, e: i64, out_val: *i64) -> i64 |
| 72 | func sg_point_tuple(st: *i64, idx: i64, out3: *i64) -> i64 |
| 88 | func sg_extract_points(st: *i64, out_pts: *i64, maxp: i64) -> i64 |