Aquarium (curves) — an ArchLang floor plan example
A public aquarium built around a cylindrical tank — the curved-geometry example: arc walls and a circular room.
This plan compiles to 8 rooms, 2365.59 m² of floor area and 6 windows; every room is reachable from the entrance.
What this plan uses
The parts of the language this plan's source writes, each linked to its section of the language reference.
- Paper and scale
- Walls
- Rooms
- Polygonal rooms
- Curved walls (arc edges)
- Circular rooms
- Doors
- Windows
- Openings
- Furniture
- Dimensions
- Automatic dimension chains
- Positioning axes
- Sheet tables (schedules, legend, notes)
The source
This is the whole plan. The drawing above is what the compiler produced from it — nothing was drawn by hand.
# A ~60 x 40 m public aquarium — the CURVED-GEOMETRY flagship (v1.24).
#
# Everything else in examples/ is rectilinear, because until v1.24 the language was. An
# aquarium is the building type that is NOT: its centrepiece is a cylindrical tank you
# walk around, and its public frontage bows. This plan exercises both curve forms and
# nothing else that is new:
#
# arc (x,y) radius R [cw|ccw] [major] a CURVED WALL EDGE, from the previous vertex to
# this one along a circle of radius R. Default is
# the minor arc turning `ccw` as drawn.
# room circle at (cx,cy) radius R a CIRCULAR FLOOR. Its area is measured exactly
# (piR^2), never from the tessellation the grid
# and adjacency layers use.
#
# Two things to read off the drawing. (1) The curved faces are TRUE arcs — SVG `A`
# commands, DXF `ARC` entities — so the rotunda never looks faceted at any zoom.
# (2) `dims auto` cannot chain a curve, so it dimensions the round things the way GB/T
# 50104 does: an `R` leader per distinct arc and a `phi` call-out across the circular
# room, while the linear chains stay on the straight facades where they belong.
#
# Issued on A2 at 1:200, the conventional GB/T presentation for a public building this
# size, with the positioning axes on the straight structural grid only.
plan "Harbour Aquarium" {
units mm
grid 100
paper A2 landscape
scale 1:200
north up
dims auto all
schedule rooms
# ---- shell: three straight facades and one curved one ---------------------
#
# The south-east corner is turned as a quarter circle of R12000 rather than mitred —
# the curved public frontage facing the harbour. `cw` puts the centre on the RIGHT of
# travel (the wall is walked (60000,28000) -> (48000,40000), heading south-west), which
# is the inside of the building, so the facade bows OUTWARD. Swap it to `ccw` and the
# same two endpoints give the concave corner instead.
wall id=shell exterior thickness 300 {
(0,0)
(60000,0)
(60000,28000)
arc (48000,40000) radius 12000 cw
(0,40000)
close
}
# ---- the cylindrical tank: one full circle from two semicircular arcs -----
#
# There is no `close`-an-arc form on purpose: a closed curve is written as the two
# halves it is, which keeps every edge's radius visible in the source. Both are the
# default `ccw`, so the wall is walked east -> south -> west -> north -> east, and the
# `hinge`/`swing` of a door on it reads against THAT direction of travel (the tangent
# at the doorway), exactly as it would on a straight run.
#
# The circle is tangent to the concourse at its south point (30000,22000) and to the
# plant room at its north point (30000,6000), so a door at either lands on a real
# room boundary and connects two spaces.
wall id=rotunda partition thickness 200 {
(38000,14000)
arc (22000,14000) radius 8000
arc (38000,14000) radius 8000
}
# ---- straight structure ---------------------------------------------------
wall id=concourse_n partition thickness 200 { (0,22000) (21000,22000) }
wall id=concourse_n2 partition thickness 200 { (39000,22000) (60000,22000) }
wall id=concourse_s partition thickness 200 { (0,30000) (60000,30000) }
wall partition thickness 200 { (21000,0) (21000,22000) }
wall partition thickness 200 { (39000,0) (39000,22000) }
wall partition thickness 200 { (21000,6000) (39000,6000) }
wall id=foyer_w partition thickness 200 { (20000,30000) (20000,40000) }
wall id=foyer_e partition thickness 200 { (40000,30000) (40000,40000) }
# ---- rooms ----------------------------------------------------------------
# `dims auto` puts the phi call-out ON the diameter, through the centre — which is where
# GB/T wants it and where the room name would otherwise be. Moving the NAME is the
# author's job (the compiler never relocates a dimension to make room for a label), so
# this one is pinned BELOW the centre line with `label … at`: above it, the `R8000` leader
# (drawn from the centre up to the arc's midpoint and lettered halfway) printed over it.
room id=rotunda_r circle at (30000,14000) radius 8000 label "Ocean Rotunda" at (30000,17000) uses hall
room id=reef at (0,0) size 21000x22000 label "Reef Gallery" uses living
room id=kelp at (39000,0) size 21000x22000 label "Kelp Forest" uses living
room id=plant at (21000,0) size 18000x6000 label "Filtration" uses utility
# The two rooms against the bowed south-east corner follow the curve, because a
# rectangle there would claim floor OUTSIDE the building: the cafe's would count
# 200 m² for about 169. A `room polygon` cannot take an `arc` edge, so its curved side
# is a run of vertices ON the arc, every 7.5°, snapped inward to the 100 mm grid.
# Inscribed in the curve, the area can only err a fraction under (168.0 m²), never
# over. The concourse only clips the arc's first 2 m, so one vertex does it.
# It also takes the floor round the tank: the bay between the drum and the walls at x 21000
# and 39000 is open to the concourse, so it is concourse. Its edge round the drum is the
# same run of 7.5° vertices, snapped OUTWARD this time, so it never enters the round room.
# The name stays pinned in the band below the drum, where it stood before the bay joined.
room id=concourse polygon (0,22000) (21000,22000) (21000,6000) (28900,6000) (27900,6200)
(26900,6600) (26000,7000) (25100,7600) (24300,8300) (23600,9100) (23000,10000)
(22600,10900) (22200,11900) (22000,12900) (22000,14000) (22000,15100) (22200,16100)
(22600,17100) (23000,18000) (23600,18900) (24300,19700) (25100,20400) (26000,21000)
(26900,21400) (27900,21800) (28900,22000) (30000,22000) (31100,22000) (32100,21800)
(33100,21400) (34000,21000) (34900,20400) (35700,19700) (36400,18900) (37000,18000)
(37400,17100) (37800,16100) (38000,15100) (38000,14000) (38000,12900) (37800,11900)
(37400,10900) (37000,10000) (36400,9100) (35700,8300) (34900,7600) (34000,7000)
(33100,6600) (32100,6200) (31100,6000) (39000,6000) (39000,22000) (60000,22000)
(60000,28000) (59800,30000) (0,30000)
label "Concourse" at (30000,25900) uses circulation
room id=foyer at (20000,30000) size 20000x10000 label "Entrance Foyer" uses entry
room id=shop at (0,30000) size 20000x10000 label "Shop" uses office
room id=cafe polygon (40000,30000) (59800,30000) (59400,31600) (58800,33000) (58100,34400)
(57100,35700) (56100,36800) (54800,37800) (53500,38600) (52100,39200) (50500,39700)
(49000,39900) (48000,40000) (40000,40000)
label "Cafe" uses dining
# ---- openings -------------------------------------------------------------
#
# Both rotunda doors sit ON the curve. `on rotunda at <pct>` walks the wall by RUN
# length — an arc contributes its arc length R*theta, not its chord — so 25% is a
# quarter of the way round from the wall's start at the EAST point. The default `ccw`
# runs east -> north -> west -> south, so 25% is the north point (the staff door into
# Filtration) and 75% the south one (the public door off the Concourse).
door id=d_rot_n on rotunda at 25% width 1200
door id=d_rot_s double on rotunda at 75% width 2000
# The main entrance is on the CURVED facade, at 15% of the shell's run measured from
# its start — which lands on the straight south wall; the pair of harbour-side windows
# below sit on the arc itself, their panes along the tangent and their jambs radial.
door id=d_main double at (30000,40000) width 2400 wall shell swing in
window id=w_arc1 on shell at 47% width 2000
window id=w_arc2 on shell at 50% width 2000
# No facade chain can tick an opening on a curve, so `lint` reports each one
# (W_OPENING_NOT_DIMENSIONED) until it is dimensioned by hand. These are drawn ON the
# openings, jamb to jamb on the wall's centreline (offset 0), and state the width along
# the arc as written. A straight dimension measures the CHORD (1997.68 mm here), so a
# bare "2000" would contradict its own line (W_DIM_TEXT_MISMATCH); "2.0m" reads 1950-2050,
# which holds both the chord and the 2000 along the arc, and fits between the ticks.
dim (59149.42,32437.38)->(59731.07,30526.25) offset 0 text "2.0m"
dim (55749.55,37162.12)->(57162.12,35749.55) offset 0 text "2.0m"
window at (10000,0) width 3000 wall shell
window at (50000,0) width 3000 wall shell
window at (0,14000) width 3000 wall shell
door id=d_exit_w at (0,26000) width 1200 wall shell swing out
window at (60000,14000) width 3000 wall shell
opening id=o_shop at (20000,35000) width 2400 wall foyer_w
opening id=o_cafe at (40000,35000) width 2400 wall foyer_e
opening id=o_foyer at (30000,30000) width 4000 wall concourse_s
opening id=o_reef at (10500,22000) width 3000 wall concourse_n
opening id=o_kelp at (49500,22000) width 3000 wall concourse_n2
# ---- fit-out ----------------------------------------------------------------
# Benches ring the rotunda at the four quadrants clear of the cardinal doors
# (25%/75% north/south on the drum). A ticket desk sits in the foyer, and the
# cafe gets a few tables, kept west of the curved south-east facade where its floor
# narrows.
furniture bench at (34450,9550) size 1200x500 in rotunda_r
furniture bench at (25550,9550) size 1200x500 in rotunda_r
furniture bench at (25550,18450) size 1200x500 in rotunda_r
furniture bench at (34450,18450) size 1200x500 in rotunda_r
furniture desk at (22000,33000) size 1800x800 label "Ticket desk" in foyer
furniture chair at (24200,33200) size 500x500 rotate 90 in foyer
furniture plant at (37000,32000) size 700x700 in foyer
furniture table at (43000,32000) size 1400x1400 label "Table" in cafe
furniture table at (47000,32000) size 1400x1400 label "Table" in cafe
furniture table at (43000,35500) size 1400x1400 label "Table" in cafe
furniture plant at (41000,38500) size 600x600 in cafe
# ---- positioning axes: the STRAIGHT structural grid only ------------------
# A curve has no datum line, so it carries none; its radius is its dimension.
axes {
x at 0
x at 21000
x at 39000
x at 60000
y at 0
y at 22000
y at 30000
y at 40000
}
}
More in Public buildings
- Museum (A1 sheet): A 100 x 60 m museum issued on a real A1 sheet at 1:200, because at that size a web-scaled drawing stops working.
- Library (legend): A public library around a circular reading room, issued on a sheet with a room schedule and a fixture legend.
- Transit Hall: A 90 x 40 m metro concourse split by its gate line: one 300 mm partition with nine openings punched by a loop.
- Clinic (place ×6): An outpatient wing whose six consulting rooms are one component placed six times, rather than six copies.
- Practice Office (workplace): A 225 m² office on a spine corridor: open workspace, meeting rooms, break room and an accessible WC, issued with tagged openings.
- Corner Cafe (front and back): A 15 x 10 m cafe split into front and back of house: a dining room for eighteen, a servery, a kitchen and a store.
- Classroom Block (school): A single-storey school block: three 60 m² classrooms on a 2 m corridor, with lobby, staff prep, pupil WCs and an accessible WC.