Graphscad : The Graphic Nodal Editor for OpenScad
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in


 Proposed node type: val_to_text

Go down 

Messages : 45
Date d'inscription : 2017-01-30
Localisation : Newbury, Berkshire, England

Proposed node type: val_to_text Empty
PostSubject: Proposed node type: val_to_text   Proposed node type: val_to_text Icon_minitimeFri 24 Feb - 1:01

I may be missing something, but can see no way with existing nodes to create text that includes variables, as you can do in OpenSCAD with the str() function.
So I have created a node called val_to_txt which takes an expression to be evaluated and outputs a 2D text object.
I suppose that an alternative approach might be an expression_to_string node, but it would have to delay evaluation of the expression until OpenSCAD run time, so I'm not sure how to do it.
I have included in the attached zip file a small demo .scad file that shows how this can be used to annotate or dimension a model.
Back to top Go down
View user profile
Proposed node type: val_to_text
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Graphscad :: show your creations-
Jump to: