# PLaSK User Manual

#### Page Contents

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

# Rectangular2D.SimpleGenerator Class

class Rectangular2D.SimpleGenerator(split=False)

  Generator of Rectangular2D mesh with lines at edges of all objects.

  > create generator

  Parameters:

    split (bool) – If `True`, the mesh lines are split into two at each object boundary.

## 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

Rectangular2D.SimpleGenerator.__call__(geometry)
Rectangular2D.SimpleGenerator.__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.

Rectangular2D.SimpleGenerator.clear_cache()

  Clear cache of generated meshes

Rectangular2D.SimpleGenerator.generate(geometry)
Rectangular2D.SimpleGenerator.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.