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. More...
|
| |
| auto | disc (const Point ¢er, const double &radius, const unsigned int &nQuadrantSegments=8U) -> std::unique_ptr< Polygon > |
| | Generate a discrete circle. More...
|
| |
| auto | hoch (const unsigned int &order) -> std::unique_ptr< Polygon > |
| | generate hoch snowflake More...
|
| |
| auto | sierpinski (const unsigned int &order) -> std::unique_ptr< MultiPolygon > |
| | generate sierpinski triangle More...
|
| |
| using | Straight_skeleton_2 = CGAL::Straight_skeleton_2< Kernel > |
| |
Generator namespace.
- Todo:
- should be moved from detail to SFCGAL folder
| 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
| 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
| 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
| 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