Skip to content

[codex] Add PLY meshfile support#384

Draft
mickaelbegon wants to merge 1 commit into
pyomeca:masterfrom
mickaelbegon:codex/support-ply-meshfiles
Draft

[codex] Add PLY meshfile support#384
mickaelbegon wants to merge 1 commit into
pyomeca:masterfrom
mickaelbegon:codex/support-ply-meshfiles

Conversation

@mickaelbegon

@mickaelbegon mickaelbegon commented Jun 9, 2026

Copy link
Copy Markdown

Summary

Adds PLY meshfile support alongside the existing STL/OBJ/VTP/bioMesh readers.

  • Makes meshfile extension dispatch case-insensitive.
  • Reworks the ASCII PLY reader to parse the header explicitly, read vertex x/y/z properties, ignore extra properties, and read face vertex_indices / vertex_index lists.
  • Triangulates polygonal PLY faces into MeshFace triangles.
  • Adds a .PLY fixture and a MeshFile.FileIoPly test covering uppercase extension handling and quad-face triangulation.

Validation

  • git diff --check
  • Attempted cmake --build build-vitpose-conda, but the local build currently fails in libc++ headers before project code completes (__builtin_ctzg / __builtin_clzg missing). The same toolchain issue appears while compiling unrelated files such as Joints.cpp.
  • ctest -N in build-vitpose-conda reports Total Tests: 0.

This change is Reviewable

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.

1 participant