mymesh.implicit.sphere#
- mymesh.implicit.sphere(center, radius)[source]#
Implicit function of a sphere.
- Parameters:
center (array_like) – 3D coordinates ([x, y, z]) of the center of the sphere.
radius (float) – radius of the sphere.
- Returns:
func – Implicit function of three parameters (x, y, z).
- Return type:
function
Examples
surface = implicit.SurfaceMesh(implicit.sphere([0,0,0],1), [-1,1,-1,1,-1,1], 0.1) surface.plot(bgcolor='w')