grid_coords — 3D sdf_csg op

데이터 종류: 없음coordgrid(인자만으로 정해지는 연산자 —— 이미지나 데이터 입력을 받지 않습니다)

호출: import fullseye as fs; fs.ledger.grid_coords(bounds, res)(구현을 직접 호출하려면 import sdf_ops; sdf_ops.grid_coords(bounds, res), 원장에서 가져오려면 ops3d.get("grid_coords"))

원장 경유의 반환값: fullseye.ledger.grid_coords(...) 는 **선언된 out 형 coordgrid 의 값만** 반환합니다(실제 함수는 보조 정보도 반환). 버려진 쪽이 필요하면 fullseye.ledger.grid_coords.raw(...) 를 쓰거나 sdf_ops.grid_coords 를 직접 호출하세요.

사용법

CSG 평가용 복셀 중심 좌표 격자를 만듭니다(occupancy 와 같은 격자 규약).

> 아래 상세 설명은 원문입니다 —— 요약과 제목은 번역되어 있습니다.

`bounds=((xmin,xmax),(ymin,ymax),(zmin,zmax))res` は各軸のボクセル数(スカラ=立方

or 長さ3)。voxel `i の中心は world lo + (i+0.5)/res * span(occupancy.query_distance`

の `c=(q-lo)/span*res-0.5` と整合 = 中心アライン)。返り値は

`coords shape (nx,ny,nz,3)extent=(xmin,xmax,ymin,ymax,zmin,zmax)`。

こうして作った座標に `sphere_sdf/box_sdf を評価し CSG 合成すれば、recon3d` の

marching cubes や `occupancy` のゼロ交差抽出へそのまま渡せる。

Raises ValueError for degenerate bounds or res<=0。

참고(샘플 데이터·문헌)

• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.

• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.

실행 가능한 예제(이 연산자를 실제로 호출하는 검증된 샘플)

gear_metrologypy -3.11 examples_3d/gear_metrology.py

molecule_atom_countpy -3.11 examples_3d/molecule_atom_count.py

procedural_handpy -3.11 examples_3d/procedural_hand.py

render_beautypy -3.11 examples_3d/render_beauty.py

sdf_csgpy -3.11 examples_3d/sdf_csg.py

sfm_reconpy -3.11 examples_3d/sfm_recon.py

타입이 이어지는 다음 연산자(coordgrid 를 입력으로 받는 것)

fuse_to_voxel · sphere_sdf · box_sdf · plane_sdf · cylinder_sdf · torus_sdf · capsule_sdf

같은 카테고리(sdf_csg)

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


*Provenance: sdf_ops.py — 3D 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*

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