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
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
Returns
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
trianglesIEnumerable<GeoTriangle3>namestring
Returns
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
Returns
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
gridGeoCellGrid3The cells.
namestringWhat 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
polylineGeoPolyline3namestring
Returns
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
chainGeoPolylineArc3chordTolerancedoublenamestring
Returns
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)