OcctKernel 구현 — PSC-I B-rep sweep + BRepMesh 테셀레이션

- cimery-kernel/src/occt.rs: OcctKernel (--features occt 전용)
  - Workplane::xy().sketch()로 PSC-I 14-vertex 2D 프로파일 생성
  - Face::extrude(DVec3) → Solid (OCCT B-rep)
  - Mesher::try_new() + mesh() → 테셀레이션
  - cimery Mesh로 변환 (vertices/normals/indices)
  - 기타 Feature: PureRustKernel 위임
- kernel/Cargo.toml: glam 0.24 (opencascade-rs 동일 버전)
- cargo build --features occt 빌드 확인 완료

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
minsung
2026-04-14 19:37:51 +09:00
parent bdacea5253
commit 0bc3f12688
4 changed files with 187 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ edition.workspace = true
# Enable the full OpenCASCADE kernel backend.
# Requires OCCT installed/compiled — see cimery/CLAUDE.md for setup.
# Build: cargo build -p cimery-kernel --features occt
occt = ["dep:opencascade"]
occt = ["dep:opencascade", "dep:glam"]
[dependencies]
cimery-core = { workspace = true }
@@ -16,6 +16,7 @@ thiserror = { workspace = true }
log = { workspace = true }
# opencascade is OPTIONAL — only compiled with --features occt
opencascade = { git = "https://github.com/bschwind/opencascade-rs", optional = true }
glam = { version = "0.24", optional = true } # must match opencascade-rs glam version
[dev-dependencies]
cimery-core = { workspace = true }