Repository navigation
Done
Description
Today: a block diagram (map.terrain with "block", #1914) is cut to a north-up box: the DEM's extent or "extent": [xmin, ymin, xmax, ymax]. Teaching figures often use a round block (it doesn't favour a direction and reads well at any bearing in an orbit, #1916), and study-area figures want the ground cut to the area itself: a river basin, a municipality, a park.
Proposal
"shape" in "block":
map.terrain={"layer": "MDE", "block": {"shape": "circle"}}
map.terrain={"layer": "MDE", "block": {"shape": {"layer": "Bacia", "where": "nome = 'Rio Doce'"}}}
"box"(default): today's block."circle": the largest circle inside the box (the DEM's extent or"extent"), centred in it."radius"in map units makes it smaller.{"layer": …, "where"?: …}: the polygon (or the union of the polygons) the expression selects, cut to the box. A polygon with holes keeps them as wells with their own walls.- Walls: the ground's profile along the outline, down to the base, for the parts of the outline facing the eye. A curved or concave outline has walls that face away and walls that face the eye along the same side, so walls are drawn back to front (by their distance from the eye) after the ground, and a wall can be hidden by ground in front of it (a concave outline): the ground is drawn with depth testing as today and walls take part in it.
- Everything the walls have now applies along the outline: colour, the polygon layer's classes, hatches ([Feature]: Block diagrams: terrain cut to a box, with side walls down to a base, optionally coloured by a polygon layer #1914 parts 2 and 3), and the base over water (fix(terrain): a block's base over elevation tiles follows the water level (#1914) #2150).
- Sampling: the outline is followed at the mesh's own spacing (as the box's sides are), so a circle is smooth at any zoom: at least 256 points round it.
Tests
"circle"over a DEM: the ground outside the circle isn't drawn; the wall's top meets the surface along the circle; the wall faces the eye only on the near half.- A concave polygon (an L): the inner corner's walls are hidden where the near ground covers them.
- A polygon with a hole: the hole's walls show on its far side.
"box"and no"shape": unchanged pixel for pixel.- A
"where"that selects nothing is refused with a message naming the layer.
Choices in this proposal
- One setting, three shapes: a circle is the common teaching case and needs no layer; a polygon covers the study-area case. Both are a cut outline, so they share the wall code.
- Depth-tested walls: the box is convex, which is why walls could just be drawn after the ground. Any other outline isn't, so walls must take part in the depth test. This is the main new work.
- Not proposed: a bevel or rounded top edge. It's decoration; an outline line already separates ground from wall.
- Related: [Feature]: Block diagrams: terrain cut to a box, with side walls down to a base, optionally coloured by a polygon layer #1914, [Feature]: Export a camera orbit around the map as an animated GIF or PNG frames #1916 (orbit), fix(terrain): a block's base over elevation tiles follows the water level (#1914) #2150.
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix(render): round block review round 1 (opengeos#2318)
fix(render): round block's wall patterns meet at the east point (open…
fix(engine): a round block's glTF is based below all of its box's gro…
feat(render): a round block diagram, "shape": "circle" (opengeos#2318 …
Merge origin/main into feat/2317-block-wall-water
fix(render): polygon block review round 1 (opengeos#2318)
fix(render): polygon block outline simplification said on open, true …
fix(render): polygon block review round 3 (opengeos#2318)
fix(render): a polygon block keeps only the cut triangles with parts (o…
fix(render): a polygon block's box is its kept rings', said once on o…
fix(engine): an unreadable polygon block is said once when its DEM lo…
fix(engine): a polygon block's uncut holes are said (opengeos#2318)
fix(render): a cancelled drape draws no walls; one outline read per b…
fix(render): a polygon block's walls stop on Cancel (opengeos#2318)
fix(engine): drop the merge's stale capabilities line; reword the unc…
fix(render): a polygon block's outline reads held layers in lon/lat, …
fix(render): a polygon block's layer is noted as read, so its unplace…
feat(render): a block diagram cut to polygons, "shape": {"layer", "wh…
fix(render): leave out holes outside their polygon; floor depth by si…
test(render): a hole's seam across a notch fills no ground outside th…
fix(render): a hole's floor is cut at the eye, and shows round the wh…
elpidioassinaturas commentedon Nov 27, 2026
Closing: all three parts are merged — the round block (#2379), the block cut to a polygon with depth-ordered walls (#2486), and its holes as wells with their own walls and floor (#2714). A glTF model cut to the circle or polygon (it exports the box today) can get its own issue if needed.
feat(render): a polygon block's holes are wells with their own walls (o…