09-Mar-2024 08:43:55 ply_io_test(): MATLAB/Octave version 9.14.0.2306882 (R2023a) Update 4: Test ply_io(). TEST01 TRI_MESH_TO_PLY converts a pair of arrays describing a triangular mesh into a data structure suitable for a PLY file. PLY_WRITE writes PLY data to a file. The first 5 nodes: Row: 1 2 3 Col 1 0.000000 0.000000 0.000000 2 1.000000 0.000000 0.000000 3 1.000000 1.000000 0.000000 4 0.000000 1.000000 0.000000 5 0.500000 0.500000 1.600000 The first 5 triangles. Row: 1 2 3 Col 1 2 1 4 2 2 4 3 3 1 2 5 4 1 5 4 5 4 5 3 Display the TRI_MESH data: Convert the TRI_MESH data to PLY data. Write the PLY data to the file "pyramid.ply". TEST02 PLY_READ reads a PLY file. It can return a PLY data structure, or a pair ( NODE_XYZ, TRIANGLE_NODE) which is a simple triangular mesh. In this example, we demonstrate the triangular mesh option. Extract nodes and triangles from "sphere.ply" The first 5 nodes: Row: 1 2 3 Col 1 0.000000 0.000000 -127.000000 2 5.000000 25.000000 -125.000000 3 10.000000 24.000000 -125.000000 4 15.000000 21.000000 -125.000000 5 19.000000 17.000000 -125.000000 The first 5 triangles. Row: 1 2 3 Col 1 1 2 3 2 1 3 4 3 1 4 5 4 1 5 6 5 1 6 7 Display the TRI_MESH data: ply_io_test(): Normal end of execution. 09-Mar-2024 08:43:58