forked from 1b-agent/opencadstudio-upstream
Point clouds: drawn from their scans, placed, cropped and attached as the reference does
Scans (.rcs) and projects (.rcp) are read and their points drawn as screen-sized dots, coloured by the cloud's stylization. The cloud's placement carries its scale and rotation; its extents and crops stay in the scan's coordinates. A missing scan shows the extents with the saved path. -POINTCLOUDATTACH / POINTCLOUDATTACH, POINTCLOUDCROP and the POINTCLOUD* settings follow the reference's prompts and messages, the Properties list is the reference's, and a locked cloud is left alone by edits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
07f25f4bca
commit
e9c4e501db
58 files changed
+2711
-237
No files matched your search
@@ -615,6 +615,15 @@ impl OpenCADStudio {
|
||||
crate::app::commands::pdf_import::PdfImportSource::File(import),
|
||||
);
|
||||
}
|
||||
CmdResult::AttachPointCloud { placement, message } => {
|
||||
let label = self.history_label_from_active_cmd(i, "POINTCLOUDATTACH");
|
||||
self.tabs[i].scene.clear_preview_wire();
|
||||
self.tabs[i].active_cmd = None;
|
||||
self.tabs[i].snap_result = None;
|
||||
self.command_line.push_output(&message);
|
||||
self.attach_point_cloud(i, label, placement);
|
||||
self.restore_pre_cmd_tangent();
|
||||
}
|
||||
CmdResult::AttachPdfPages { kind, path, pages } => {
|
||||
let label = self.history_label_from_active_cmd(i, "PDFATTACH");
|
||||
self.tabs[i].scene.clear_preview_wire();
|
||||
@@ -1094,7 +1103,9 @@ impl OpenCADStudio {
|
||||
}
|
||||
|
||||
fn handle_cancel_with_message(&mut self, message: String) -> Task<Message> {
|
||||
self.command_line.push_error(&message);
|
||||
for line in message.lines() {
|
||||
self.command_line.push_error(line);
|
||||
}
|
||||
self.apply_cmd_result(CmdResult::Cancel)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user