Retain native PRESSPULL surface data across CAD formats

This commit is contained in:
ramox81 committed 2026-09-04 15:53:15 +03:00
1 parent 43c7992967
commit c9c5b35d29
3 files changed
+7 -7

No files matched your search

Generated
+2 -2
View File
@@ -72,7 +72,7 @@ checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
[[package]] [[package]]
name = "acadrust" name = "acadrust"
version = "0.5.4" version = "0.5.4"
source = "git+https://git@github.com/HakanSeven12/cadcodec.git?rev=580678d28f11ccbefbce3f9d3390d28ef4bbde80#580678d28f11ccbefbce3f9d3390d28ef4bbde80" source = "git+https://git@github.com/HakanSeven12/cadcodec.git?rev=a362d10de18bd96d50642714096eb792a9c58ba6#a362d10de18bd96d50642714096eb792a9c58ba6"
dependencies = [ dependencies = [
"ahash 0.8.12", "ahash 0.8.12",
"anyhow", "anyhow",
@@ -878,7 +878,7 @@ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
[[package]] [[package]]
name = "cadkernel" name = "cadkernel"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/HakanSeven12/cadkernel.git?rev=c7b9fc0425224aaa76e903ae8158f20241d0eaa0#c7b9fc0425224aaa76e903ae8158f20241d0eaa0" source = "git+https://github.com/HakanSeven12/cadkernel.git?rev=c484a8ce30369ef503e7639be3071e92201eb76a#c484a8ce30369ef503e7639be3071e92201eb76a"
dependencies = [ dependencies = [
"acadrust", "acadrust",
"cavalier_contours", "cavalier_contours",
+3 -3
View File
@@ -27,8 +27,8 @@ glam = { version = "0.33", features = ["bytemuck"] }
rfd = "0.17" rfd = "0.17"
clap = { version = "4", features = ["derive"] } clap = { version = "4", features = ["derive"] }
env_logger = "0.11" env_logger = "0.11"
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "580678d28f11ccbefbce3f9d3390d28ef4bbde80", features = ["serde"] } acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "a362d10de18bd96d50642714096eb792a9c58ba6", features = ["serde"] }
cadkernel = { git = "https://github.com/HakanSeven12/cadkernel.git", rev = "c7b9fc0425224aaa76e903ae8158f20241d0eaa0", features = ["acis", "offset"] } cadkernel = { git = "https://github.com/HakanSeven12/cadkernel.git", rev = "c484a8ce30369ef503e7639be3071e92201eb76a", features = ["acis", "offset"] }
dwg-thumbnailer = { path = "crates/dwg-thumbnailer" } dwg-thumbnailer = { path = "crates/dwg-thumbnailer" }
flate2 = "1" flate2 = "1"
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "bmp", "tiff"] } image = { version = "0.25", default-features = false, features = ["png", "jpeg", "bmp", "tiff"] }
@@ -61,7 +61,7 @@ iced_core = { git = "https://github.com/iced-rs/iced.git", rev = "23604ff22ab0aa
iced_widget = { git = "https://github.com/iced-rs/iced.git", rev = "23604ff22ab0aad9e00b9327cb7b8546ed84db39" } iced_widget = { git = "https://github.com/iced-rs/iced.git", rev = "23604ff22ab0aad9e00b9327cb7b8546ed84db39" }
[patch."https://github.com/HakanSeven12/cadcodec.git"] [patch."https://github.com/HakanSeven12/cadcodec.git"]
acadrust = { git = "https://git@github.com/HakanSeven12/cadcodec.git", rev = "580678d28f11ccbefbce3f9d3390d28ef4bbde80" } acadrust = { git = "https://git@github.com/HakanSeven12/cadcodec.git", rev = "a362d10de18bd96d50642714096eb792a9c58ba6" }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
+2 -2
View File
@@ -354,8 +354,8 @@ pub fn preview_wires(target: &PresspullTarget, distance: f64, color: [f32; 4], i
}; };
let Some((plane, loops, direction)) = geometry else { return Vec::new(); }; let Some((plane, loops, direction)) = geometry else { return Vec::new(); };
let mut wires = Vec::new(); let mut wires = Vec::new();
// Each loop is a lateral sheet. Calling extrude_region here would perform // Each loop is a lateral sheet. This wire-only overlay does not need the
// Boolean differences for holes even though this overlay only needs wires. // planar caps or complete solid topology of extrude_region.
for ring in loops { for ring in loops {
let ring = brep::extrusion_profile_pieces(&ring); let ring = brep::extrusion_profile_pieces(&ring);
let Some(body) = brep::extrude_surface(plane, &ring, direction) else { continue; }; let Some(body) = brep::extrude_surface(plane, &ring, direction) else { continue; };