Graphscad : The Graphic Nodal Editor for OpenScad
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 

 Proposed node type: val_to_text

Go down 

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

PostSubject: Proposed node type: val_to_text   Fri 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
 Similar topics
» What type of Fae are you?
» Tests are not executing in correct order.
» How to use verifyAttribute
» How to select a text in iFrame and bold it?
» How do i get the Xpath value for a radio button so i can click the button on a form

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