Table of Contents

Class LgsxScan

Namespace
PclIO.Formats.Leica
Assembly
PclIO.dll

Scan representation in a Leica LGS/LGSx container: all points of the container as one scan. Setups are not separated and poses are not applied.

public sealed class LgsxScan : PclScan

Inheritance

Inherited Members

Properties

HasColors

True when the first point block carries colour planes.

public override bool HasColors { get; }

Property Value

bool

HasIntensities

True when the first point block carries intensity planes.

public override bool HasIntensities { get; }

Property Value

bool

HasNormals

True when the first point block carries normal planes.

public override bool HasNormals { get; }

Property Value

bool

Id

Identifier of the scan within its document (taken from the file when it has one).

public override string Id { get; }

Property Value

string

Name

Display name of the scan.

public override string Name { get; }

Property Value

string

PointCount

Number of points this scan yields. The container does not store it, so the first access decodes the whole point data and caches the result; this can be slow for large files.

public override long PointCount { get; }

Property Value

long

Exceptions

InvalidDataException

The point data is malformed; the exception is thrown by the first access.

Methods

ReadPoints(PclReadOptions?)

Streams the points of this scan.

public override IEnumerable<PclPoint> ReadPoints(PclReadOptions? options = null)

Parameters

options PclReadOptions?

Read options; null uses defaults.

Returns

IEnumerable<PclPoint>

Remarks

Positions are decoded from the packed position planes of each block. A code of zero at any slot except the first of a block is treated as unused padding and is not returned, so a real point that sits exactly at the block origin is dropped. A block yields as many points as its shortest position plane holds. Returned points keep consecutive PclIO.PclPoint.Index values.

Exceptions

InvalidDataException

The point data is malformed or declares oversized data.