Ask Your Question

openscript's profile - activity

2015-09-05 18:29:24 +0200 received badge  Popular Question (source)
2015-09-05 18:29:24 +0200 received badge  Notable Question (source)
2014-06-16 23:29:38 +0200 received badge  Good Question (source)
2014-02-06 08:57:31 +0200 received badge  Nice Question (source)
2014-02-06 08:08:34 +0200 received badge  Student (source)
2014-02-06 03:32:25 +0200 received badge  Editor (source)
2014-02-06 03:31:16 +0200 asked a question Get a 3d plot with points (no surface) from a parametric_plot3d?

I would like to plot only points in a defined resolution, which I get from a parametric_plot3d().

Here is my Sage code:

var('u,v')
a(u,v)=-7*sin(((u-100)/(100))*pi)^2+0.2*sin(((3*u-300)/(10))*pi)
b(u,v)=-8*cos(((u-100)/(100))*pi)+0.2*cos(((3*u-300)/(10))*pi)
c(u,v)=-12*cos(((u-100)/(100))*pi)+15*sin(((v-20)/(40))*pi)
def x(u,v):
    if u < 100:
        return 7*sin((u/100)*pi)^2+0.15*sin((3*u/10)*pi)
    else:
        return a(u,v)
def y(u,v):
    if u < 100:
        return 8*cos((u/100)*pi)+0.15*cos((3*u/10)*pi)
    else:
        return b(u,v)
def z(u,v):
    if u < 100:
        return 12*cos((u/100)*pi)+15*sin(((v-20)/40)*pi)
    else:
        return c(u,v)
p = parametric_plot3d([x,y,z], (u, 0, 200), (v, 0, 40), frame=False)

I'm looking for a result, which is similar to: image description So I don't need a real surface, only the points.

How can I achieve this?