12
$\begingroup$

I would like to make a surface that obeys the equation:

z = Asin(x) + Asin(y), 0<=z<=1; 0<=x<=2npi; 0<=y<=2npi

Where I would like to be able to change n to increase/decrease the number of cycles and change the amplitude A. I attempted to generate a sine wave via a script that I found; then I tried to extrude it, duplicate it, and then rotate one of the planes so that they intersected at a 90degree angle. The results were not very satisfying...

$\endgroup$
15
$\begingroup$

I don't think there's currently a way to add surfaces, but if you are okay with using meshes, you can use the Extra objects addon (it's not enabled by default).

To enable the addon, open the User Preferences, by pressing Ctrl + Alt + U; then, switch to the Add-ons, search for "extra" and enable the one that reads "Add Mesh: Extra Objects", by checking the box.

enter image description here

Then, you can close the User Preferences window and, in the 3D View, press Shift + A and then select Mesh>Math Function>Z Math Function.

enter image description here

After that, in the Toolbar (T), you will find a box where to enter your function.

enter image description here

If you prefer, you can bring these options up by pressing F6.

enter image description here

After you've entered your function, you can add a Subdivision Surface modifier to make it smoother.

$\endgroup$
  • $\begingroup$ Where is the menu that I can access addons from ? $\endgroup$ – Overzealous Jan 31 '16 at 18:47
  • 2
    $\begingroup$ @Overzealous File > User Preferances, or [Ctrl]+[Alt]+[U]. $\endgroup$ – PGmath Jan 31 '16 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.