TextEntity class in RhinoWIP Buggy?

rhinocommon
rhinowip

#1

I just made a quick fix for a Rhino 5 / GH 0.9 component, which uses TextEntity class in RhinoCommon.
When the “Explode” method is used on the TextEntity on RhinoWIP, the output seems to be wrong. The alignment should be MiddleCenter on both pictures. The bottom one shows RhinoWIP / GH 1.0 :


(Dale Fugier) #2

@FlorianFrank, can you provide a Grasshopper solution, that we can run here, that demonstrates the problem?

– Dale


#3

Hi Dale,
sorry for my late reply. I needed to investigate more. Here is an updated version of the above example. It seems, that the font is also ignored. The exploded text is always “Arial” and aligned at “TopLeft”.

I couldn’t find any bug in my script, that may cause this problem.

Kindly,
Florian

ExplodeTextBug.gh (182.5 KB)


#4

The TextEntity’s boundingbox is also matching the exploded result, instead of the visual represented text object:


(Dale Fugier) #5

Hi @FlorianFrank,

Thanks for getting back with me. I’ve logged the bug.

https://mcneel.myjetbrains.com/youtrack/issue/RH-40651

– Dale


(Dale Fugier) #6

Hi @FlorianFrank,

I see your “3D Text” cluster is password protected. Anyway you can provide access so I can see how you’re creating the text?

– Dale


(Dale Fugier) #7

Hi @FlorianFrank,

Sorry, here is the issue.

https://mcneel.myjetbrains.com/youtrack/issue/RH-40693

Note, rather than using TextEntity.Explode, there is also the new Curve.CreateTextOutlines static function.

– Dale


(Dan Belcher) #8

RH-40651 and RH-40693 should be fixed in the latest WIP. Please give it a try.