MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::BendContoursAlongCurveParams Struct Reference

Parameters for aligning 2d contours along given curve. More...

#include <MRAlignContoursToMesh.h>

Public Attributes

float pivotCurveTime = 0
 Position on the curve, where bounding box's pivot point is mapped.
 
Vector2f pivotBoxPoint {0.0f, 0.0f}
 
CurveFunc curve
 converts (x in [0,1], pivotY) into position on curve
 
bool stretch = true
 stretch all contours along curve to fit in unit curve range
 
float extrusion { 1.0f }
 Contours extrusion outside of curve level.
 

Detailed Description

Parameters for aligning 2d contours along given curve.

Member Data Documentation

◆ curve

CurveFunc MR::BendContoursAlongCurveParams::curve

converts (x in [0,1], pivotY) into position on curve

◆ extrusion

float MR::BendContoursAlongCurveParams::extrusion { 1.0f }

Contours extrusion outside of curve level.

◆ pivotBoxPoint

Vector2f MR::BendContoursAlongCurveParams::pivotBoxPoint {0.0f, 0.0f}

Position of the curve(pivotCurveTime) in the contours' bounding box: (0, 0) - bottom left, (0, 1) - bottom right, (0.5, 0.5) - center, (1, 1) - top right

◆ pivotCurveTime

float MR::BendContoursAlongCurveParams::pivotCurveTime = 0

Position on the curve, where bounding box's pivot point is mapped.

◆ stretch

bool MR::BendContoursAlongCurveParams::stretch = true

stretch all contours along curve to fit in unit curve range


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