Namespace SFCGAL::generator#
Generator namespace. More...
Public Types#
Type | Name |
---|---|
typedef CGAL::Straight_skeleton_2< Kernel > | Straight_skeleton_2 |
Public Functions#
Type | Name |
---|---|
void | _buildingWall (const Polygon_2 & ring, const Kernel::FT & wallHeight, PolyhedralSurface & shell) |
auto | _hoch (const std::vector< Kernel::Vector_2 > & points) |
auto | _sierpinski (const std::vector< Kernel::Triangle_2 > & triangles) |
auto | building (const Polygon & g, const Kernel::FT & wallHeight, const Kernel::FT & roofSlope) Basic building generator relying on a straight skeleton. |
auto | building (const MultiPolygon & g, const Kernel::FT & wallHeight, const Kernel::FT & roofSlope) Basic building generator relying on a straight skeleton. |
auto | building (const Geometry & g, const Kernel::FT & wallHeight, const Kernel::FT & roofSlope) Basic building generator relying on a straight skeleton. |
auto | disc (const Point & center, const double & radius, const unsigned int & nQuadrantSegments=8U) |
auto | hoch (const unsigned int & order) |
auto | sierpinski (const unsigned int & order) |
Detailed Description#
Todo
should be moved from detail to SFCGAL folder
Public Types Documentation#
typedef Straight_skeleton_2#
using SFCGAL::generator::Straight_skeleton_2 = typedef CGAL::Straight_skeleton_2<Kernel>;
Public Functions Documentation#
function _buildingWall#
void generator::_buildingWall (
const Polygon_2 & ring,
const Kernel::FT & wallHeight,
PolyhedralSurface & shell
)
function _hoch#
auto generator::_hoch (
const std::vector< Kernel::Vector_2 > & points
)
function _sierpinski#
auto generator::_sierpinski (
const std::vector< Kernel::Triangle_2 > & triangles
)
function building#
Basic building generator relying on a straight skeleton.
auto generator::building (
const Polygon & g,
const Kernel::FT & wallHeight,
const Kernel::FT & roofSlope
)
function building#
Basic building generator relying on a straight skeleton.
auto generator::building (
const MultiPolygon & g,
const Kernel::FT & wallHeight,
const Kernel::FT & roofSlope
)
function building#
Basic building generator relying on a straight skeleton.
auto generator::building (
const Geometry & g,
const Kernel::FT & wallHeight,
const Kernel::FT & roofSlope
)
Warning:
only supports Polygon and MultiPolygon
Todo
unittest
function disc#
auto generator::disc (
const Point & center,
const double & radius,
const unsigned int & nQuadrantSegments=8U
)
Generate a discrete circle
Todo
unittest
function hoch#
auto generator::hoch (
const unsigned int & order
)
generate hoch snowflake
Todo
unittest
function sierpinski#
auto generator::sierpinski (
const unsigned int & order
)
generate hoch snowflake
Todo
unittest
The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/detail/generator/building.cpp