[G2] Ansicht: Stirnflächen auch an verschnittenen Dächern, Option „An Dach anschliessen“ im Wand-Abschnitt, Golden der Ansicht nachgeführt
This commit is contained in:
3 files changed
+73
-24
No files matched your search
@@ -167,7 +167,20 @@ fn cull_under_roofs(p: &Project, frame: &[f64; 9], walls: &[RWall], faces: &mut
|
||||
for q in g.planes.iter().flatten() {
|
||||
b = [b[0].min(q[0]), b[1].min(q[1]), b[2].max(q[0]), b[3].max(q[1])];
|
||||
}
|
||||
RoofSheet { top, under, fascia: fascia_quads(&g.planes, total), bounds: b }
|
||||
// Stirnflächen, die in einem anderen Dach stecken (Kehlen verschnittener Dächer), verdecken nicht.
|
||||
let others: Vec<Vec<[f64; 3]>> = p
|
||||
.roofs
|
||||
.as_deref()
|
||||
.unwrap_or(&[])
|
||||
.iter()
|
||||
.filter(|o| o.id != r.id && o.floor_id == r.floor_id)
|
||||
.flat_map(|o| crate::roof::roof_geometry(&o.params(), p.roof_base_elevation(o)).planes)
|
||||
.collect();
|
||||
let fascia = fascia_quads(&g.planes, total)
|
||||
.into_iter()
|
||||
.filter(|q| !others.iter().any(|o| crate::dormer::point_in_xy((q[0][0] + q[1][0]) / 2.0, (q[0][1] + q[1][1]) / 2.0, o)))
|
||||
.collect();
|
||||
RoofSheet { top, under, fascia, bounds: b }
|
||||
})
|
||||
.filter(|s| s.top.len() == s.under.len() && !s.top.is_empty())
|
||||
.collect();
|
||||
@@ -430,7 +443,29 @@ fn collect_roof_faces(p: &Project, frame: &[f64; 9], walls: &[RWall]) -> Result<
|
||||
.collect()
|
||||
};
|
||||
// Wie die übrigen Dächer: Oberfläche der Eindeckung (Dach + Gaubendächer), dazu die Gaubenwände.
|
||||
roofs.push(RoofIn { id: roof.id.clone(), fill, planes: crate::roof_assembly::planar_faces(&solids.top, &front(&solids.top)), gables: if floors.contains(roof.floor_id.as_str()) { Vec::new() } else { g.gables.clone() } });
|
||||
// Wände reichen ans Dach ([G2]): Stirnflächen der Ränder, die nicht in einem anderen Dach stecken.
|
||||
let gables = if floors.contains(roof.floor_id.as_str()) {
|
||||
let total: f64 = p.roof_layers(roof).iter().map(|l| l.thickness.max(0.0)).sum();
|
||||
let others: Vec<Vec<[f64; 3]>> = p
|
||||
.roofs
|
||||
.as_deref()
|
||||
.unwrap_or(&[])
|
||||
.iter()
|
||||
.filter(|o| o.id != roof.id && o.floor_id == roof.floor_id)
|
||||
.flat_map(|o| crate::roof::roof_geometry(&o.params(), p.roof_base_elevation(o)).planes)
|
||||
.collect();
|
||||
fascia_quads(&g.planes, total)
|
||||
.into_iter()
|
||||
.filter(|q| {
|
||||
let (mx, my) = ((q[0][0] + q[1][0]) / 2.0, (q[0][1] + q[1][1]) / 2.0);
|
||||
!others.iter().any(|o| crate::dormer::point_in_xy(mx, my, o))
|
||||
})
|
||||
.map(|q| q.to_vec())
|
||||
.collect()
|
||||
} else {
|
||||
g.gables.clone()
|
||||
};
|
||||
roofs.push(RoofIn { id: roof.id.clone(), fill, planes: crate::roof_assembly::planar_faces(&solids.top, &front(&solids.top)), gables });
|
||||
let wall_comp = solids.parts.iter().find(|pt| pt.role == crate::roof_assembly::Role::DormerWall && pt.layer == 0).and_then(|pt| p.component(&pt.component_id));
|
||||
let wf = wall_comp.map_or([0.85, 0.83, 0.8], |c| hex_to_rgb(&c.color, [0.85, 0.83, 0.8]));
|
||||
let wall_faces = crate::roof_assembly::planar_faces(&solids.walls, &front(&solids.walls));
|
||||
|
||||
@@ -13,34 +13,43 @@
|
||||
<polygon points="5.8275,7.08564 6.1725,7.08564 6.1725,4.48564 5.8275,4.48564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="1.1725,7.08564 1.1725,4.48564 0.8275,4.48564 0.8275,7.08564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="3.325,7.08564 3.475,7.08564 3.475,4.48564 3.325,4.48564" fill="#8c5544" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="1,4.48564 6,4.48564 6,2.05885 1,2.05885" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="5.8275,4.48564 6.1725,4.48564 6.1725,1.88564 5.8275,1.88564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="1.1725,4.48564 1.1725,1.88564 0.8275,1.88564 0.8275,4.48564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<line x1="6.1725" y1="4.48564" x2="6.1725" y2="2.05885" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="0.8275" y1="4.48564" x2="0.8275" y2="2.05885" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polygon points="6,2.05885 6,2.28564 1,2.28564 1,2.05885" fill="#8f959e" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="5.8275,1.88564 6.1725,1.88564 6.1725,2.28564 5.8275,2.28564" fill="#8f959e" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="0.8275,1.88564 1.1725,1.88564 1.1725,2.28564 1,2.28564 0.8275,2.11314" fill="#8f959e" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="1,2.05885 6,2.05885 6,2.45885 1,2.45885" fill="#8f959e" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="5.8275,2.05885 6.1725,2.05885 6.1725,2.45885 5.8275,2.45885" fill="#8f959e" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="0.8275,2.05885 1.1725,2.05885 1.1725,2.45885 1,2.45885 0.8275,2.28635" fill="#8f959e" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="0.8275,7.08564 1.8,7.08564 1.8,4.48564 0.8275,4.48564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="1.8,4.98564 2.7,4.98564 2.7,4.48564 1.8,4.48564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="2.7,7.08564 4,7.08564 4,4.48564 2.7,4.48564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="4,7.08564 5,7.08564 5,6.18564 4,6.18564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="4,4.98564 5,4.98564 5,4.48564 4,4.48564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="5,7.08564 6.1725,7.08564 6.1725,4.48564 5,4.48564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="0.8275,4.48564 6.1725,4.48564 6.1725,1.88564 0.8275,1.88564" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="1,4.48564 6,4.48564 6,2.05885 1,2.05885" fill="#ffffff" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<line x1="0.8275" y1="7.08564" x2="1.8" y2="7.08564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="2.7" y1="7.08564" x2="4" y2="7.08564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="4" y1="7.08564" x2="5" y2="7.08564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="5" y1="7.08564" x2="6.1725" y2="7.08564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="0.8275" y1="4.48564" x2="1" y2="4.48564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="6" y1="4.48564" x2="6.1725" y2="4.48564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="1.8" y1="4.98564" x2="2.7" y2="4.98564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="4" y1="4.98564" x2="5" y2="4.98564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="4" y1="6.18564" x2="5" y2="6.18564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="0.8275" y1="1.88564" x2="6.1725" y2="1.88564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="1.8" y1="7.08564" x2="1.8" y2="4.98564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="0.8275" y1="7.08564" x2="0.8275" y2="4.48564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="0.8275" y1="4.48564" x2="0.8275" y2="1.88564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="2.7" y1="7.08564" x2="2.7" y2="4.98564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="4" y1="6.18564" x2="4" y2="4.98564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="5" y1="6.18564" x2="5" y2="4.98564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="6.1725" y1="7.08564" x2="6.1725" y2="4.48564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="6.1725" y1="4.48564" x2="6.1725" y2="1.88564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polygon points="0.8275,1.88564 6.1725,1.88564 6.1725,2.11314 0.8275,2.11314 0.8275,2.11314" fill="#8f959e" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<line x1="6" y1="4.48564" x2="6" y2="2.05885" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="1" y1="4.48564" x2="1" y2="2.05885" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polygon points="6,2.05885 6,2.11314 1,2.11314 1,2.05885" fill="#8f959e" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="1,2.05885 6,2.05885 6,2.28635 1,2.28635" fill="#8f959e" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<polygon points="1.8,7.08564 2.7,7.08564 2.7,4.98564 1.8,4.98564" fill="#d9d9d4" stroke="#2b3039" stroke-width="0.018" stroke-linejoin="round"/>
|
||||
<polygon points="1.836,7.08564 2.664,7.08564 2.664,5.04864 1.836,5.04864" fill="#ede6d9" stroke="#2b3039" stroke-width="0.013" stroke-linejoin="round"/>
|
||||
<polygon points="1.8,5.06564 2.7,5.06564 2.7,4.98564 1.8,4.98564" fill="#a7adb5" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
@@ -56,9 +65,14 @@
|
||||
<line x1="4.88" y1="5.10564" x2="4.12" y2="5.58564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18"/>
|
||||
<line x1="4.12" y1="6.06564" x2="4.5" y2="5.10564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18"/>
|
||||
<line x1="4.88" y1="6.06564" x2="4.5" y2="5.10564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18"/>
|
||||
<polygon points="0.6,1.88564 6.4,1.88564 6.4,2.05885 0.6,2.05885" fill="#b8735c" stroke="none" stroke-width="0" stroke-linejoin="round"/>
|
||||
<line x1="0.6" y1="1.88564" x2="6.4" y2="1.88564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="6.4" y1="1.88564" x2="6.4" y2="0.5" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="6.4" y1="0.5" x2="0.6" y2="0.5" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="0.6" y1="0.5" x2="0.6" y2="1.88564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="0.6" y1="1.88564" x2="6.4" y2="1.88564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="6.4" y1="1.88564" x2="6.4" y2="2.05885" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="6.4" y1="2.05885" x2="0.6" y2="2.05885" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="0.6" y1="2.05885" x2="0.6" y2="1.88564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="0.6" y1="7.08564" x2="6.4" y2="7.08564" stroke="#1f242c" stroke-width="0.05"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 8.9 KiB |
@@ -1855,23 +1855,6 @@ export function CeilingSection({
|
||||
<div className="objinfo-sep" />
|
||||
<div className="objinfo-section-label">{t("objinfo.ceiling.section")}</div>
|
||||
|
||||
{/* An Dach anschliessen ([G2]): automatisch endet die Wand an der Dach-Unterkante, "Ja"
|
||||
verlängert sie bis unter das Dach, "Nein" lässt die Dächer die Wand nicht schneiden. */}
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.wall.roofAttach")}</span>
|
||||
<Dropdown
|
||||
value={wall.roofAttach}
|
||||
onChange={(v) => host.onSetWallRoofAttach(v as "auto" | "on" | "off")}
|
||||
options={[
|
||||
{ value: "auto", label: t("objinfo.wall.roofAttach.auto") },
|
||||
{ value: "on", label: t("objinfo.wall.roofAttach.on") },
|
||||
{ value: "off", label: t("objinfo.wall.roofAttach.off") },
|
||||
]}
|
||||
title={t("objinfo.wall.roofAttach.tip")}
|
||||
width={120}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Aufbau-Typ-Segment. */}
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.ceiling.buildup")}</span>
|
||||
@@ -2072,6 +2055,23 @@ export function WallSection({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* An Dach anschliessen ([G2]): automatisch endet die Wand an der Dach-Unterkante, "Ja"
|
||||
verlängert sie bis unter das Dach, "Nein" lässt die Dächer die Wand nicht schneiden. */}
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.wall.roofAttach")}</span>
|
||||
<Dropdown
|
||||
value={wall.roofAttach}
|
||||
onChange={(v) => host.onSetWallRoofAttach(v as "auto" | "on" | "off")}
|
||||
options={[
|
||||
{ value: "auto", label: t("objinfo.wall.roofAttach.auto") },
|
||||
{ value: "on", label: t("objinfo.wall.roofAttach.on") },
|
||||
{ value: "off", label: t("objinfo.wall.roofAttach.off") },
|
||||
]}
|
||||
title={t("objinfo.wall.roofAttach.tip")}
|
||||
width={120}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Aufbau-Typ-Segment. */}
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.wall.buildup")}</span>
|
||||
|
||||
Reference in new issue
Block a user