SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
polylineoffset.cpp File Reference

Polyline offset algorithm (Slice Z.5b). More...

#include "render/polylineoffset.h"
#include <QPointF>
#include <cmath>
#include <optional>
Include dependency graph for polylineoffset.cpp:

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 

Functions

QPolygonF OpenSWMM::Render::offsetPolyline (const QPolygonF &input, qreal offsetPx, qreal miterLimit=kDefaultMiterLimit)
 Offset input perpendicular to each segment by offsetPx.
 

Detailed Description

Polyline offset algorithm (Slice Z.5b).

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later