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