mymesh.implicit.box#
- mymesh.implicit.box(x1, x2, y1, y2, z1, z2)[source]#
Implicit function of a box.
- Parameters:
x1 (float) – x coordinate lower bound
x2 (float) – x coordinate upper bound
y1 (float) – y coordinate lower bound
y2 (float) – y coordinate upper bound
z1 (float) – z coordinate lower bound
z2 (float) – z coordinate upper bound
- Returns:
func – Implicit function of three parameters (x, y, z)
- Return type:
function
Examples
surface = implicit.SurfaceMesh(implicit.box(.1,.9,.1,.9,.1,.9), [0,1,0,1,0,1], 0.05) surface.plot(bgcolor='w')