[253] 3D-Entourage: Low-Poly-Netze für Person (stehend/gehend), Velo, Auto, Sitzbank, Stuhl, Tische mit Stühlen

Kern furniture_3d.rs: prozedurale, geschlossene Teilnetze aus den Parametern (Höhe h einstellbar), Platzierung auf Gelände/Geschoss.
Im 3D (model3d::emit_entourage, Explosion, Cache-Stand), Cycles-Szene, 3D-Dokument (axo) und Schattenwurf; Klasse der Zeichnung ([180]);
Grundriss bleibt 2D. Beispiel :wettbewerb: 3 Personen, Auto, Velo, Bank. Nicht im IFC, nicht in Schnitt/Ansicht (TODO).
This commit is contained in:
Claude committed 2026-11-18 11:06:03 +00:00
1 parent bd201830a8
commit f96933da03
20 files changed
+879 -27

No files matched your search

+4
View File
@@ -4703,6 +4703,9 @@ export const de = {
"lib.o.auto": "Auto mit Parkfeld",
"lib.o.parkfeld": "Parkfeld 2.50×5.00",
"lib.o.velo": "Velo",
"lib.o.sitzbank": "Sitzbank",
"lib.o.person-stehend": "Person stehend",
"lib.o.person-gehend": "Person gehend",
"lib.o.wendekreis": "Rollstuhl-Wendekreis Ø 150",
"lib.g.sanitary": "Sanitär",
"lib.g.kitchen": "Küche",
@@ -4716,6 +4719,7 @@ export const de = {
"lib.p.n": "Anzahl",
"lib.p.mess": "Unordnung",
"lib.p.field": "Parkfeld",
"lib.p.h": "Höhe (3D)",
"lib.p.mirror": "Spiegeln",
"lib.title": "Objekte",
"lib.hint": "Objekt wählen, dann im Plan den Einfügepunkt klicken oder das Objekt in den Plan ziehen (R = drehen, M = spiegeln; Esc = abbrechen).",
+4
View File
@@ -4689,6 +4689,9 @@ export const en: Record<TranslationKey, string> = {
"lib.o.auto": "Car with parking bay",
"lib.o.parkfeld": "Parking bay 2.50×5.00",
"lib.o.velo": "Bicycle",
"lib.o.sitzbank": "Bench",
"lib.o.person-stehend": "Person standing",
"lib.o.person-gehend": "Person walking",
"lib.o.wendekreis": "Wheelchair turning circle Ø 150",
"lib.g.sanitary": "Sanitary",
"lib.g.kitchen": "Kitchen",
@@ -4702,6 +4705,7 @@ export const en: Record<TranslationKey, string> = {
"lib.p.n": "Count",
"lib.p.mess": "Disorder",
"lib.p.field": "Parking bay",
"lib.p.h": "Height (3D)",
"lib.p.mirror": "Mirror",
"lib.title": "Objects",
"lib.hint": "Pick an object, then click the insertion point in the plan or drag the object into it (R = rotate, M = mirror, Esc = cancel).",
+17 -2
View File
@@ -288,6 +288,21 @@ const SITUATION_HIDDEN = ["00", "07", "20", "21", "22", "25", "30", "35", "40",
const LEVEL_VIS: Record<string, boolean> = Object.fromEntries(LEVELS.map((l) => [l.id, true]));
const pxPerMeterAt = (scale: number) => Math.round(((96 / 25.4) * 1000) / scale * 100) / 100;
/** [253] Entourage für die Bilder (3D-Netze der Objektbibliothek, Klasse „24 Fahrzeuge & Freiflächen"): drei Personen, ein Auto am Ostrand, Velo und Bank im Süden. */
function entourage(): Drawing2D[] {
const lib = (id: string, libId: string, at: Vec2, rotation: number, params?: Record<string, number>): Drawing2D => ({
id, type: "drawing2d", levelId: "eg", categoryCode: "24", geom: { shape: "libobj", libId, at, rotation, ...(params ? { params } : {}), seed: 1 },
});
return [
lib("ent-person-1", "lib:person-stehend", P(5.2, -3.4), 0.4),
lib("ent-person-2", "lib:person-stehend", P(6.1, -3.0), 3.4, { h: 1.62 }),
lib("ent-person-3", "lib:person-gehend", P(27.0, 3.4), -Math.PI / 2),
lib("ent-auto", "lib:auto", P(25.2, 9.6), 0, { field: 0 }),
lib("ent-velo", "lib:velo", P(12.4, -3.2), Math.PI / 2),
lib("ent-bank", "lib:sitzbank", P(16, -3.4), 0),
];
}
/** Wettbewerb — neues Projekt (braucht den geladenen Kern). */
export function buildWettbewerbSampleProject(): Project {
stampSeq = 0;
@@ -305,7 +320,7 @@ export function buildWettbewerbSampleProject(): Project {
doorTypes: DOOR_TYPES,
stairTypes: STAIR_TYPES,
drawingLevels: LEVELS,
layers: sampleProject.layers,
layers: [...sampleProject.layers, { code: "24", name: "Fahrzeuge & Freiflächen", color: "#4a4a4a", lw: 0.13, visible: true, locked: false }],
scaleLineWeights: true,
walls,
openings,
@@ -315,7 +330,7 @@ export function buildWettbewerbSampleProject(): Project {
railings,
rooms: [],
units: units(),
drawings2d: cadastre(),
drawings2d: [...cadastre(), ...entourage()],
context: [neighbours()],
// Raumprogramm des Wettbewerbs (Soll); die Räume im Modell liefern das Ist.
roomProgram: [