载入中...
搜索中...
未找到
eve::procgen::urban::UrbanGenerator类 参考

Hierarchical co-generation of parcels and streets (paper Section 4) plus the global geometric optimization (paper Section 5). 更多...

#include <UrbanGenerator.h>

类

struct  GenState
 

Public 成员函数

 UrbanGenerator (UrbanOptions opts)
 Urban generator.
 
bool generate (std::string *error=nullptr)
 Run the pipeline. On failure error receives a human-readable reason.
 
const UrbanLayout & layout () const
 Layout.
 

详细描述

Hierarchical co-generation of parcels and streets (paper Section 4) plus the global geometric optimization (paper Section 5).

At each hierarchical level every splittable parcel is binary-partitioned by the best streamline chosen with the quality metric of Eq. (2); short edges in the parcel mesh are removed; unreachable parcels are grouped and given street access (I/L-shaped accesses + turn-aware Dijkstra connections, paper Section 4.2). Finally the vertex positions are optimized with the five-term energy of Eq. (3).

在文件 UrbanGenerator.h 第 24 行定义.

构造及析构函数说明

◆ UrbanGenerator()

eve::procgen::urban::UrbanGenerator::UrbanGenerator ( UrbanOptions  opts)
explicit

Urban generator.

在文件 UrbanGenerator.cpp 第 231 行定义.

成员函数说明

◆ generate()

◆ layout()

const UrbanLayout & eve::procgen::urban::UrbanGenerator::layout ( ) const
inline

Layout.

在文件 UrbanGenerator.h 第 33 行定义.

被这些函数引用 eve::procgen::urban::generateUrbanGrid() , 以及 eve::procgen::urban::generateUrbanMesh().


该类的文档由以下文件生成: