cgal_buffer_point - ObjectVision/GeoDMS GitHub Wiki
Geometric functions > cgal_buffer_point
- cgal_buffer_point(point_data_item, size, nr_angles)
cgal_buffer_point(point_data_item, size, nr_angles) results in a polygon data item with buffer circles around each point in the point_data_item. The resulting data item has the same domain unit as the point_data_item.
The size argument indicates the buffer circle size (radius) in the units of the coordinate system.
The nr_angles argument indicates how many angles are used to make the buffer circles. More angles results in smoother circles but also in more data.
The cgal_ prefix of the function name indicates that the implementation of the operator uses CGAL, which provides exact predicates and exact constructions for maximum numerical precision.
- data item point_data_item with a point value type
- data item size with a Float64 value type
- data item nr_angles with a UInt8 value type
- size must be a positive value.
- nr_angles must be at least 3.
14.0
attribute<dpoint> point_buffer_circles (polygon, pointset) := cgal_buffer_point(pointset/geometry, 10.0, 16b);
More examples of buffer functions can be found here: Buffer processing example