SFCGAL  2.2.0
Typedefs | Functions
SFCGAL::generator Namespace Reference

Generator namespace. More...

Typedefs

using Straight_skeleton_2 = CGAL::Straight_skeleton_2< Kernel >
 

Functions

auto building (const Polygon &g, const Kernel::FT &wallHeight, const Kernel::FT &roofSlope) -> std::unique_ptr< Geometry >
 Basic building generator relying on a straight skeleton. More...
 
auto building (const MultiPolygon &g, const Kernel::FT &wallHeight, const Kernel::FT &roofSlope) -> std::unique_ptr< Geometry >
 Basic building generator relying on a straight skeleton. More...
 
void _buildingWall (const Polygon_2 &ring, const Kernel::FT &wallHeight, PolyhedralSurface &shell)
 
auto building (const Geometry &g, const Kernel::FT &wallHeight, const Kernel::FT &roofSlope)
 Basic building generator relying on a straight skeleton. More...
 
auto disc (const Point &center, const double &radius, const unsigned int &nQuadrantSegments=8U)
 Generate a discrete circle. More...
 
auto _hoch (const std::vector< Kernel::Vector_2 > &points) -> std::vector< Kernel::Vector_2 >
 
auto hoch (const unsigned int &order)
 generate hoch snowflake More...
 
auto _sierpinski (const std::vector< Kernel::Triangle_2 > &triangles) -> std::vector< Kernel::Triangle_2 >
 
auto sierpinski (const unsigned int &order)
 generate hoch snowflake More...
 

Detailed Description

Generator namespace.

Todo:
should be moved from detail to SFCGAL folder

Typedef Documentation

using SFCGAL::generator::Straight_skeleton_2 = typedef CGAL::Straight_skeleton_2<Kernel>

Function Documentation

void SFCGAL::generator::_buildingWall ( const Polygon_2 ring,
const Kernel::FT &  wallHeight,
PolyhedralSurface shell 
)
auto SFCGAL::generator::_hoch ( const std::vector< Kernel::Vector_2 > &  points) -> std::vector<Kernel::Vector_2>
auto SFCGAL::generator::_sierpinski ( const std::vector< Kernel::Triangle_2 > &  triangles) -> std::vector<Kernel::Triangle_2>
auto SFCGAL::generator::building ( const Polygon g,
const Kernel::FT &  wallHeight,
const Kernel::FT &  roofSlope 
) -> std::unique_ptr<Geometry>

Basic building generator relying on a straight skeleton.

auto SFCGAL::generator::building ( const MultiPolygon g,
const Kernel::FT &  wallHeight,
const Kernel::FT &  roofSlope 
) -> std::unique_ptr<Geometry>

Basic building generator relying on a straight skeleton.

SFCGAL_API std::unique_ptr< Geometry > SFCGAL::generator::building ( const Geometry &  g,
const Kernel::FT &  wallHeight,
const Kernel::FT &  roofSlope 
)

Basic building generator relying on a straight skeleton.

Warning
only supports Polygon and MultiPolygon
Todo:
unittest
SFCGAL_API std::unique_ptr< Polygon > SFCGAL::generator::disc ( const Point center,
const double &  radius,
const unsigned int &  nQuadrantSegments = 8U 
)

Generate a discrete circle.

Todo:
unittest
SFCGAL_API std::unique_ptr< Polygon > SFCGAL::generator::hoch ( const unsigned int &  order)

generate hoch snowflake

Todo:
unittest
SFCGAL_API std::unique_ptr< MultiPolygon > SFCGAL::generator::sierpinski ( const unsigned int &  order)

generate hoch snowflake

Todo:
unittest