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

#include <MRAlignTextToMesh.h>

+ Inheritance diagram for MR::TextMeshAlignParams:

Public Attributes

MeshTriPoint startPoint
 Position on mesh, where text's pivot point is mapped.
 
Vector2f pivotPoint {0.0f, 0.0f}
 
Vector3f direction
 Direction of text, must be not zero.
 
const Vector3f * textNormal {nullptr}
 Text normal to surface, if nullptr - use mesh normal at startPoint
 
float fontHeight {1.0f}
 Font height, meters.
 
float surfaceOffset {1.0f}
 Text mesh inside and outside offset of input mesh.
 
float textMaximumMovement {2.5f}
 Maximum possible movement of text mesh alignment, meters.
 
bool fontBasedSizeCalc { false }
 If true then size of each symbol will be calculated from font height, otherwise - on bounding box of the text.
 
- Public Attributes inherited from MR::SymbolMeshParams
std::string text
 Text that will be made mesh.
 
int fontDetalization {5}
 Detailization of Bezier curves on font glyphs.
 
Vector2f symbolsDistanceAdditionalOffset { 0.0f, 0.0f }
 
float symbolsThicknessOffsetModifier { 0.0f }
 
AlignType align {AlignType::Left}
 alignment of the text inside bbox
 
std::filesystem::path pathToFontFile
 Path to font file.
 

Additional Inherited Members

- Static Public Attributes inherited from MR::SymbolMeshParams
static constexpr float MaxGeneratedFontHeight = 5826.0f * 1e-3f
 _WIN32
 

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