Struct PclPoint
- Namespace
- PclIO
- Assembly
- PclIO.dll
Represents a single 3D point cloud sample.
public readonly record struct PclPoint : IEquatable<PclPoint>Implements
Inherited Members
Constructors
PclPoint(PclVector3, PclColor?, float?, PclVector3?, byte?, ulong)
Represents a single 3D point cloud sample.
public PclPoint(PclVector3 Position, PclColor? Color = null, float? Intensity = null, PclVector3? Normal = null, byte? Classification = null, ulong Index = 0)Parameters
PositionPclVector3-
Position, in the scan's local space or transformed when PclIO.PclReadOptions.ApplyTransform is set.
ColorPclColor?-
Color, or null when the source has none.
Intensityfloat?-
Intensity as stored by the format (scale is format specific), or null.
NormalPclVector3?-
Unit normal, or null when the source has none.
Classificationbyte?-
Class code, or null when the source has none.
Indexulong-
Running number of the point within the read call that produced it; not an index into the source file.
Properties
Classification
Class code, or null when the source has none.
public byte? Classification { get; init; }Property Value
- byte?
Color
Color, or null when the source has none.
public PclColor? Color { get; init; }Property Value
Index
Running number of the point within the read call that produced it; not an index into the source file.
public ulong Index { get; init; }Property Value
Intensity
Intensity as stored by the format (scale is format specific), or null.
public float? Intensity { get; init; }Property Value
Normal
Unit normal, or null when the source has none.
public PclVector3? Normal { get; init; }Property Value
Position
Position, in the scan's local space or transformed when PclIO.PclReadOptions.ApplyTransform is set.
public PclVector3 Position { get; init; }Property Value
X
X coordinate of PclIO.PclPoint.Position.
public double X { get; }Property Value
Y
Y coordinate of PclIO.PclPoint.Position.
public double Y { get; }Property Value
Z
Z coordinate of PclIO.PclPoint.Position.
public double Z { get; }Property Value
Methods
ToString()
Formats position, color and intensity, independent of the current culture.
public override string ToString()