Graphscad
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Graphscad

Graphscad : The Graphic Nodal Editor for OpenScad
 
HomeLatest imagesSearchRegisterLog in

 

 Idea: a new control statement CASE

Go down 
2 posters
AuthorMessage
Kpacnaja_Shapotshka




Messages : 8
Date d'inscription : 2017-02-11

Idea: a new control statement CASE Empty
PostSubject: Idea: a new control statement CASE   Idea: a new control statement CASE Icon_minitimeSun 12 Feb - 0:51

Hi,

what the OpenSCAD language is missing is a case control statement. This leads to tremendous if-than-else-cascades, when a case statement would be a much more readable alternative.

How about a case node in Graphscad with 2 to n boolean expression inputs , an object input for each expression being true and one else object input. This can be automatically translated into the OpenSCAD-if-then-else cascade.

You made advanced object nodes like emptysphere, pulley or roundcube. An advanced control statement node like a case node would also make readability of a node graph much more simple.

Kpacnaja_Shapotshka
Back to top Go down
Admin
Admin



Messages : 59
Date d'inscription : 2017-01-08

Idea: a new control statement CASE Empty
PostSubject: Re: Idea: a new control statement CASE   Idea: a new control statement CASE Icon_minitimeSun 12 Feb - 14:41

good suggestion... will create a switchcase node.
Back to top Go down
https://graphscad.forumotion.com
 
Idea: a new control statement CASE
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Graphscad :: Feature Requests-
Jump to: