Computes a 3D buffer around a Point or LineString.
More...
#include <buffer3D.h>
Computes a 3D buffer around a Point or LineString.
◆ BufferType
Buffer type enumeration.
Enumerator |
---|
ROUND | Minkowski sum with a sphere.
|
CYLSPHERE | Union of cylinders and spheres.
|
FLAT | Construction of a disk on the bisector plane.
|
◆ Buffer3D()
SFCGAL::algorithm::Buffer3D::Buffer3D |
( |
const Geometry & | inputGeometry, |
|
|
double | radius, |
|
|
int | segments ) |
Constructs a Buffer3D object.
- Parameters
-
inputGeometry | The input geometry (must be a Point or LineString) |
radius | The buffer radius |
segments | The number of segments used to approximate curved surfaces |
- Exceptions
-
◆ compute()
auto SFCGAL::algorithm::Buffer3D::compute |
( |
BufferType | type | ) |
const |
Computes the 3D buffer.
- Parameters
-
type | The type of buffer to compute |
- Returns
- A PolyhedralSurface representing the 3D buffer
- Exceptions
-
std::invalid_argument | if an invalid buffer type is provided |