0001 function O = DefaultObject ( Name )
0002
0003
0004
0005
0006
0007 S = rand ( 'state' );
0008 rand ( 'seed', sum ( double ( Name ) ) );
0009
0010 Object = struct ( 'Name', Name );
0011 Object.Display = 1;
0012 Object.Copy = 0;
0013 Object.Mirror = 0;
0014 Object.Status = 0;
0015 Object.NUsed = 1;
0016 Object.Shades = 64;
0017 Object.StartRed = 0;
0018 Object.StartGreen = 0;
0019 Object.StartBlue = 0;
0020 Object.EndRed = 128 + round ( 127 * rand ( 1 ) );
0021 Object.EndGreen = 128 + round ( 127 * rand ( 1 ) );
0022 Object.EndBlue = 128 + round ( 127 * rand ( 1 ) );
0023 Object.XRotation = 0;
0024 Object.YRotation = 0;
0025 Object.ZRotation = 0;
0026 Object.XShift = 0;
0027 Object.YShift = 0;
0028 Object.ZShift = 0;
0029 Object.XCenter = 0;
0030 Object.YCenter = 0;
0031 Object.ZCenter = 0;
0032 Object.XRotationIncrement = 0;
0033 Object.YRotationIncrement = 0;
0034 Object.ZRotationIncrement = 0;
0035 Object.XShiftIncrement = 0;
0036 Object.YShiftIncrement = 0;
0037 Object.ZShiftIncrement = 0;
0038 Object.XMinimum = 0;
0039 Object.YMinimum = 0;
0040 Object.ZMinimum = 0;
0041 Object.XMaximum = 0;
0042 Object.YMaximum = 0;
0043 Object.ZMaximum = 0;
0044 Object.Opacity = 1.0;
0045 Object.OpacityThickness = 0;
0046 O = Object;
0047 rand ( 'state', S );