code wiki / (root) / nx_step_geom.nx

nx_step_geom.nx

buildroot/runtime/nx_step_geom.nx

4263 B102 linesdepth 3pulls 3 transitivereach 15 importersview sourcekind librarytopic step
docsdependenciesstructsconstsfunctions

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

nx_step_parse.nx nx_step_geom.nx nx_step_geom_gate.nx nx_step_tess.nx

imports: nx_step_parse.nx

imported by: nx_step_geom_gate.nxnx_step_tess.nx

structs

none

consts

9const SG_FX: i64 = 256

functions

11func sg_isdigit(c: i64) -> i64 { if c >= 48 { if c <= 57 { return 1 } } return 0 }
13func sg_is_numstart(c: i64) -> i64
called by 1: sg_skip_to_num calls 1: sg_isdigit
21func sg_skip_to_num(buf: *u8, v0: i64, e: i64) -> i64
32func sg_parse_real(buf: *u8, p: i64, e: i64, out_val: *i64) -> i64
called by 2: sg_point_tuplesgc_parse calls 1: sg_isdigit
72func sg_point_tuple(st: *i64, idx: i64, out3: *i64) -> i64
88func sg_extract_points(st: *i64, out_pts: *i64, maxp: i64) -> i64
called by 1: main calls 2: sp_name_issg_point_tuple