# PLaSK User Manual

#### Page Contents

- Generator3D Class
  - `Generator3D`
  - Methods
  - Descriptions
    - Method Details
      - `Generator3D.__call__()`
      - `Generator3D.clear_cache()`
      - `Generator3D.generate()`

# Generator3D Class

class plask.mesh.Generator3D

  Base class for all 3D mesh generators.

## Methods

`__call__`(...) | Generate mesh for given geometry object or load it from the cache.
`clear_cache`() | Clear cache of generated meshes
`generate`(...) | Generate mesh for given geometry object omitting the cache.

## Descriptions

### Method Details

Generator3D.__call__(geometry)
Generator3D.__call__(object)

  Generate mesh for given geometry object or load it from the cache.

  Parameters:

    - geometry – Geometry to generate mesh at.

    - object – Geometry object to generate mesh at.

Generator3D.clear_cache()

  Clear cache of generated meshes

Generator3D.generate(geometry)
Generator3D.generate(object)

  Generate mesh for given geometry object omitting the cache.

  Parameters:

    - geometry – Geometry to generate mesh at.

    - object – Geometry object to generate mesh at.