japan op• 数据种类:any → any
• 调用: 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]'(要直接调用实现,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]';从台账取用则 opsdrive.get("building_prisms"))
把建筑的占地轮廓(footprint)挤出到高度,合并为一个三角网格。
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 的返回值不是 0..1 的 RGB 3 元素、建筑的 footprint/height 不合法。
空输入(buildings 为 0 个)返回空结果(原因: 实际数据中建筑为 0 个的瓦片很常见。空的棱柱集合是正确答案)。
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者、年份)与用途见上面的族使用指南。
• gallery_drive_city_terrain — py -3.11 examples/gallery_drive_city_terrain.py
any 作为输入)course_crank · course_s_curve · course_turnaround · course_slope · course_intersection · course_parallel_parking · course_crossing · course_road
japan)osm_synthetic · osm_parse · osm_road_graph · osm_road_mask · osm_road_loops · osm_route · japan_world · japan_stats
*Provenance: driveplateau.py — DRIVE 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.