forked from 1b-agent/opencadstudio-upstream
fix(extrude): history records give the profile frame (group 295)
The reference cannot open a drawing whose extrusion history has a taper and leaves the profile frame to be computed (ErrorStatus 53). Extrusion and press-pull records now set group 295, as the reference writes them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
7d008c4914
commit
5862fe7824
2 files changed
+6
No files matched your search
@@ -33,6 +33,8 @@ fn extrusion_history(entity: &EntityType, direction: DVec3, anchor: DVec3) -> Op
|
||||
sweep_entity_transform: glam::DMat4::IDENTITY.to_cols_array(),
|
||||
path_entity_transform: glam::DMat4::IDENTITY.to_cols_array(),
|
||||
reference_point: Vector3::new(anchor.x, anchor.y, anchor.z),
|
||||
// Group 295: the profile frame is given (see extrusion_history).
|
||||
flags_294_296: [false, true, false],
|
||||
..SolidHistorySweep::default()
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -719,6 +719,10 @@ pub fn extrusion_history(
|
||||
reference_point[1],
|
||||
reference_point[2],
|
||||
),
|
||||
// Group 295: the profile frame is given, as the reference records
|
||||
// it. Left to be computed, the reference cannot open a drawing with
|
||||
// a tapered extrusion (ErrorStatus 53).
|
||||
flags_294_296: [false, true, false],
|
||||
..SolidHistorySweep::default()
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user