fullseye

sdf_intersect — 3D sdf_csg op

使い方

2 SDF の積集合 A∩B = 要素ごとの max(a, b)(両方の内側でのみ内側)。

ゼロ等値面は両境界の共通部分。外側で厳密 SDF、内側は保守的下界。

計算: np.maximum(np.asarray(a, float64), np.asarray(b, float64))。要素ごとの max なので、ある点が A∩B の内側(負)になるのは a < 0 かつ b < 0 のときだけ。 shape はブロードキャスト整合していればよく(不整合なら numpy の ValueError)、 それ以外の検査はしない。NaN は伝播、±inf は厳密に伝播(max(a, -inf) = a)。

入力: 同一グリッド上で評価した 2 つの SDF(sphere_sdf / box_sdf / esdf の出力など、内側負・外側正)。距離の単位は入力と同じ。

返り値: ブロードキャスト後の shape の float64。<= 0 が A∩B の占有。

注意:

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

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

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

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

同カテゴリ(sdf_csg)

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


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

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