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
 
int fontDetalization {5}
 
Vector2f symbolsDistanceAdditionalOffset { 0.0f, 0.0f }
 
float symbolsThicknessOffsetModifier { 0.0f }
 
AlignType align {AlignType::Left}
 
std::filesystem::path pathToFontFile
 

Additional Inherited Members

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

Member Data Documentation

◆ direction

Vector3f MR::TextMeshAlignParams::direction

Direction of text, must be not zero.

◆ fontBasedSizeCalc

bool MR::TextMeshAlignParams::fontBasedSizeCalc { false }

If true then size of each symbol will be calculated from font height, otherwise - on bounding box of the text.

◆ fontHeight

float MR::TextMeshAlignParams::fontHeight {1.0f}

Font height, meters.

◆ pivotPoint

Vector2f MR::TextMeshAlignParams::pivotPoint {0.0f, 0.0f}

Position of the startPoint in a text bounding box (0, 0) - bottom left, (0, 1) - bottom right, (0.5, 0.5) - center, (1, 1) - top right

◆ startPoint

MeshTriPoint MR::TextMeshAlignParams::startPoint

Position on mesh, where text's pivot point is mapped.

◆ surfaceOffset

float MR::TextMeshAlignParams::surfaceOffset {1.0f}

Text mesh inside and outside offset of input mesh.

◆ textMaximumMovement

float MR::TextMeshAlignParams::textMaximumMovement {2.5f}

Maximum possible movement of text mesh alignment, meters.

◆ textNormal

const Vector3f* MR::TextMeshAlignParams::textNormal {nullptr}

Text normal to surface, if nullptr - use mesh normal at startPoint


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