Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pointGroupingSchemes reading and writing #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

natecdr
Copy link

@natecdr natecdr commented Aug 25, 2022

Add reading and writing for pointGroupingSchemes

@dancergraham
Copy link
Collaborator

This looks good - I'm interested to know what point groupings are used for? Is it a way to label subsets of the pointcloud as belonging to a specific geometric entity or something like that?

Could you reopen the pull request from a branch instead of from master? This will help with merging and reviewing

@dancergraham
Copy link
Collaborator

Wow - different errors on each of the three platforms there! The linux job just failed to start, the assertions failed on macos and the code raised errors on Windows! I mainly develop on Windows so let me know if you need me to take a look at that one...

@@ -47,6 +48,11 @@ class COORDINATE_SYSTEMS(Enum):
"sphericalInvalidState": "b",
}

SUPPORTED_GROUP_FIELDS = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

praise: it is nice to see clearly documented supported fields like this!

@@ -144,6 +154,48 @@ def read_scan_raw(self, index) -> Dict:

return data

def get_groups_data(self, index) -> Dict:
Copy link
Collaborator

Choose a reason for hiding this comment

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

doc: this looks like the best place to add a docstring explaining briefly what point groups are / what they are for

@@ -354,38 +440,38 @@ def write_scan_raw(self, data: Dict, *, name=None, rotation=None, translation=No
points_prototype.set("cartesianY", y_node)
points_prototype.set("cartesianZ", z_node)

field_names = ["cartesianX", "cartesianY", "cartesianZ"]
points_field_names = ["cartesianX", "cartesianY", "cartesianZ"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

praise: I prefer these more explicit variable names

@natecdr
Copy link
Author

natecdr commented Oct 4, 2024

Ooh it's been a while.. I couldn't explain what pointGroupingSchemes are for from the top of my head but the E57 reference documentation says : "The e57::PointGroupingSchemes structure supports the division of points within an Data3D into logical groupings.".

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.

2 participants