code wiki / (root) / nx_bvh_nearest_candidate_t284.nx

nx_bvh_nearest_candidate_t284.nx

buildroot/runtime/nx_bvh_nearest_candidate_t284.nx

5001 B109 linesdepth 7pulls 9 transitivereach 4 importersview sourcekind librarytopic bvh
docsdependenciesstructsconstsfunctions

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

nx_bvh.nx nx_f64_cvt.nx nx_bvh_nearest_candidate_t284. nx_bvh_nearest_asset_gate_t284.nx nx_bvh_nearest_math_gate_t284.nx nx_bvh_nearest_precision_gate_t284 nx_bvh_nearest_query_gate_t284.nx

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

7func bq_f(v:i64)->f64{return nx_i64_to_f64(v) as f64}
8func bq_dist(px:f64,py:f64,pz:f64,x:f64,y:f64,z:f64)->f64
called by 1: bq_store
11func bq_store(out:*f64,px:f64,py:f64,pz:f64,x:f64,y:f64,z:f64)->i64
called by 2: bq_segmentbq_triangle calls 1: bq_dist
14func bq_segment(out:*f64,px:f64,py:f64,pz:f64,ax:f64,ay:f64,az:f64,bx:f64,by:f64,bz:f64)->i64
called by 1: bq_triangle calls 1: bq_store
21func bq_copy_best(out:*f64,c:*f64)->i64
called by 2: mainbq_triangle
25func bq_triangle(out:*f64,scratch:*f64,px:f64,py:f64,pz:f64,
49func bq_box_distance(n:*NxBvhNode,px:f64,py:f64,pz:f64)->f64
called by 1: nx_bvh_nearest_query calls 1: bq_f
56func bq_mesh_triangle(m:*NxMesh,ti:i64,out:*f64,scratch:*f64,px:f64,py:f64,pz:f64)->i64
67func nx_bvh_nearest_query(b:*NxBvh,m:*NxMesh,x:i64,y:i64,z:i64,