 |
Two parametric functions on a single HPlot3DP canavs
Source code name: "func_param2.py"
Programming language: Python
Topic: Function/Parametric
DMelt Version 1. Last modified: 12/11/2015. License: Pro
https://datamelt.org/code/cache/func_param2_2326.py
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
from java.awt import Color
from jhplot import *
c1 = HPlot3DP("Canvas",600,600)
c1.setGTitle('3D surfaces')
c1.visible();
f1=FPR('n=2.5 Pi; z=sin(n*x)+sin(n*y); z=z/n')
f1.setFillColor(Color.red)
f1.setLineColor(Color.green)
f2=FPR('u=2 Pi u; v=2 Pi v; r=0.6+.2cos(u); z=.8 sin(u); x=r cos(v); y=r sin(v)')
f2.setFillColor(Color.blue)
c1.draw(f2)
c1.draw(f1)
You see the box below because you did not login.