MATLAB
对
ply
文件格式的读取和显示
首先是这个
ply_read.m
文件
[plain] view plain copy print?
在
CODE
上查看代码片派生到我的代码片
function [ Elements, varargout ] = PL
Y_READ ( Path, Str )
%*****************************************************************************
80
%
%% PL
Y_READ reads a PLY 3D data file.
%
%
[DATA,COMMENTS] = PL
Y_READ(FILENAME) reads a version 1.0 PL
Y file
%
FILENAME and returns a structure DATA.
The fields in this structure
%
are defined by the PL
Y header; each element type is a field and each
%
element property is a subfield.
If the file contains any comments,
%
they are returned in a cell string array COMMENTS.
%
%
[TRI,PTS] =