...
Our ship is defined mathematically, which makes it convenient to generate. The relation between the Frame number (0 to 20) and relative width is:
Rel_B = 0.5 - 0.005 * ( Frame - 10 )^2
Figure 1 Our waterline shape is defined by a mathematical function
The shape of the waterline is a polynomial, see figure 1. You can enter this function in the Geometry class in the same way as in tutorial 1.
...
Add the following relation to the class Geometry:
Waterline(@Rel_B,@Frame:STR$(StartFrame) + "(" + STR$(FrameStep) + ")" + STR$(EndFrame))
See figure 2.
Figure 2 Adding an object containing a function
...
In the class Geometry, create a new relation:
B_Frame = 2 * B * Rel_B
The dimension of B_Frame is meters (m).
...