Table of Contents

Class PclXyzExporter

Namespace
PclIO.Export
Assembly
PclIO.dll

Exports point clouds to a simple space-delimited text format, one point per line.

public static class PclXyzExporter

Inheritance

Inherited Members

Remarks

Columns depend on the channels a point has: X Y Z R G B when it has a colour (intensity is then not written), X Y Z I when it has only an intensity (clamped to 0..1, 3 decimals), otherwise X Y Z. Coordinates have 4 decimals. Output is culture independent (invariant, '.' decimal separator) and every line ends with '\n'. The cloud is streamed point by point, so memory use does not depend on its size. Points with non-finite coordinates are skipped. Normals are not exported.

Methods

Export(PclDocument, TextWriter, PclReadOptions?)

Writes the document's points to writer and returns the number of points written.

public static long Export(PclDocument doc, TextWriter writer, PclReadOptions? options = null)

Parameters

doc PclDocument

Source document.

writer TextWriter

Destination text writer; the caller owns it and must flush or dispose it.

options PclReadOptions?

Read options (limit, subsampling, transform); null for defaults.

Returns

long

Number of point lines written.

Export(PclDocument, TextWriter, PclReadOptions?, out long)

Writes the document's points and also reports how many points were skipped.

public static long Export(PclDocument doc, TextWriter writer, PclReadOptions? options, out long skippedPoints)

Parameters

doc PclDocument

Source document.

writer TextWriter

Destination text writer; the caller owns it and must flush or dispose it.

options PclReadOptions?

Read options (limit, subsampling, transform); null for defaults.

skippedPoints long

Number of points skipped because a coordinate was NaN or infinite.

Returns

long

Number of point lines written.