forked from 1b-agent/opencadstudio-upstream
Sweep history records in the reference layout; kernel and codec revs
New sweep records store the source and placed profile frames, the default mitred joint, groups 292-294 and a 3D polyline path as a wire body, so the reference re-evaluates them. Builds against the sweep history codec and kernel revisions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2dfa9f3f2a
commit
632540efff
6 files changed
+61
-13
No files matched your search
@@ -486,6 +486,8 @@ impl OpenCADStudio {
|
||||
.iter()
|
||||
.map(|(_, entity)| entity.clone())
|
||||
.collect::<Vec<_>>();
|
||||
// Group 294: a base point the user picked.
|
||||
let picked_base = options.base_point.is_some();
|
||||
let options = sweep_model::sweep_selection_options(&selection, options);
|
||||
let pending = if profiles.is_empty() {
|
||||
None
|
||||
@@ -496,7 +498,8 @@ impl OpenCADStudio {
|
||||
let mut consumed = Vec::new();
|
||||
for (handle, profile) in profiles {
|
||||
let result = path.as_ref().zip(options).and_then(|(path, options)| {
|
||||
let record = sweep_model::sweep_record(&profile, path, options)?;
|
||||
let mut record = sweep_model::sweep_record(&profile, path, options)?;
|
||||
record.flags_294_296[0] |= picked_base;
|
||||
let (_, _, closed) = kernel::acis::sweep_profile_geometry(
|
||||
record.sweep_entity.as_ref()?,
|
||||
record.sweep_entity_transform,
|
||||
|
||||
Reference in new issue
Block a user