Table of Contents

Method Add

Namespace
GeometryHelper.Export
Assembly
GeometryHelper.dll

Add(GeoSolid3, string)

Adds a body: the mesh of where its material ends, openings cut in.

public ObjWriter Add(GeoSolid3 solid, string name = null)

Parameters

solid GeoSolid3

The body.

name string

What the viewer calls it; a number when none is given.

Returns

ObjWriter

This writer, for adding the next shape.

Exceptions

ArgumentNullException

Thrown when the body is null.

Add(GeoFace3, string)

Adds a face, holes left open.

public ObjWriter Add(GeoFace3 face, string name = null)

Parameters

face GeoFace3
name string

Returns

ObjWriter

Exceptions

ArgumentNullException

Thrown when the face is null.

Add(IEnumerable<GeoTriangle3>, string)

Adds a mesh of triangles.

public ObjWriter Add(IEnumerable<GeoTriangle3> triangles, string name = null)

Parameters

triangles IEnumerable<GeoTriangle3>
name string

Returns

ObjWriter

Exceptions

ArgumentNullException

Thrown when the triangles are null.

Add(GeoMesh3, string)

Adds the mesh of a flat shape, its faces sharing their vertices: a face that turns right at none of its corners as one polygon, so that a viewer shows the cells of a grid as they are, and any other as its triangles.

public ObjWriter Add(GeoMesh3 mesh, string name = null)

Parameters

mesh GeoMesh3
name string

Returns

ObjWriter

Exceptions

ArgumentNullException

Thrown when the mesh is null.

Add(GeoCellGrid3, string)

Adds the cells of a body, each an object of its own named after its indexes, so that a viewer lists them and shows or hides them one by one.

public ObjWriter Add(GeoCellGrid3 grid, string name = null)

Parameters

grid GeoCellGrid3

The cells.

name string

What the objects' names start with; "cell" when none is given.

Returns

ObjWriter

This writer, for adding the next shape.

Remarks

A cell is written as the mesh of its body, name_i_j_k, and a second or later piece of one cell with its number after, name_i_j_k_p.

Exceptions

ArgumentNullException

Thrown when the grid is null.

Add(GeoPolyline3, string)

Adds a chain as a line through its vertices.

public ObjWriter Add(GeoPolyline3 polyline, string name = null)

Parameters

polyline GeoPolyline3
name string

Returns

ObjWriter

Exceptions

ArgumentNullException

Thrown when the chain is null.

Add(GeoPolylineArc3, double, string)

Adds a chain with bends as a line, each bend cut into chords no further than a tolerance from it.

public ObjWriter Add(GeoPolylineArc3 chain, double chordTolerance, string name = null)

Parameters

chain GeoPolylineArc3
chordTolerance double
name string

Returns

ObjWriter

Exceptions

ArgumentNullException

Thrown when the chain is null.

Add(GeoLine3, string)

Adds a segment as a line.

public ObjWriter Add(GeoLine3 line, string name = null)

Parameters

line GeoLine3
name string

Returns

ObjWriter