Skip to content

Commit f5957f1

Browse files
committed
docs(examples): expand vivienda with full architectural layout
Grows the vivienda example into a 12x9 m plan with two bedrooms, a kitchen, a bathroom, a closet, and full dimensioning, door swings, furniture, and hatching. Anchors it as the reference layout used by the integration tests and the constraint validation.
1 parent 9b5df14 commit f5957f1

5 files changed

Lines changed: 396 additions & 80 deletions

File tree

examples/vivienda/achurados.cf

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,69 @@
22
name = "achurados"
33
color = "#C0C0C0"
44

5-
# Achurado del baño (referencia al rectángulo del baño)
6-
# Primero definimos el boundary como polyline cerrada
5+
# ── Achurado del bano ───────────────────────────────────────
76
[[polyline]]
87
id = "pl-bano-boundary"
9-
points = [[4.0, 0.0], [8.5, 0.0], [8.5, 3.5], [4.0, 3.5]]
8+
points = [[0.0, 3.0], [2.0, 3.0], [2.0, 5.0], [0.0, 5.0]]
109
closed = true
1110
style = "dotted"
1211

13-
# Achurado sobre el boundary
1412
[[hatch]]
1513
id = "ht-bano"
1614
boundary = "pl-bano-boundary"
1715
pattern = "ansi31"
1816
scale = 2.0
1917
angle = 45.0
2018

21-
# Relleno sólido de un área pequeña (closet)
19+
# ── Relleno solido del closet dormitorio 1 ─────────────────
2220
[[fill]]
23-
id = "fl-closet"
24-
points = [[0.0, 4.5], [1.5, 4.5], [1.5, 6.0], [0.0, 6.0]]
25-
color = "#808080"
21+
id = "fl-closet-d1"
22+
boundary = "rc-closet-d1"
23+
color = "#E0E0E0"
24+
25+
# ── Achurado de la cocina ───────────────────────────────────
26+
[[polyline]]
27+
id = "pl-cocina-boundary"
28+
points = [[5.0, 3.5], [12.0, 3.5], [12.0, 5.0], [5.0, 5.0]]
29+
closed = true
30+
style = "dotted"
31+
32+
[[hatch]]
33+
id = "ht-cocina"
34+
boundary = "pl-cocina-boundary"
35+
pattern = "ansi31"
36+
scale = 3.0
37+
angle = 135.0
38+
39+
# ── Ventanales (lineas punteadas en muros) ──────────────────
40+
[[line]]
41+
id = "ln-ventana-norte"
42+
from = [2.0, 9.0]
43+
to = [4.0, 9.0]
44+
style = "dashed"
45+
weight = 0.18
46+
color = "#00CC44"
47+
48+
[[line]]
49+
id = "ln-ventana-sur-d2"
50+
from = [7.0, 0.0]
51+
to = [10.0, 0.0]
52+
style = "dashed"
53+
weight = 0.18
54+
color = "#00CC44"
55+
56+
[[line]]
57+
id = "ln-ventana-este"
58+
from = [12.0, 6.0]
59+
to = [12.0, 8.0]
60+
style = "dashed"
61+
weight = 0.18
62+
color = "#00CC44"
63+
64+
[[line]]
65+
id = "ln-ventana-oeste"
66+
from = [0.0, 3.5]
67+
to = [0.0, 4.5]
68+
style = "dashed"
69+
weight = 0.18
70+
color = "#00CC44"

examples/vivienda/cotas.cf

Lines changed: 61 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,79 @@
11
[layer]
22
name = "cotas"
3-
color = "#FF0000"
3+
color = "#FF4444"
4+
5+
# ── Cotas exteriores ────────────────────────────────────────
46

5-
# Cota horizontal del perímetro
67
[[dim]]
7-
id = "dm-ancho"
8+
id = "dm-ancho-total"
89
type = "linear"
910
from = [0.0, 0.0]
10-
to = [8.5, 0.0]
11-
offset = -0.8
11+
to = [12.0, 0.0]
12+
offset = -1.2
1213

