Struct SFCGAL::Simplicity#
ClassList > SFCGAL > Simplicity
the class, convertible to bool, that stores the reason why a geom is not simple
#include <Simplicity.h>
Public Functions#
Type | Name |
---|---|
operator bool () const |
|
const std::string & | reason () const |
Public Static Functions#
Type | Name |
---|---|
const Simplicity | complex (const std::string & reason) |
const Simplicity | simple () |
Public Functions Documentation#
function operator bool#
inline SFCGAL::Simplicity::operator bool () const
function reason#
inline const std::string & SFCGAL::Simplicity::reason () const
Public Static Functions Documentation#
function complex#
static inline const Simplicity SFCGAL::Simplicity::complex (
const std::string & reason
)
function simple#
static inline const Simplicity SFCGAL::Simplicity::simple ()
Note:
the class has private ctor to force the use of functions valid() and invalid(reason) that are clearer in the code than to remember that "Valid constructed with a reason is invalid"
The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/Simplicity.h