nx_bvh_nearest_candidate_t284.nx
buildroot/runtime/nx_bvh_nearest_candidate_t284.nx
about
Nearest-surface query arithmetic for existing NxBvh/NxMesh.
Independent of hair. Finite integer inputs are converted with existing IEEE owner.
Outputs xyz + squared distance; caller owns four f64 words and scratch.
A degenerate triangle falls back to its three segments, never a fabricated plane.
dependencies 2 imports · 4 importers
imports: nx_bvh.nxnx_f64_cvt.nx
imported by: nx_bvh_nearest_asset_gate_t284.nxnx_bvh_nearest_math_gate_t284.nxnx_bvh_nearest_precision_gate_t284.nxnx_bvh_nearest_query_gate_t284.nx
structs
| none |
consts
| none |
functions
| 7 | func bq_f(v:i64)->f64{return nx_i64_to_f64(v) as f64} |
| 8 | func bq_dist(px:f64,py:f64,pz:f64,x:f64,y:f64,z:f64)->f64 called by 1: bq_store |
| 11 | func bq_store(out:*f64,px:f64,py:f64,pz:f64,x:f64,y:f64,z:f64)->i64 |
| 14 | func bq_segment(out:*f64,px:f64,py:f64,pz:f64,ax:f64,ay:f64,az:f64,bx:f64,by:f64,bz:f64)->i64 |
| 21 | func bq_copy_best(out:*f64,c:*f64)->i64 |
| 25 | func bq_triangle(out:*f64,scratch:*f64,px:f64,py:f64,pz:f64, |
| 49 | func bq_box_distance(n:*NxBvhNode,px:f64,py:f64,pz:f64)->f64 |
| 56 | func bq_mesh_triangle(m:*NxMesh,ti:i64,out:*f64,scratch:*f64,px:f64,py:f64,pz:f64)->i64 |
| 67 | func nx_bvh_nearest_query(b:*NxBvh,m:*NxMesh,x:i64,y:i64,z:i64, called by 3: mainbq_run_testmain calls 5: bq_fnx_f64_to_i64nx_bvh_node_atbq_box_distancebq_mesh_triangle |