13-
# Cota vertical del perímetro
1414
[[dim]]
15-
id = "dm-alto"
15+
id = "dm-alto-total"
1616
type = "linear"
1717
from = [0.0, 0.0]
18-
to = [0.0, 6.0]
19-
offset = -0.8
18+
to = [0.0, 9.0]
19+
offset = -1.2
20+
21+
# ── Cotas interiores ───────────────────────────────────────
2022

21-
# Cota de la sala (ancho)
2223
[[dim]]
23-
id = "dm-sala"
24+
id = "dm-sala-ancho"
2425
type = "linear"
25-
from = [0.0, 0.0]
26-
to = [4.0, 0.0]
27-
offset = -0.5
26+
from = [5.0, 5.0]
27+
to = [12.0, 5.0]
28+
offset = 0.8
2829

29-
# Línea de referencia dashed
30-
[[line]]
31-
id = "ln-ref-1"
30+
[[dim]]
31+
id = "dm-sala-alto"
32+
type = "linear"
33+
from = [5.0, 5.0]
34+
to = [5.0, 9.0]
35+
offset = 0.6
36+
37+
[[dim]]
38+
id = "dm-d1-ancho"
39+
type = "linear"
40+
from = [0.0, 5.0]
41+
to = [5.0, 5.0]
42+
offset = 0.8
43+
44+
[[dim]]
45+
id = "dm-d2-ancho"
46+
type = "linear"
47+
from = [5.0, 0.0]
48+
to = [12.0, 0.0]
49+
offset = -0.6
50+
51+
[[dim]]
52+
id = "dm-d2-alto"
53+
type = "linear"
54+
from = [5.0, 0.0]
55+
to = [5.0, 3.0]
56+
offset = 0.6
57+
58+
[[dim]]
59+
id = "dm-bano-alto"
60+
type = "linear"
3261
from = [0.0, 3.0]
33-
to = [8.5, 3.0]
34-
style = "dashed"
35-
color = "#808080"
62+
to = [0.0, 5.0]
63+
offset = -0.6
64+
65+
# ── Ejes de referencia ──────────────────────────────────────
66+
67+
[[line]]
68+
id = "ln-eje-v"
69+
from = [6.0, -0.5]
70+
to = [6.0, 9.5]
71+
style = "dashdot"
72+
color = "#00CCCC"
3673

37-
# Línea de eje dashdot
3874
[[line]]
39-
id = "ln-eje"
40-
from = [4.25, 0.0]
41-
to = [4.25, 6.0]
75+
id = "ln-eje-h"
76+
from = [-0.5, 5.0]
77+
to = [12.5, 5.0]
4278
style = "dashdot"
43-
color = "#00FFFF"
79+
color = "#00CCCC"

examples/vivienda/mobiliario.cf

Lines changed: 144 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,168 @@
11
[layer]
22
name = "mobiliario"
3-
color = "#0000FF"
3+
color = "#4488FF"
44

5-
# Mesa sala
5+
# ── Sala ─────────────────────────────────────────────────────
6+
7+
# Sofa
68
[[rect]]
7-
id = "rc-mesa"
8-
origin = [1.0, 2.0]
9-
width = 2.0
9+
id = "rc-sofa"
10+
origin = [6.0, 7.5]
11+
width = 3.0
1012
height = 1.0
13+
color = "#4488FF"
1114

12-
# Cama habitación
15+
# Mesa de centro
1316
[[rect]]
14-
id = "rc-cama"
15-
origin = [5.0, 4.2]
16-
width = 2.0
17-
height = 1.5
17+
id = "rc-mesa-centro"
18+
origin = [7.0, 6.5]
19+
width = 1.5
20+
height = 0.8
21+
color = "#66AAFF"
1822

