Skip to content

Refactor ply_loader.py — robustness and observability improvements#37

Open
agentksimha wants to merge 3 commits into
humanai-foundation:mainfrom
agentksimha:add-ply-loader
Open

Refactor ply_loader.py — robustness and observability improvements#37
agentksimha wants to merge 3 commits into
humanai-foundation:mainfrom
agentksimha:add-ply-loader

Conversation

@agentksimha

Copy link
Copy Markdown

Three targeted improvements to PLYColorExtractor:

Point cloud fallback in load_ply: read_triangle_mesh silently returns an empty mesh for PLY files with no faces. Added fallback to read_point_cloud so these files are loaded correctly instead of being dropped without warning.
Load summary in process_all_fragments: After processing a directory, prints Loaded N/M fragments successfully so failed/skipped files are immediately visible in batch runs.
Configurable min_cluster_size: Moved from a hardcoded value on extract_break_surface_points to a class-level parameter (default: 50, no breaking change). Skip warnings now include the fragment filename and threshold value for easier debugging.

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