terça-feira, 1 de abril de 2014

Sloped surface using attractor points

Sine Wave: The chosen method to generate the model was to use a sine curve as the basis of it, not just as the attractor points. The dimensions of the model are defined by the wavelength and amplitude of the sine, as well as the number of wavelengths used. as the script bellow shows, first the sine wave was created (allowing it to be adapted trough multiplication modifiers) and then, using the coordinates of its points, a field of points is generated.

Script for the sine wave and field of points
Sine wave and field of points


Attractor and lines: Afterwards, the sine points were used as attractors, generating a three-dimensional field of points (which generated extra information, making the use of a Range modifier necessary). Then, each point was connected to its correspondent* in the XY plane, generating the lines which will form the surface.
*Represented here as a new element to facilitate the reading

Script for the field of points and the lines

Field of points generating lines
Surfaces and final model: To get to the final result, two lofts were used: one connecting lines in the X axis and one connecting the lines in the Y axis. This would ensure the model is structurally sound. The final model is the result of these surfaces extruded in their respective axis'. The script was thoroughly tested in order to check if the change of parameters would break the model, but after some small changes, it proves to be completely adaptable.
Script generating the surfaces and the model

Final model
Model using different parameters

Nenhum comentário:

Postar um comentário