Table of Contents

Namespace GeometryHelper.Meshing

Classes

CellOptions3

How a body is cut into cells: how each of the grid's three axes is divided, the joint between neighbouring cells, and how near a corner of the body a cut is moved onto it.

The options are immutable, so one instance can be shared between threads and kept as a setting. The factories give the usual ones: Grid(double, double, double, double, GridAlignment) for cells of a size, Layers(double, double, GridAlignment) for lifts up the grid's Z axis, and Divide(int, int, int, double) for equal cells by count; the constructor gives the rest, each axis its own CellAxis. Which way the axes run, and where a cell starts, is the MeshPlacement3's.

GeoCell3

One cell of a body cut into a grid: where it stands in the grid, the whole cell, and the part of it the body holds.

I, J and K count the cell along the grid's X, Y and Z axes from nought. A cell the body holds in more than one piece, as a cell across the notch of a U holds two, comes as one GeoCell3 a piece, the same indexes on each, Piece telling them apart. The cell is immutable.

GeoCellGrid3

A body cut into the cells of a grid: blocks, bays, lifts or bars, as the CellOptions3 divided its axes.

The grid stands in Frame: its axes are the grid's, and its origin the corner where the first cell along each axis starts. Every cell the body holds any of comes as a GeoCell3, a closed body of what the body holds of it, the whole cell beside it as a box; a cell the body holds in several pieces comes once a piece. The cells together hold all of the body, less the joints, and do not overlap. They come layer by layer up the grid's Z axis, row by row along Y within a layer, and along X within a row, the pieces of one cell in turn. The grid is immutable.

GeoMesh2

A closed shape of the plane broken into faces that share their corners: triangles, the cells of a grid, strips or convex pieces, as MeshKind says.

Every face is a simple polygon with no hole, running counter-clockwise, given by the indexes of its corners in Vertices. The faces lie within the shape's material and cover it without overlapping, holes left open, and meet edge to edge: a corner of one face standing on the side of another is a corner of that one too, so two faces side by side share the same edge, run the two ways round. Such a corner may leave a face with three corners in a row. The mesh is immutable.

GeoMesh3

A flat shape of space broken into faces that share their corners: triangles, the cells of a grid, strips or convex pieces, as MeshKind says.

The mesh is a GeoMesh2 standing in a plane of space. Every face is a simple polygon with no hole, running counter-clockwise seen from the side Normal points to, given by the indexes of its corners in Vertices; the faces lie within the shape's material, cover it without overlapping, holes left open, and meet edge to edge. The shape's own corners are vertices exactly where the shape has them. Frame is the plane it was laid out in, with its X axis along the grid's first axis, and ToMesh2() gives the faces drawn in it, as an elevation of a wall is drawn. The mesh is immutable.

Mesh2

Breaking the closed shapes of the plane into the faces of a GeoMesh2: triangles, the cells of a grid, strips or convex pieces.

Mesh3

Breaking the flat shapes of space into the faces of a GeoMesh3: triangles, the cells of a grid, strips or convex pieces, as the shapes of the plane break into a GeoMesh2; and cutting bodies and boxes into the cells of a GeoCellGrid3.

MeshOptions

How a closed shape of the plane is meshed: the kind of faces, and for a grid the size of its cells, the joints between them and where the grid stands.

The options are immutable, so one instance can be shared between threads and kept as a setting. The factories give the usual ones: Triangles, Grid(double, double, double, GridAlignment, GridAlignment), Strips(double) and Convex; the constructor gives the rest, a turned grid among them.

MeshPlacement3

Where a grid, or strips, stand in space: which way the axes run, as MeshAxes says, and, when given, the point a cell starts at.

The same placement serves a flat shape, meshed into a GeoMesh3, and a body, cut into a GeoCellGrid3: over a flat shape the axes give the direction of the grid's first axis in the shape's plane, and through a body all three axes of the grid. The placement is immutable, so one instance can be shared between threads and kept as a setting.

Structs

CellAxis

How one axis of a grid of cells is divided: by a size, by a count, or not at all.

A body cut into cells is divided along each of its grid's three axes on its own, so a slab can be cut into bays along X and Y and left whole through its thickness, and a wall into lifts up Z and left whole along its length. The value is immutable; Whole, the default, leaves the axis whole.

Enums

GridAlignment

Where a grid stands along one of its axes against the shape it is laid over, measured between the shape's two furthest corners along that axis.

MeshAxes

Which way the axes of a grid, or of strips, run in space: over a flat shape, its first axis within the shape's plane; through a body, all three.

MeshKind

How a closed shape of the plane is broken into the faces of a GeoMesh2.