# CartesianΒΆ

Type: | section |
---|---|

Appearance: | optional |

Excludes: | Triangulation |

Defines the texture as a graph on a cartesian grid. A Graph consits of height values where and are the number of equidistant grid points in and directions.

```
Cartesian {
NGridPointsX = 20
NGridPointsY = 20
Graph = [z_11 z_12 ...
z_21 z_22 ...
. .
. .
. . ]
}
```

There are three ways to define the Cartesian grid in and directions.

- Set the grid points as vectors: GridPointsX and GridPointsY are the point vectors in and , respectively.
- Specify number of used grid points: For each coordinate direction, equally spaced grid points are used to sample the bounding box. NGridPointsX and NGridPointsY are the numbers of points in and directions, respectively.
- Specify the spacing: Each coordinate direction is divided into segments with given length. SpacingX and SpacingY are the spacings in and directions, respectively.