Home > vbmeg > functions > device > vivid > vb_read_vrml_coordinate2.m

vb_read_vrml_coordinate2

PURPOSE ^

Read Coordinate frpm XML-file

SYNOPSIS ^

function X = vb_read_vrml_coordinate2(fname,mode)

DESCRIPTION ^

 Read Coordinate frpm XML-file
  X = vb_read_vrml_coordinate2(fname,mode)
  mode = 1 or 2 : VRML-version
 TextureCoordinate2 {
    point[
        0.760519 0.000967,
        0.771393 0.001134,

                      ]

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function    X = vb_read_vrml_coordinate2(fname,mode)
0002 % Read Coordinate frpm XML-file
0003 %  X = vb_read_vrml_coordinate2(fname,mode)
0004 %  mode = 1 or 2 : VRML-version
0005 % TextureCoordinate2 {
0006 %    point[
0007 %        0.760519 0.000967,
0008 %        0.771393 0.001134,
0009 %
0010 %                      ]
0011 %
0012 % Copyright (C) 2011, ATR All Rights Reserved.
0013 % License : New BSD License(see VBMEG_LICENSE.txt)
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);

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005