forked from 1b-agent/opencadstudio-upstream
PDF underlays: attach dialog with pages, underlay tab, layers, import settings and file import, unload on the definition
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0c50013ca7
commit
3f6bdf8c59
57 files changed
+5049
-365
No files matched your search
@@ -1285,6 +1285,20 @@ fn tessellate_entity_inner(
|
||||
b.set_fixed_screen_width(2.0);
|
||||
}
|
||||
}
|
||||
// PDF underlay geometry: a hidden, unplotted wire that object snaps
|
||||
// (nearest, intersection, perpendicular) find, beside the page frame.
|
||||
if let EntityType::Underlay(underlay) = e {
|
||||
let geometry = crate::scene::model::pdf_vector::underlay_snap_geometry(underlay, document);
|
||||
if !geometry.is_empty() {
|
||||
let (points, points_low) = convert::tessellate::points_to_ds(geometry);
|
||||
let mut wire = WireModel::solid(h.value().to_string(), points, entity_color, sel);
|
||||
wire.points_low = points_low;
|
||||
wire.display_visible = false;
|
||||
wire.plot_visible = false;
|
||||
set_wire_aabb(&mut wire, aabb);
|
||||
bases.push(wire);
|
||||
}
|
||||
}
|
||||
|
||||
// A hidden mask frame remains selectable and appears while selected, but
|
||||
// contributes no visible line work during normal display. The interior
|
||||
|
||||
Reference in new issue
Block a user