0001 function X = vb_read_vrml_coordinate2(fname,mode)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 if ~exist('mode','var'), mode=1; end;
0016
0017 switch mode
0018 case 1
0019 key.start = 'TextureCoordinate2';
0020 key.start2 = 'point';
0021 key.end = ']';
0022 key.braket = '[';
0023 case 2
0024 key.start = 'TextureCoordinate';
0025 key.start2 = 'point';
0026 key.end = ']';
0027 key.braket = '[';
0028 end
0029
0030 [Nskip, Nline, Mmax] = vb_read_vrml_line(fname,key);
0031 X = vb_read_vrml_coordinate(fname, Nskip, Nline, Mmax, key.braket);