Generator namespace.
More...
|
| auto | building (const Geometry &g, const Kernel::FT &wallHeight, const Kernel::FT &roofSlope) -> std::unique_ptr< Geometry > |
| | Basic building generator relying on a straight skeleton.
|
| auto | disc (const Point ¢er, const double &radius, const unsigned int &nQuadrantSegments=8U) -> std::unique_ptr< Polygon > |
| | Generate a discrete circle.
|
| auto | hoch (const unsigned int &order) -> std::unique_ptr< Polygon > |
| | generate hoch snowflake
|
| auto | sierpinski (const unsigned int &order) -> std::unique_ptr< MultiPolygon > |
| | generate sierpinski triangle
|
Generator namespace.
- Todo
- should be moved from detail to SFCGAL folder
◆ building()
| SFCGAL_API auto SFCGAL::generator::building |
( |
const Geometry & | g, |
|
|
const Kernel::FT & | wallHeight, |
|
|
const Kernel::FT & | roofSlope ) -> std::unique_ptr< Geometry > |
Basic building generator relying on a straight skeleton.
- Parameters
-
| g | Input geometry |
| wallHeight | wall height |
| roofSlope | roof slope |
- Returns
- A new geometry representing a building with wall height and roof slope
- Warning
- only supports Polygon and MultiPolygon
- Todo
- unittest
◆ disc()
| SFCGAL_API auto SFCGAL::generator::disc |
( |
const Point & | center, |
|
|
const double & | radius, |
|
|
const unsigned int & | nQuadrantSegments = 8U ) -> std::unique_ptr< Polygon > |
Generate a discrete circle.
- Parameters
-
| center | The center point of the circle |
| radius | The radius of the circle |
| nQuadrantSegments | Number of segments per quadrant |
- Returns
- A unique pointer to the generated polygon
- Todo
- unittest
◆ hoch()
| SFCGAL_API auto SFCGAL::generator::hoch |
( |
const unsigned int & | order | ) |
-> std::unique_ptr< Polygon > |
generate hoch snowflake
- Parameters
-
| order | The order of the snowflake |
- Returns
- A unique pointer to the generated polygon
- Todo
- unittest
◆ sierpinski()
| SFCGAL_API auto SFCGAL::generator::sierpinski |
( |
const unsigned int & | order | ) |
-> std::unique_ptr< MultiPolygon > |
generate sierpinski triangle
- Parameters
-
| order | The order of the sierpinski triangle |
- Returns
- A unique pointer to the generated multipolygon
- Todo
- unittest