Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
dc01e59
OpenUSD export: build the file from the design directly, keeping body…
oursland Nov 19, 2026
dc4d871
File export: save Rhino (.3dm) files, written by cadmpeg from the des…
oursland Nov 19, 2026
aad09e2
OpenUSD export: hidden bodies stay hidden, a body keeps its name, and…
oursland Nov 19, 2026
7e12f09
OpenUSD export: an option writes the joints, grounded parts and each …
oursland Nov 19, 2026
46e4fe2
OpenUSD export: a render setup's image textures go into the .usdz pac…
oursland Nov 19, 2026
15c721a
OpenUSD export: the pictures shown on the model go into the .usdz pac…
oursland Nov 19, 2026
2a14754
OpenUSD export: a render setup's optics are written as glass
oursland Nov 20, 2026
4f5bd4b
OpenUSD export: an option says what the file is for, CAD interchange …
oursland Nov 20, 2026
2a036ff
OpenUSD export: a test checks each export form with OpenUSD's own val…
oursland Nov 20, 2026
03d8b04
OpenUSD export: a jointed assembly's physics is an articulation roote…
oursland Nov 20, 2026
e0723f8
OpenUSD export: gears and racks couple their joints as PhysX gear and…
oursland Nov 20, 2026
2c2ea34
File export: an opt-in preference writes STEP and IGES through cadmpe…
oursland Nov 19, 2026
6d60da5
Export review: fix the OpenUSD, Rhino and test findings
oursland Nov 21, 2026
7dd9fd9
Export: Rhino keeps to the start page and the context menu's export l…
oursland Nov 21, 2026
37a663b
Export review: say what a writer leaves out, and type OpenUSD's purpose
oursland Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -1055,8 +1055,8 @@ into THIRD-PARTY-LICENSES.txt when `main` regenerates it.

## FreeCAD, Rhino and OpenUSD library

FreeCAD `.FCStd` and Rhino `.3dm` files are read, OpenUSD files read and written, and STEP and IGES
files read when "Import with cadmpeg" is chosen, with
FreeCAD `.FCStd` files are read, Rhino `.3dm` files are read and written, OpenUSD files read and written, and STEP and IGES
files read and written when that is asked for, with
[cadmpeg](https://github.com/cadmpeg/cadmpeg) 0.6.12 (Apache-2.0), linked as the crates `cadmpeg-core`,
`cadmpeg-ir`, `cadmpeg-registry`, `cadmpeg-container`, `cadmpeg-codec-freecad`, `cadmpeg-codec-iges`,
`cadmpeg-codec-rhino`, `cadmpeg-codec-step`, `cadmpeg-codec-usd` and `cadmpeg-tessellate`
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ gethostname = "1"
# FreeCAD and Rhino import (Apache-2.0, pure Rust; native and browser builds).
# Pinned: its IR and codec APIs change between minor versions. Open formats only: no default
# features, so cadmpeg's codecs for commercial formats (f3d, sldprt, inventor, catia, creo, nx)
# and its ShapeManager/ACIS `sat` codec are not compiled in. `step` is the writer we restate through.
# and its ShapeManager/ACIS `sat` codec are not compiled in. `step` is the writer we restate through;
# `iges` writes IGES when "Export STEP and IGES with cadmpeg" is on (no IGES import route).
cadmpeg-core = "=0.6.12"
cadmpeg-ir = "=0.6.12"
cadmpeg-registry = { version = "=0.6.12", default-features = false, features = ["fcstd", "iges", "rhino", "step", "usd"] }
Expand Down
42 changes: 42 additions & 0 deletions assets/locales/pending/cadmpeg-step-iges-export.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
Comment thread
oursland marked this conversation as resolved.
Resolved
"en": {
"settings.cadmpeg_export": "Write STEP and IGES files with cadmpeg, from the design, instead of with SolidCraft's own writers",
"prefs.cadmpeg_export": "Export STEP and IGES with cadmpeg"
},
"es": {
"settings.cadmpeg_export": "Escribir los archivos STEP e IGES con cadmpeg, a partir del diseño, en lugar de con los escritores propios de SolidCraft",
"prefs.cadmpeg_export": "Exportar STEP e IGES con cadmpeg"
},
"de": {
"settings.cadmpeg_export": "STEP- und IGES-Dateien mit cadmpeg aus der Konstruktion schreiben statt mit den eigenen Schreibern von SolidCraft",
"prefs.cadmpeg_export": "STEP und IGES mit cadmpeg exportieren"
},
"fr": {
"settings.cadmpeg_export": "Écrire les fichiers STEP et IGES avec cadmpeg, à partir de la conception, plutôt qu'avec les écrivains de SolidCraft",
"prefs.cadmpeg_export": "Exporter STEP et IGES avec cadmpeg"
},
"ar": {
"settings.cadmpeg_export": "كتابة ملفات STEP وIGES باستخدام cadmpeg من التصميم، بدلاً من كاتبات SolidCraft الخاصة",
"prefs.cadmpeg_export": "تصدير STEP وIGES باستخدام cadmpeg"
},
"he": {
"settings.cadmpeg_export": "כתיבת קובצי STEP ו-IGES בעזרת cadmpeg מתוך התכן, במקום בכותבים של SolidCraft עצמה",
"prefs.cadmpeg_export": "ייצוא STEP ו-IGES בעזרת cadmpeg"
},
"ja": {
"settings.cadmpeg_export": "STEP と IGES ファイルを SolidCraft 独自のライターではなく、cadmpeg で設計から書き出す",
"prefs.cadmpeg_export": "cadmpeg で STEP と IGES をエクスポート"
},
"vi": {
"settings.cadmpeg_export": "Ghi tệp STEP và IGES bằng cadmpeg từ thiết kế, thay vì bằng bộ ghi riêng của SolidCraft",
"prefs.cadmpeg_export": "Xuất STEP và IGES bằng cadmpeg"
},
"zh": {
"settings.cadmpeg_export": "使用 cadmpeg 从设计写出 STEP 和 IGES 文件,而不是使用 SolidCraft 自己的写入器",
"prefs.cadmpeg_export": "使用 cadmpeg 导出 STEP 和 IGES"
},
"ko": {
"settings.cadmpeg_export": "SolidCraft 자체 작성기 대신 cadmpeg로 설계에서 STEP 및 IGES 파일 쓰기",
"prefs.cadmpeg_export": "cadmpeg로 STEP 및 IGES 내보내기"
}
}
3 changes: 3 additions & 0 deletions attribution/pending/cadmpeg-step-iges-export.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
| File | Author | Source | Licence |
|---|---|---|---|
| assets/locales/pending/cadmpeg-step-iges-export.json | SolidCraft contributors | Original cadmpeg STEP/IGES export setting label and translations | MIT OR Apache-2.0 |
3 changes: 3 additions & 0 deletions attribution/pending/rhino-export.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
| File | Author | Source | Licence |
|---|---|---|---|
| assets/locales/pending/rhino-export.json | SolidCraft contributors | Original Rhino export label and translations | MIT OR Apache-2.0 |
10 changes: 6 additions & 4 deletions crates/doc/src/joints_cam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,10 @@ fn cam_turned_occurrence(doc: &Document, cam: &super::Joint) -> u64 {
}
}

/// The occurrence that slides along a slider joint (the moving side of the joint).
fn slider_moving_occurrence(doc: &Document, j: &super::Joint) -> u64 {
/// The occurrence that moves on joint `j` (slides along a slider, turns on a hinge): the side
/// that is not grounded (the design itself is), else the side farther from the design through
/// the other joints, else B.
pub fn moving_occurrence(doc: &Document, j: &super::Joint) -> u64 {
let a_grounded = j.a.occurrence == 0 || doc.occurrences.iter().any(|o| o.id == j.a.occurrence && o.grounded);
let b_grounded = j.b.occurrence == 0 || doc.occurrences.iter().any(|o| o.id == j.b.occurrence && o.grounded);
if a_grounded && !b_grounded {
Expand Down Expand Up @@ -356,7 +358,7 @@ fn part_slides(doc: &Document, occ: Option<u64>, comp: Option<u64>) -> bool {
if j.suppressed || j.kind != JointKind::Slider {
return false;
}
let moving = slider_moving_occurrence(doc, j);
let moving = moving_occurrence(doc, j);
if occ.is_some_and(|o| moving == o) {
return true;
}
Expand All @@ -374,7 +376,7 @@ fn part_slides(doc: &Document, occ: Option<u64>, comp: Option<u64>) -> bool {
if cost == 0
&& other_occ != o
&& other_occ != u64::MAX
&& doc.assembly.joints.iter().any(|j| !j.suppressed && j.kind == JointKind::Slider && slider_moving_occurrence(doc, j) == other_occ)
&& doc.assembly.joints.iter().any(|j| !j.suppressed && j.kind == JointKind::Slider && moving_occurrence(doc, j) == other_occ)
{
return true;
}
Expand Down
Loading
Loading