Skip to content
Discussion options

You must be logged in to vote

Hello!

It seems that the problem here is badly aligned direction of the text

I suggest that direction like this should work better:

text = "wwwwWWW"
point1 = mm.Vector3f(34.913, -10.890, 6.468)
point2 = mm.Vector3f(17.289, 18.910, 3.531)

params = mm.TextMeshAlignParams()
params.text = text
params.fontDetalization = 2
params.align = mm.AlignType.Center
params.fontHeight = 2  # use smaller font size
params.surfaceOffset = 2
params.pathToFontFile = fontsize
params.fontBasedSizeCalc = True
# params.symbolsThicknessOffsetModifier = 0.01
params.startPoint = mesh.findClosestPoint(point1).mtp

# use direction that is tangent to mesh
dir = (point2-point1).normalized()
norm = mesh.normal(params.s…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@leye123
Comment options

@Grantim
Comment options

@leye123
Comment options

Answer selected by leye123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants