Skip to content

Preserve coordinate precision for geopositioned point clouds#1605

Merged
oitel merged 17 commits intomasterfrom
feature/point_cloud_load_transform
Sep 12, 2023
Merged

Preserve coordinate precision for geopositioned point clouds#1605
oitel merged 17 commits intomasterfrom
feature/point_cloud_load_transform

Conversation

@oitel
Copy link
Contributor

@oitel oitel commented Sep 11, 2023

No description provided.

@oitel oitel requested a review from Grantim September 11, 2023 14:00
@oitel oitel requested a review from Fedr September 11, 2023 14:05
const auto point = getPoint( buf.data(), pointFormat );
result.points.emplace_back(
const Vector3d pos {
point.x * reader.header().scale.x + reader.header().offset.x,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reader.header() -> header

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

unsigned long size = 0;
bool hasInputColors = false;
Vector3d offset;
bool hasOffset = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably std::optional<Vector3d> instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@oitel oitel merged commit ce5e9fd into master Sep 12, 2023
@oitel oitel deleted the feature/point_cloud_load_transform branch September 12, 2023 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants