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는 각 축의 복셀 수(스칼라=정육면체또는 길이 3). voxel i의 중심은 world lo + (i+0.5)/res * span(occupancy.query_distance 의 c=(q-lo)/span*res-0.5와 정합 = 중심 정렬). 반환값은 shape (nx,ny,nz,3)의 coords와 extent=(xmin,xmax,ymin,ymax,zmin,zmax).

이렇게 만든 좌표에서 sphere_sdf/box_sdf를 평가하고 CSG 합성하면 recon3d의 marching cubes나 occupancy의 영교차 추출에 그대로 넘길 수 있다.

bounds가 퇴화했거나 res<=0이면 ValueError를 낸다.

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

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

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

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

• gear_metrology — py -3.11 examples_3d/gear_metrology.py

• molecule_atom_count — py -3.11 examples_3d/molecule_atom_count.py

• procedural_hand — py -3.11 examples_3d/procedural_hand.py

• render_beauty — py -3.11 examples_3d/render_beauty.py

• sdf_csg — py -3.11 examples_3d/sdf_csg.py

• sfm_recon — py -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.