MeshLib
 
Loading...
Searching...
No Matches
MR::OffsetContoursParams Struct Reference

#include <MROffsetContours.h>

Public Types

enum class  Type { Offset , Shell }
 type of offset More...
 
enum class  EndType { Round , Cut }
 type of offsetting on ends of non-closed contours More...
 
enum class  CornerType { Round , Sharp }
 type of positive offset curve in corners More...
 

Public Attributes

enum MR::OffsetContoursParams::Type Offset
 
enum MR::OffsetContoursParams::EndType Round
 
enum MR::OffsetContoursParams::CornerType Round
 
float minAnglePrecision = PI_F / 9.0f
 precision of round corners and ends
 
float maxSharpAngle = PI_F * 2.0f / 3.0f
 limit for sharp corners connection
 
OffsetContoursVertMapsindicesMap = nullptr
 optional output that maps result contour ids to input contour ids
 

Member Enumeration Documentation

◆ 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

enum class MR::OffsetContoursParams::Type
strong

type of offset

Enumerator
Offset 

One-side signed offset, requires closed contours.

Shell 

Two-side offset.

Member Data Documentation

◆ indicesMap

OffsetContoursVertMaps* MR::OffsetContoursParams::indicesMap = nullptr

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

enum MR::OffsetContoursParams::Type MR::OffsetContoursParams::Offset

◆ Round [1/2]

enum MR::OffsetContoursParams::EndType MR::OffsetContoursParams::Round

◆ Round [2/2]

enum MR::OffsetContoursParams::CornerType MR::OffsetContoursParams::Round

The documentation for this struct was generated from the following file: