MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / test_text_mesh

Function test_text_mesh

test_python/test_textMesh.py:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def test_text_mesh():
8 params = mrmesh.SymbolMeshParams()
9 params.text = "Hello World"
10 params.pathToFontFile = os.path.join(
11 os.path.dirname(os.path.abspath(__file__)),
12 "../thirdparty/Noto_Sans/NotoSans-Regular.ttf",
13 )
14 textMesh = mrmesh.createSymbolsMesh(params)
15 assert textMesh.volume() > 0
16
17
18def test_aligned_text_mesh():

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
volumeMethod · 0.45

Tested by

no test coverage detected