forked from 1b-agent/opencadstudio-upstream
Point clouds: lighting, 2D visual style, real-time density
Points carry their world normal: POINTCLOUDLIGHTING lights them in the shaded visual styles (1 lit from both sides, 2 with back faces dark), from the view (POINTCLOUDLIGHTSOURCE 0) or the default lights (1). The 2D wireframe style draws no cloud points: a found cloud shows its extents and "Point clouds are not displayed in 2D visual style.", or nothing with POINTCLOUD2DVSDISPLAY 1. While the view moves only POINTCLOUDRTDENSITY per cent of the points are drawn; the points are stored in an order where every leading part samples the whole cloud. The colour map dialog lists its schemes by name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
ee0d4aedb5
commit
b69ae291bb
10 files changed
+202
-22
No files matched your search
@@ -1343,7 +1343,9 @@ pub fn view_point_cloud_color_map<'a>(
|
||||
ramp_bar(&colors, slot.gradient, state.cloud.and(state.range()), !state.elevation_tab),
|
||||
);
|
||||
|
||||
let names: Vec<String> = state.ramps.iter().map(|r| r.name.clone()).collect();
|
||||
// Listed by name, as the reference lists them.
|
||||
let mut names: Vec<String> = state.ramps.iter().map(|r| r.name.clone()).collect();
|
||||
names.sort_by_key(|n| n.to_lowercase());
|
||||
let scheme = pick_list(ramp.map(|r| r.name.clone()), names, |n: &String| n.clone())
|
||||
.on_select(|n| msg(PdfDialogMsg::MapScheme(n)))
|
||||
.text_size(12)
|
||||
@@ -1397,7 +1399,7 @@ pub fn view_point_cloud_color_map<'a>(
|
||||
if let Some((_, name)) = &state.naming {
|
||||
scheme_rows = scheme_rows.push(
|
||||
row![
|
||||
text(t!("Name")).size(11).style(muted_style).width(Length::Fixed(110.0)),
|
||||
text(t!("Scheme name")).size(11).style(muted_style).width(Length::Fixed(110.0)),
|
||||
text_input("", name)
|
||||
.on_input(|v| msg(PdfDialogMsg::MapNameInput(v)))
|
||||
.on_submit(msg(PdfDialogMsg::MapNameOk))
|
||||
|
||||
Reference in new issue
Block a user