Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to plot implicit surfaces as scattered points (no interpolation)

Hi there, I am failing in plotting as scattered an implicit function. In some posts it is suggested to use point3d however can't see how to that ! This is my basic example:

var('x,y,z,yaxis')
#
ff = 0.28  
hh = 0.07
aa=1
bb=1
dd=1
F=(x^2 + y^2 - 1)^2 + (z -0.5)^2 * ( (y^2/aa^2 + (z + hh)^2 -1)^2 - dd^2 * (1 + bb*(z-0.5)^2) )
r = 2
#Below what I need to work on. 
s=implicit_plot3d(F, (x,-r,r), (y,-r,r), (z,-r,r), plot_points=120, color=mycolor, frame=False)
s.show(viewer='threejs')

Unfortunatyely I'm missing some points to share a picture of the desire. Your help is appreciated.