building_prisms — DRIVE japan op

• Data kinds: any → any

• Call: import fullseye as fs; fs.ledger.building_prisms(buildings: 'Iterable[dict[str, Any]]', *, color_fn: 'Callable[[dict[str, Any]], Sequence[float]] | None' = None, base_z: 'float | None' = 0.0, roof_shade: 'float' = 0.92) -> 'tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]' (to call the implementation directly, import driveplateau; driveplateau.building_prisms(buildings: 'Iterable[dict[str, Any]]', *, color_fn: 'Callable[[dict[str, Any]], Sequence[float]] | None' = None, base_z: 'float | None' = 0.0, roof_shade: 'float' = 0.92) -> 'tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]'; from the registry, opsdrive.get("building_prisms"))

Usage

Combines a list of buildings into an extruded-prism mesh.

> The detailed description below is the original text — the summary and the headings are translated.

Args:

buildings: plateau_parse の buildings(footprint, height, ground_z)。

color_fn: building -> (r,g,b) 0..1。None なら _default_building_color。

base_z: 全建物の底 z [m]。None なら各建物の ground_z を使う(起伏のある世界向け)。

自前の平らな道路世界には 0.0 が合う。

roof_shade: 屋根面の色の倍率(側面と見分けるための控えめな陰)。

Returns:

(V (n,3) float64, F (m,3) int64, colors (m,3) float64 0..1, ids (m,) int64)。ids[f] は面 f が属する建物の番号(入力列の添字)。建物が 0 件なら各配列は空。

Raises:

ValueError: color_fn の返り値が RGB 3 要素 0..1 でない、建物の footprint/height が不正。

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• (none yet)

Ops the type connects to (they accept any as input)

course_crank · course_s_curve · course_turnaround · course_slope · course_intersection · course_parallel_parking · course_crossing · course_road

Same category (japan)

osm_synthetic · osm_parse · osm_road_graph · osm_road_mask · osm_road_loops · osm_route · japan_world · japan_stats


*Provenance: driveplateau.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.