19-
# Lavamanos
23+
# TV
24+
[[rect]]
25+
id = "rc-tv"
26+
origin = [5.5, 5.5]
27+
width = 0.2
28+
height = 2.5
29+
color = "#333333"
30+
31+
# Silla
2032
[[circle]]
21-
id = "ci-lavamanos"
22-
center = [6.5, 1.5]
33+
id = "ci-silla"
34+
center = [10.0, 7.0]
2335
radius = 0.3
36+
color = "#66AAFF"
37+
38+
# ── Dormitorio 1 ────────────────────────────────────────────
39+
40+
# Cama doble
41+
[[rect]]
42+
id = "rc-cama-d1"
43+
origin = [1.0, 6.2]
44+
width = 2.0
45+
height = 2.5
46+
color = "#4488FF"
47+
48+
# Mesita de noche 1
49+
[[rect]]
50+
id = "rc-mesita1"
51+
origin = [0.2, 7.5]
52+
width = 0.6
53+
height = 0.5
54+
color = "#66AAFF"
55+
56+
# Mesita de noche 2
57+
[[rect]]
58+
id = "rc-mesita2"
59+
origin = [3.2, 7.5]
60+
width = 0.6
61+
height = 0.5
62+
color = "#66AAFF"
63+
64+
# ── Dormitorio 2 ────────────────────────────────────────────
65+
66+
# Cama individual
67+
[[rect]]
68+
id = "rc-cama-d2"
69+
origin = [7.5, 0.5]
70+
width = 1.5
71+
height = 2.0
72+
color = "#4488FF"
73+
74+
# Escritorio
75+
[[rect]]
76+
id = "rc-escritorio"
77+
origin = [10.0, 0.5]
78+
width = 1.5
79+
height = 0.8
80+
color = "#66AAFF"
81+
82+
# Silla escritorio
83+
[[circle]]
84+
id = "ci-silla-esc"
85+
center = [10.75, 1.8]
86+
radius = 0.25
87+
color = "#66AAFF"
88+
89+
# ── Cocina ──────────────────────────────────────────────────
90+
91+
# Cocina (mesada)
92+
[[rect]]
93+
id = "rc-mesada"
94+
origin = [9.0, 4.0]
95+
width = 2.5
96+
height = 0.6
97+
color = "#88CCFF"
98+
99+
# Bacha
100+
[[circle]]
101+
id = "ci-bacha"
102+
center = [10.5, 4.3]
103+
radius = 0.2
104+
color = "#4488FF"
105+
106+
# Heladera
107+
[[rect]]
108+
id = "rc-heladera"
109+
origin = [5.5, 4.0]
110+
width = 0.7
111+
height = 0.7
112+
color = "#AADDFF"
113+
114+
# ── Bano ─────────────────────────────────────────────────────
24115

25116
# Inodoro
26117
[[circle]]
27118
id = "ci-inodoro"
28-
center = [7.5, 1.5]
29-
radius = 0.25
119+
center = [1.0, 4.5]
120+
radius = 0.2
121+
color = "#4488FF"
122+
123+
# Lavamanos
124+
[[circle]]
125+
id = "ci-lavamanos"
126+
center = [1.0, 3.5]
127+
radius = 0.2
128+
color = "#66AAFF"
129+
130+
# Ducha
131+
[[rect]]
132+
id = "rc-ducha"
133+
origin = [0.1, 3.1]
134+
width = 0.8
135+
height = 0.8
136+
color = "#88CCFF"
137+
138+
# ── Etiquetas de ambientes ──────────────────────────────────
30139

31-
# Etiquetas
32140
[[text]]
33141
id = "tx-sala"
34-
position = [1.5, 3.0]
142+
position = [7.5, 6.8]
35143
content = "SALA"
36-
size = 0.2
144+
size = 0.30
145+
146+
[[text]]
147+
id = "tx-d1"
148+
position = [1.5, 7.2]
149+
content = "DORM 1"
150+
size = 0.25
151+
152+
[[text]]
153+
id = "tx-d2"
154+
position = [7.5, 1.5]
155+
content = "DORM 2"
156+
size = 0.25
37157

38158
[[text]]
39-
id = "tx-hab"
40-
position = [5.5, 5.0]
41-
content = "HABITACION"
42-
size = 0.2
159+
id = "tx-cocina"
160+
position = [8.0, 4.6]
161+
content = "COCINA"
162+
size = 0.22
43163

44164
[[text]]
45165
id = "tx-bano"
46-
position = [5.8, 1.8]
166+
position = [0.5, 3.8]
47167
content = "BANO"
48-
size = 0.15
168+
size = 0.18

0 commit comments

Comments
 (0)