Logo Search packages:      
Sourcecode: octave-vrml version File versions  Download package

vrml_group.m

## Copyright (C) 2002 Etienne Grossmann.  All rights reserved.
##
## This program is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by the
## Free Software Foundation; either version 2, or (at your option) any
## later version.
##
## This is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
## for more details.
##

## v = vrml_group (s1, s2 ... ) - Form a group node with children s1,...
## 
##
## Author:        Etienne Grossmann <etienne@isr.ist.utl.pt>
## Last modified: Setembro 2002

function v = vrml_group ( varargin )

nargin = nargin();
if nargin == 0, return end

s = "";

                        # beginpre 2.1.38
# if (nargin > 0) 
#   varargin = list(varargin, all_va_args); 
# end
                        # endpre 2.1.38
if nargin > 0, s = nth (varargin, 1); end
if nargin > 1
  for i = 2:nargin, s = ; end
end
## indent s
ni = 4;
s = ;

v = sprintf (["Group {\n",\
              "  children [\n",\
            "%s",\
              " ]\n",\
            "}\n"],\
           s);
endfunction


Generated by  Doxygen 1.6.0   Back to index