Generate a 3D surface mesh from a text string.
Definition: text_mesher.h:42
SurfaceMesh * generate(const std::string &text, float x, float y, int font_size, float extrude, bool collision_free=false)
Generate a 3D surface mesh of a text.
Definition: text_mesher.cpp:283
void set_font(const std::string &font_file)
Change the font.
Definition: text_mesher.cpp:63
TextMesher(const std::string &font_file, unsigned short quality=4)
Create an instance of TextMesher.
Definition: text_mesher.cpp:49
bool extrude(SurfaceMesh *mesh, const std::vector< Polygon2 > &contours, float height)
Extrudes a 3D surface mesh from a set of simple contours.
Definition: extrusion.cpp:38