我复制了基本的threeJS
demo和在线找到的.ply
文件,该文件以binary_little_endian 1.0
进行了编码,并且可以正常工作。
此后,我添加了更多的.ply
文件,但这些文件均以ascii 1.0
进行了编码,并且没有显示/出现(没有抛出错误,场景的灯光和其他功能正常工作)。
文件编码是否可能有所不同?还是这些文件仅仅是超出了摄像机的视线? (我曾尝试将相机移到其他地方无济于事)
编辑:ASCII
文件的顶部:
ply
format ascii 1.0
obj_info Photoneo PLY PointCloud ( Width = 2064; Height = 1544)
element vertex 3186816
property float x
property float y
property float z
element camera 1
property float view_px
property float view_py
property float view_pz
property float x_axisx
property float x_axisy
property float x_axisz
property float y_axisx
property float y_axisy
property float y_axisz
property float z_axisx
property float z_axisy
property float z_axisz
element phoxi_frame_params 1
property uint32 frame_width
property uint32 frame_height
property uint32 frame_index
property float frame_start_time
property float frame_duration
end_header
-0 -0 0
-0 -0 0
...
binary_little_endian
的顶部:
ply
format binary_little_endian 1.0
comment File exported by Artec Group 3D Scanning Solutions
comment www.artec-group.com
element vertex 149979
property float x
property float y
property float z
element face 300000
property list uchar int vertex_indices
end_header
ª0-B>F†Á€‘|ÂŽ
...