2026-07-23 06:28:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
#include "vde/core/polygon.h"
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
namespace vde::boolean {
|
2026-07-23 08:19:24 +00:00
|
|
|
using core::Point2D;
|
|
|
|
|
using core::Polygon2D;
|
2026-07-23 06:28:34 +00:00
|
|
|
|
|
|
|
|
/// 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
|