12 lines
341 B
C++
12 lines
341 B
C++
|
|
#pragma once
|
||
|
|
#include "vde/core/polygon.h"
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
namespace vde::boolean {
|
||
|
|
|
||
|
|
/// Offset a polygon by distance (positive = inflate, negative = deflate)
|
||
|
|
/// Uses straight skeleton approximation via edge normal displacement
|
||
|
|
std::vector<Polygon2D> polygon_offset(const Polygon2D& poly, double distance);
|
||
|
|
|
||
|
|
} // namespace vde::boolean
|