Skip to content

Z14 SplitF

Gustav Schubert edited this page Feb 6, 2021 · 5 revisions

This sample is about splitting a force vector into components somehow. It is a sample which I wanted for my other application.

Here it is the first sample that uses Param elements.

The idea is - as always - that you select a parameter (element) from the list and change it interactively. In the image below the selected element is Param Force F and it is displayed as a yellow bar. If you look hard you can see a blue line on top of it, which represents the current value.

Note that the length of this thin blue line in front of the thick yellow line will change as the value of the current parameter element changes.

Watch how the drawing updates when you scroll the wheel of the mouse while the Param element is selected.

screenshot of drawing Z14

You can define as many parameters as you need. With the help of the Param element you change a single floating point value. This is especially useful if that value does not have a direct visual representation in the drawing.

Note how I have indented the unimportant items in the list of elements.

I should explain how parameters are set up in more detail.

I am not going to explain the drawing in detail.

Home work

  • Select Line l2 and change the length by scrolling the mouse wheel.
  • Also try Shift wheel while l2 is the current element.
  • Select and change Circle A.
  • Select and change Circle B.
  • Select and change C, the SKK Circle LL C element.
  • Select Param Force F and change it.

You cannot rotate the graph, because 3D rotations are not enabled for this drawing. But you can pan it around with Shift-dragging of the mouse.

What do you think of the visual appearance of the Param element?

Clone this wiki locally