forked from 1b-agent/opencadstudio-upstream
feat: node graph overlay; move to opencadcodec/opencadkernel/opencadgraph
The codec and kernel repositories and crates are renamed opencadcodec and opencadkernel. Inside OCS they are depended on under short keys, so code reads `codec::`, `kernel::` and the new `graph::` (opencadgraph, the node graph engine). File-format and protocol spellings stay as they were: the ACIS product id `acadrust`, the ACADRUST_* switches and the plugin version keys `acadrust_version` / `acadrust_source`. A button left of MCP on the command line opens a translucent node graph over the viewport, with a palette of object, input, math, logic, list, text and geometry nodes added by click or drag. An object node owns drawing entities and its rows are the Properties panel's own rows for them: the single-object page is extracted from refresh_properties as entity_property_sections, values use the control protocol's property_json, and writes go through set_property_value with a property target override, so the panel, MCP and the graph share one read/write path. A list reaching an object row makes one entity per element. Each graph action is one undo step; the canvas pans and zooms. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
56c04408d6
commit
f537aff75c
430 files changed
+9925
-8540
No files matched your search
@@ -334,7 +334,7 @@ impl Camera {
|
||||
(origin, forward)
|
||||
}
|
||||
};
|
||||
cadkernel::space::plane::intersect_line_plane(
|
||||
kernel::space::plane::intersect_line_plane(
|
||||
(ray_origin - (plane_point - eye)).to_array(),
|
||||
ray_dir.to_array(),
|
||||
[0.0; 3],
|
||||
@@ -396,8 +396,8 @@ impl Camera {
|
||||
/// Carry the camera through a rigid model-space transform. BEDIT uses this
|
||||
/// when a transient UCS is baked into block-local geometry: the contents
|
||||
/// retain their on-screen framing while their canonical coordinates change.
|
||||
pub fn apply_rigid_transform(&mut self, transform: &acadrust::types::Transform) {
|
||||
let point = acadrust::types::Vector3::new(
|
||||
pub fn apply_rigid_transform(&mut self, transform: &codec::types::Transform) {
|
||||
let point = codec::types::Vector3::new(
|
||||
self.target.x,
|
||||
self.target.y,
|
||||
self.target.z,
|
||||
@@ -428,7 +428,7 @@ impl Camera {
|
||||
let mut new_min = DVec3::splat(f64::INFINITY);
|
||||
let mut new_max = DVec3::splat(f64::NEG_INFINITY);
|
||||
for corner in corners {
|
||||
let transformed = transform.apply(acadrust::types::Vector3::new(
|
||||
let transformed = transform.apply(codec::types::Vector3::new(
|
||||
corner.x,
|
||||
corner.y,
|
||||
corner.z,
|
||||
|
||||
Reference in new issue
Block a user