【可视化编程是什么】

设计通常涉及建立视觉、系统性、或几何部分的设计之间的关系。多次使用这些关系是由流线型,让我们从概念到实体的过程。也许在不知道的情况下,我们正在通过算法——定义一套有规律的的基本原理。进行,输入、处理和输出。编程允许我们使用这样形式化算法。

【 算法指南 】

Dynamo提供一些强大的运算,它可以运载一些错误的算法。算法可以产生意想不到的效果,或者很酷的东西。事实上他们很普通。让我们用一例子来说明一下。像一个纸鹤。我们从一个正方形的纸对折,遵循一系列的折叠步骤(处理行动),最终就形成了纸鹤,在这个过程中,也就是一个算法的过程。

所以算法是什么,它是抽象的步骤,我们可以在几个方面来表示——数据或图形

文本命令: (以下是纸鹤的图形折叠的图)

  1. Start with a square piece of paper, coloured side up. Fold in half and open. Then fold in half the other way.
  2. Turn the paper over to the white side. Fold the paper in half, crease well and open, and then fold again in the other direction.
  3. Using the creases you have made, Bring the top 3 corners of the model down to the bottom corner. Flatten model.
  4. Fold top triangular flaps into the center and unfold.
  5. Fold top of model downwards, crease well and unfold.
  6. Open the uppermost flap of the model, bringing it upwards and pressing the sides of the model inwards at the same time. Flatten down, creasing well.
  7. Turn model over and repeat Steps 4-6 on the other side.
  8. Fold top flaps into the center.
  9. Repeat on other side.
  10. Fold both ‘legs’ of model up, crease very well, then unfold.
  11. Inside Reverse Fold the “legs” along the creases you just made.
  12. Inside Reverse Fold one side to make a head, then fold down the wings.
  13. You now have a crane.

图形指令:

Needs Update- Origami Crane

Programming Defined 编程定义

使用这些设置的指令命令你就能够做成纸鹤,如果你沿着自己的一个进行操作。唯一的区别是我们得到的指令规范化编程,在编程中缩短计算机一系列行为或处理的一个可执行程序。如果我们把上面的创建纸鹤指令形式输入电脑并执行的这么一个过程。也可以简单理解为算法。

我们会发现在程序设计中,必须依靠电脑某种有效形式进行沟通。采用各种形式的编程语言,如Javascript、Python或c。如果能写出一组可重复的指令,就像纸鹤,我们只需要把它翻译为计算机语言,让计算机能够制作出纸鹤,甚至多种不同的纸鹤,这就是编程的能力,它将重复执行任何任务或一组任务,我们分配给它制作,没有人为的错误。

可视化编程定义

如果你是负责编写说明折纸鹤,你怎么说明呢? 你会让他们与图形,文本来说明,或者两者组合说明.

如果你的回答包含图形,那你就可以使可视化编程。在这个过程中,本质上是相同的编程和可视化编程。他们使用相同的框架,然而我们的程序指令和关系是通过图形用户界面(或“视觉”),而不是输入文本。

Visual Program: 可视化编程

Textual Program: 文本程序

  1. myPoint = Point.ByCoordinates(0.0,0.0,0.0);
  2. x = 5.6;
  3. y = 11.5;
  4. attractorPoint = Point.ByCoordinates(x,y,0.0);
  5. dist = myPoint.DistanceTo(attractorPoint);
  6. myCircle = Circle.ByCenterPointRadius(myPoint,dist);

这个我就不翻译了,如果会编程的通知一看就懂了。

我们的算法的结果:

可视化参数编程的方式降低了设计师门槛,我们会看到Dynamo在视觉编程中,仍然可以在应用程序中使用文本编程.