sdf_csg opcoordgrid → sdfimport fullseye as fs; fs.ledger.box_sdf(grid, center, half_extents) (実装を直接呼ぶなら import sdf_ops; sdf_ops.box_sdf(grid, center, half_extents)、台帳から引くなら ops3d.get("box_sdf"))軸平行直方体の厳密な符号付き距離場(内側負・外側正)。
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 + inside。
half_extents は各軸の半辺長(中心から面まで)。外側は厳密距離(角では対角、面前は
垂直距離)、内側も最近面までの厳密負距離を与える。
Raises ValueError for any half_extent<0 or malformed grid/center/half_extents。
py -3.11 examples_3d/gear_metrology.pypy -3.11 examples_3d/render_beauty.pypy -3.11 examples_3d/sdf_csg.pysdf を入力に取れる)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.