s3dlib.surface.CubicSurface

class s3dlib.surface.CubicSurface(rez=0, name=None, **kwargs)[source]

Bases: s3dlib.surface.Surface3DCollection

Cubic 3D surface in Cartesian coordinates with rectangular faces.

Methods are inherited from the Surface3DCollection.

Create a cubic surface of 2 x 2 x 2 units.

Parameters:
  • rez (integer, optional, default: 0) – Number of recursive subdivisions of the rectangulated base faces. Rez values range from 0 to 7.
  • name (string, optional, default: None.) – Descriptive identifier for the geometry.
Raises:

ValueError – If rez is not an integer in range 0 to 7.

Other Parameters:
 

**kwargs – All other parameters are passed on to ‘s3dlib.surface.Surface3DCollection’.