#include <MROffsetContours.h>
◆ CornerType
type of positive offset curve in corners
| Enumerator |
|---|
| Round | creates round corners (use minAnglePrecision)
|
| Sharp | creates sharp connected corner (use maxSharpAngle as limit)
|
◆ EndType
type of offsetting on ends of non-closed contours
| Enumerator |
|---|
| Round | creates round ends (use minAnglePrecision)
|
| Cut | creates sharp end (same as Round with minAnglePrecision < 180 deg)
|
◆ Type
type of offset
| Enumerator |
|---|
| Offset | One-side signed offset, requires closed contours.
|
| Shell | Two-side offset.
|
◆ indicesMap
optional output that maps result contour ids to input contour ids
◆ maxSharpAngle
| float MR::OffsetContoursParams::maxSharpAngle = PI_F * 2.0f / 3.0f |
limit for sharp corners connection
◆ minAnglePrecision
| float MR::OffsetContoursParams::minAnglePrecision = PI_F / 9.0f |
precision of round corners and ends
◆ Offset
◆ Round [1/2]
◆ Round [2/2]
The documentation for this struct was generated from the following file: