NDEVR
API Documentation
CADGeometryWriter

Streams NDEVR Geometry entities as CAD objects. More...

Collaboration diagram for CADGeometryWriter:
[legend]

Public Member Functions

 CADGeometryWriter (DXFWriter &writer, FactoryParameters &params)
 Constructs a geometry writer with the given DXF writer and parameters.
Vertex< 3, fltp08 > & CleanupDXFVertex (Vertex< 3, fltp08 > &vert)
 Cleans up a vertex for DXF output, clamping near-zero values.
void fillOutData (EntityData &data)
 Fills out common entity data fields from the current state.
void onShapeWritten ()
 Called after each shape is written to update progress.
void setup (const Model &m, const Geometry &geo)
 Sets up the writer for a specific model and geometry pair.
void writeAs3DFace ()
 Writes the current geometry as DXF 3DFACE entities.
void writeAsLines ()
 Writes the current geometry as DXF line entities.
void writeAsMesh ()
 Writes the current geometry as a DXF MESH entity.
void writeAsPointData ()
 Writes the current geometry as DXF point entities.
void writeAsPolyline ()
 Writes the current geometry as DXF polyline entities.
void writeAsTriangleLines ()
 Writes triangle geometry as line segments.
void writeGeometry ()
 Writes the current geometry using the most appropriate DXF entity type.

Public Attributes

DXFEntityCodes default_mesh_output = DXFEntityCodes::e_dxf_ENTITY_3DFACE
 Default entity type for mesh output.
Geometry geometry
 The current Geometry being written.
bool has_solid_color = true
 Whether the geometry has a single solid color.
String layer_name
 The DXF layer name for the current entity.
Material material
 The current Material being written.
Model model
 The current Model being written.
CADColorInfo model_color_info
 Color information for the current model.
Matrix< fltp08model_transform
 The model-level transformation matrix.
uint04 num_of_shapes
 Total number of shapes to write.
FactoryParametersparams
 The factory parameters for the current export operation.
uint04 parent_handle
 The handle of the parent entity.
uint04 shapes_written
 Number of shapes written so far.
Matrix< fltp08transform
 The accumulated transformation matrix.
DXFWriterwriter
 The DXF writer used for output.

Detailed Description

Streams NDEVR Geometry entities as CAD objects.


Definition at line 25 of file CADGeometryWriter.h.

Constructor & Destructor Documentation

◆ CADGeometryWriter()

CADGeometryWriter::CADGeometryWriter ( DXFWriter & writer,
FactoryParameters & params )

Constructs a geometry writer with the given DXF writer and parameters.

Parameters
[in]writerThe DXF writer for output.
[in]paramsThe factory parameters.

References params, and writer.

Member Function Documentation

◆ CleanupDXFVertex()

Vertex< 3, fltp08 > & CADGeometryWriter::CleanupDXFVertex ( Vertex< 3, fltp08 > & vert)

Cleans up a vertex for DXF output, clamping near-zero values.

Parameters
[in]vertThe vertex to clean.
Returns
A reference to the cleaned vertex.

◆ fillOutData()

void CADGeometryWriter::fillOutData ( EntityData & data)

Fills out common entity data fields from the current state.

Parameters
[in]dataThe entity data to populate.

◆ setup()

void CADGeometryWriter::setup ( const Model & m,
const Geometry & geo )

Sets up the writer for a specific model and geometry pair.

Parameters
[in]mThe model to write.
[in]geoThe geometry to write.

The documentation for this class was generated from the following file: