Skip to main content

Module cloud

Module cloud 

Source
Expand description

Point clouds, and the text formats that carry them: XYZ and PTS.

A cloud is points with what a scanner measured at each: a normal, a colour, and any number of named scalars (intensity, confidence, a deviation an inspection computed). PointCloud holds them side by side, one entry per point in each.

XYZ is a row of numbers per point, separated by spaces, tabs, commas or semicolons; PTS is the same with a line before each scan saying how many rows follow. Neither says what its columns are, so a caller may name them (XyzColumn); otherwise a header line naming them (# x y z nx ny nz, //X,Y,Z,R,G,B) is honoured, and otherwise the column count decides, as read_xyz lays out, and a count that leaves the reading open is refused by name. Neither declares a unit; coordinates come back as written.

Structs§

PointCloud
Points, with what was measured at each.
Scalar
One named value per point.

Enums§

XyzColumn
What one column of an XYZ or PTS row holds.

Functions§

read_pts
Read a PTS text cloud: XYZ rows, each scan opened by a line holding its point count, the rows commonly x y z intensity red green blue.
read_xyz
Read an XYZ text cloud.
write_xyz
Write a cloud as XYZ text.