Skip to content

Class SFCGAL::algorithm::Buffer3D

ClassList > SFCGAL > algorithm > Buffer3D

Computes a 3D buffer around a Point orLineString .

  • #include <buffer3D.h>

Public Types

Type Name
enum BufferType
Buffer type enumeration.

Public Functions

Type Name
Buffer3D (const Geometry & inputGeometry, double radius, int segments)
Constructs a Buffer3D object.
std::unique_ptr< PolyhedralSurface > compute (BufferType type) const
Computes the 3D buffer.

Public Types Documentation

enum BufferType

enum SFCGAL::algorithm::Buffer3D::BufferType {
    ROUND,
    CYLSPHERE,
    FLAT
};

Public Functions Documentation

function Buffer3D

Constructs a Buffer3D object.

SFCGAL::algorithm::Buffer3D::Buffer3D (
    const Geometry & inputGeometry,
    double radius,
    int segments
) 

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

Exception:


function compute

Computes the 3D buffer.

std::unique_ptr< PolyhedralSurface > SFCGAL::algorithm::Buffer3D::compute (
    BufferType type
) const

Parameters:

  • type The type of buffer to compute

Returns:

A PolyhedralSurface representing the 3D buffer

Exception:

  • std::invalid_argument if an invalid buffer type is provided


The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/algorithm/buffer3D.h