fullseye

box_sdf — 3D sdf_csg op

使い方

軸平行直方体の厳密な符号付き距離場(内側負・外側正)。

Inigo Quilez の box SDF: q = |p-center| - half_extents とし、 outside = |max(q,0)| (角/辺/面の外はユークリッド距離), inside = min(max(q_x,q_y,q_z), 0) (内側は最近面までの負値), sdf = outside + insidehalf_extents は各軸の半辺長(中心から面まで)。外側は厳密距離(角では対角、面前は 垂直距離)、内側も最近面までの厳密負距離を与える。

Raises ValueError for any half_extent<0 or malformed grid/center/half_extents。

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(sdf を入力に取れる)

sdf_to_occupancy · fuse_to_voxel · integrate · extract_surface_points · query_distance · sdf_union · sdf_intersect · sdf_subtract

同カテゴリ(sdf_csg)

grid_coords · sphere_sdf · plane_sdf · cylinder_sdf · torus_sdf · capsule_sdf · sdf_union · sdf_intersect


Provenance: sdf_ops.py — 3D operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.