Graphscad

Graphscad : The Graphic Nodal Editor for OpenScad
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Proposed node type: val_to_text

View previous topic View next topic Go down 
AuthorMessage
ChrisLT



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
View previous topic View next topic 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: