Sprint 14~22 — egui 리본 UI + OcctKernel B-rep + 가로보/신축이음 + 선형 좌표 + USD 익스포트 + WASM + CI/CD + 테스트 4층
Sprint 14: egui TopBottomPanel 리본 + CollapsingHeader SidePanel (상부구조·추가부재·선형·프로젝트) Sprint 15: IncrementalDb 전 Feature 타입 확장 (girder→7종), dirty-tracking 20 unit tests Sprint 16: Gitea + GitHub Actions CI/CD (check/test/clippy/fmt + 멀티플랫폼 릴리스) Sprint 17: AlignmentTransform + AlignmentScene — 선형 국소 프레임 → 세계 좌표 변환 Sprint 18: OcctKernel 교각(16각형 기둥+코핑) + 교대(흉벽+푸팅+날개벽) B-rep Sprint 19: CrossBeamIR + ExpansionJointIR — IR/DSL/kernel/scene 전 계층, sweep_profile_flat_x Sprint 20: 테스트 4층 — Layer1 insta 스냅샷(7종), Layer2 기하 불변량(19), Layer3 두-커널(7), Layer4 proptest(7) — 61 tests pass Sprint 21: cimery-usd PureRustKernel 실제 기하 변환 + BridgeExporter 증분 캐시 Sprint 22: viewer wasm feature + wasm-bindgen/web-sys + GitHub Actions Cloudflare Pages 배포 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,47 +13,63 @@ struct SectionTypeStr(String);
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct ProjectFile {
|
||||
pub version: u32,
|
||||
pub name: String,
|
||||
pub span_m: f64,
|
||||
pub girder_count: usize,
|
||||
pub girder_spacing: f32,
|
||||
pub girder_height: f32,
|
||||
pub slab_thickness: f32,
|
||||
pub section_type: String, // "psc_i" | "steel_box"
|
||||
pub show_alignment: bool,
|
||||
pub version: u32,
|
||||
pub name: String,
|
||||
pub span_m: f64,
|
||||
pub girder_count: usize,
|
||||
pub girder_spacing: f32,
|
||||
pub girder_height: f32,
|
||||
pub slab_thickness: f32,
|
||||
pub section_type: String, // "psc_i" | "steel_box"
|
||||
pub show_alignment: bool,
|
||||
/// Sprint 19
|
||||
#[serde(default = "default_true")]
|
||||
pub show_cross_beams: bool,
|
||||
#[serde(default = "default_cross_beam_interval")]
|
||||
pub cross_beam_interval_m: f64,
|
||||
#[serde(default = "default_true")]
|
||||
pub show_expansion_joints: bool,
|
||||
}
|
||||
|
||||
fn default_true() -> bool { true }
|
||||
fn default_cross_beam_interval() -> f64 { 5.0 }
|
||||
|
||||
impl ProjectFile {
|
||||
pub fn from_params(name: &str, p: &SceneParams) -> Self {
|
||||
Self {
|
||||
version: 1,
|
||||
name: name.to_owned(),
|
||||
span_m: p.span_m,
|
||||
girder_count: p.girder_count,
|
||||
girder_spacing: p.girder_spacing,
|
||||
girder_height: p.girder_height,
|
||||
slab_thickness: p.slab_thickness,
|
||||
section_type: match p.section_type {
|
||||
version: 1,
|
||||
name: name.to_owned(),
|
||||
span_m: p.span_m,
|
||||
girder_count: p.girder_count,
|
||||
girder_spacing: p.girder_spacing,
|
||||
girder_height: p.girder_height,
|
||||
slab_thickness: p.slab_thickness,
|
||||
section_type: match p.section_type {
|
||||
GirderSectionType::PscI => "psc_i".into(),
|
||||
GirderSectionType::SteelBox => "steel_box".into(),
|
||||
},
|
||||
show_alignment: p.show_alignment,
|
||||
show_alignment: p.show_alignment,
|
||||
show_cross_beams: p.show_cross_beams,
|
||||
cross_beam_interval_m: p.cross_beam_interval_m,
|
||||
show_expansion_joints: p.show_expansion_joints,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn to_params(&self) -> SceneParams {
|
||||
SceneParams {
|
||||
span_m: self.span_m,
|
||||
girder_count: self.girder_count,
|
||||
girder_spacing: self.girder_spacing,
|
||||
girder_height: self.girder_height,
|
||||
slab_thickness: self.slab_thickness,
|
||||
section_type: match self.section_type.as_str() {
|
||||
span_m: self.span_m,
|
||||
girder_count: self.girder_count,
|
||||
girder_spacing: self.girder_spacing,
|
||||
girder_height: self.girder_height,
|
||||
slab_thickness: self.slab_thickness,
|
||||
section_type: match self.section_type.as_str() {
|
||||
"steel_box" => GirderSectionType::SteelBox,
|
||||
_ => GirderSectionType::PscI,
|
||||
},
|
||||
show_alignment: self.show_alignment,
|
||||
show_alignment: self.show_alignment,
|
||||
show_cross_beams: self.show_cross_beams,
|
||||
cross_beam_interval_m: self.cross_beam_interval_m,
|
||||
show_expansion_joints: self.show_expansion_joints,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user