Project

General

Profile

Download (20.3 KB) Statistics
| Branch: | Tag: | Revision:

magiccube / src / main / java / org / distorted / bandaged / BandagedCreatorRenderer.java @ 306aa049

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2022 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is proprietary software licensed under an EULA which you should have received      //
7
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html        //
8
///////////////////////////////////////////////////////////////////////////////////////////////////
9

    
10
package org.distorted.bandaged;
11

    
12
import java.io.File;
13
import java.io.FileNotFoundException;
14
import java.io.IOException;
15
import java.nio.ByteBuffer;
16
import java.nio.ByteOrder;
17

    
18
import javax.microedition.khronos.egl.EGLConfig;
19
import javax.microedition.khronos.opengles.GL10;
20

    
21
import android.app.Activity;
22
import android.opengl.GLES31;
23
import android.opengl.GLSurfaceView;
24
import android.widget.Toast;
25

    
26
import org.distorted.dialogs.RubikDialogBandagedSave;
27
import org.distorted.library.effect.EffectType;
28
import org.distorted.library.effect.FragmentEffectBrightness;
29
import org.distorted.library.effect.PostprocessEffectBorder;
30
import org.distorted.library.main.DistortedEffects;
31
import org.distorted.library.main.DistortedFramebuffer;
32
import org.distorted.library.main.DistortedLibrary;
33
import org.distorted.library.main.DistortedNode;
34
import org.distorted.library.main.DistortedScreen;
35
import org.distorted.library.main.InternalOutputSurface;
36
import org.distorted.library.mesh.MeshBase;
37
import org.distorted.library.type.Static1D;
38
import org.distorted.library.type.Static3D;
39
import org.distorted.library.type.Static4D;
40
import org.distorted.objectlib.json.JsonWriter;
41
import org.distorted.objectlib.main.InitData;
42
import org.distorted.objectlib.main.ShapeHexahedron;
43
import org.distorted.objectlib.main.TwistyObject;
44
import org.distorted.objectlib.objects.TwistyBandagedCuboid;
45
import org.json.JSONException;
46

    
47
///////////////////////////////////////////////////////////////////////////////////////////////////
48

    
49
public class BandagedCreatorRenderer implements GLSurfaceView.Renderer, DistortedLibrary.ExceptionListener
50
{
51
   public static final float BRIGHTNESS = 0.333f;
52
   private static final int RESET_DURATION = 1000;
53
   private static final float MAX_SIZE_CHANGE = 1.70f;
54
   private static final float MIN_SIZE_CHANGE = 0.50f;
55
   private static final float INIT_RATIO = 0.5f;
56

    
57
   private final BandagedCreatorView mView;
58
   private final DistortedScreen mScreen;
59
   private final Static3D mScale;
60
   private final Static4D mQuatT, mQuatA;
61
   private final int[] mObjSize;
62

    
63
   private BandagedCubit[] mCubits;
64
   private boolean mInitialPhase;
65
   private long mStartTime;
66
   private float mQuatX, mQuatY, mQuatZ, mQuatW;
67
   private int mX, mY, mZ, mNumCubits;
68
   private boolean mResetQuats, mSetQuatT, mResettingObject, mConnectingCubits, mCreatingCubits, mRescaling;
69
   private int mIndex1, mIndex2;
70
   private int mSaveIcon;
71
   private DistortedFramebuffer mFramebuffer;
72
   private String mPath;
73
   private boolean mCubitsCreated;
74
   private int mWidth, mHeight;
75
   private float mScaleValue, mObjectScreenRatio;
76

    
77
///////////////////////////////////////////////////////////////////////////////////////////////////
78

    
79
   BandagedCreatorRenderer(BandagedCreatorView v)
80
     {
81
     mQuatT = new Static4D(0,0,0,1);
82
     mQuatA = new Static4D(-0.25189602f,0.3546389f,0.009657208f,0.90038127f);
83

    
84
     mView = v;
85

    
86
     mResetQuats       = false;
87
     mSetQuatT         = false;
88
     mResettingObject  = false;
89
     mConnectingCubits = false;
90
     mCubitsCreated    = false;
91
     mCreatingCubits   = false;
92
     mRescaling        = false;
93

    
94
     mObjectScreenRatio= INIT_RATIO;
95
     mSaveIcon = -1;
96
     mObjSize  = new int[3];
97

    
98
     mScreen = new DistortedScreen();
99
     mScreen.glClearColor(BRIGHTNESS, BRIGHTNESS, BRIGHTNESS, 1.0f);
100
     mScale = new Static3D(1,1,1);
101
     }
102

    
103
///////////////////////////////////////////////////////////////////////////////////////////////////
104

    
105
   private boolean isAdjacent(float[] pos1, float[] pos2)
106
     {
107
     int len1 = pos1.length/3;
108
     int len2 = pos2.length/3;
109

    
110
     for(int i=0; i<len1; i++)
111
       for(int j=0; j<len2; j++)
112
         {
113
         float d0 = pos1[3*i  ] - pos2[3*j  ];
114
         float d1 = pos1[3*i+1] - pos2[3*j+1];
115
         float d2 = pos1[3*i+2] - pos2[3*j+2];
116

    
117
         if( d0*d0 + d1*d1 + d2*d2 == 1 ) return true;
118
         }
119

    
120
     return false;
121
     }
122

    
123
///////////////////////////////////////////////////////////////////////////////////////////////////
124

    
125
   private int computeNumCubits(int x, int y, int z)
126
     {
127
     return ( x<=1 || y<=1 || z<=1 ) ? x*y*z : x*y*z-(x-2)*(y-2)*(z-2);
128
     }
129

    
130
///////////////////////////////////////////////////////////////////////////////////////////////////
131

    
132
   private void createCubits()
133
     {
134
     mCubits = new BandagedCubit[mNumCubits];
135
     int c=0;
136

    
137
     float begX = 0.5f*(1-mX);
138
     float begY = 0.5f*(1-mY);
139
     float begZ = 0.5f*(1-mZ);
140

    
141
     for(int x=0; x<mX; x++)
142
       for(int y=0; y<mY; y++)
143
          for(int z=0; z<mZ; z++)
144
            if( x==0 || x==mX-1 || y==0 || y==mY-1 || z==0 || z==mZ-1 )
145
              {
146
              float[] pos = new float[] { begX+x,begY+y,begZ+z };
147
              mCubits[c] = new BandagedCubit(pos,mX,mY,mZ,mQuatT,mQuatA,mScale,false);
148
              c++;
149
              }
150

    
151
     mView.setCubits(mCubits,mX,mY,mZ);
152
     }
153

    
154
///////////////////////////////////////////////////////////////////////////////////////////////////
155

    
156
   private void resetObject()
157
     {
158
     mView.resetCubits();
159

    
160
     for(int c=0; c<mNumCubits; c++)
161
       {
162
       if( !mCubits[c].isAttached() )
163
         {
164
         mCubits[c].attach();
165
         mCubits[c].setUnmarked();
166
         mScreen.attach(mCubits[c].getNode());
167
         }
168
       if( mCubits[c].getPosition().length>3 )
169
         {
170
         mCubits[c].reset(mScaleValue);
171
         }
172
       }
173
     }
174

    
175
///////////////////////////////////////////////////////////////////////////////////////////////////
176

    
177
   @Override
178
   public void onDrawFrame(GL10 glUnused)
179
     {
180
     long time = System.currentTimeMillis();
181
     mScreen.render(time);
182

    
183
     if( mSetQuatT )
184
       {
185
       mSetQuatT = false;
186
       mQuatT.set(mQuatX,mQuatY,mQuatZ,mQuatW);
187
       }
188

    
189
     if( mResetQuats )
190
       {
191
       mResetQuats = false;
192

    
193
       float qx = mQuatT.get0();
194
       float qy = mQuatT.get1();
195
       float qz = mQuatT.get2();
196
       float qw = mQuatT.get3();
197

    
198
       float rx = mQuatA.get0();
199
       float ry = mQuatA.get1();
200
       float rz = mQuatA.get2();
201
       float rw = mQuatA.get3();
202

    
203
       float tx = rw*qx - rz*qy + ry*qz + rx*qw;
204
       float ty = rw*qy + rz*qx + ry*qw - rx*qz;
205
       float tz = rw*qz + rz*qw - ry*qx + rx*qy;
206
       float tw = rw*qw - rz*qz - ry*qy - rx*qx;
207

    
208
       mQuatT.set(0f, 0f, 0f, 1f);
209
       mQuatA.set(tx, ty, tz, tw);
210
       }
211

    
212
     if( mResettingObject )
213
       {
214
       boolean done = continueResetting(time);
215
       if( done ) mResettingObject = false;
216
       }
217

    
218
     if( mSaveIcon>=0 )
219
       {
220
       renderIcon(time); // for some reason we need to call render() twice here, otherwise the
221
       mSaveIcon++;      // icon turns out black. Probably some problem with binding the texture.
222
       }
223
     if( mSaveIcon>=2 )
224
       {
225
       saveIcon();
226
       mSaveIcon = -1;
227
       }
228

    
229
     if( mConnectingCubits )
230
       {
231
       mConnectingCubits = false;
232
       tryConnectingCubits(mIndex1,mIndex2);
233
       }
234

    
235
     if( mCreatingCubits )
236
       {
237
       mCreatingCubits = false;
238

    
239
       rescaleObject();
240

    
241
       if( mCubitsCreated )
242
         {
243
         createCubits();
244

    
245
         mScreen.detachAll();
246
         mView.resetCubits();
247

    
248
         for(int i=0; i<mNumCubits; i++)
249
           {
250
           mCubits[i].scaleMove(mScaleValue);
251
           DistortedNode node = mCubits[i].getNode();
252
           mScreen.attach(node);
253
           }
254
         }
255
       }
256

    
257
     if( mRescaling )
258
       {
259
       mRescaling = false;
260
       rescaleObject();
261
       for(int i=0; i<mNumCubits; i++) mCubits[i].scaleMove(mScaleValue);
262
       BandagedCreatorTouchControl control = mView.getTouchControl();
263
       control.setObjectRatio(mObjectScreenRatio);
264
       }
265
     }
266

    
267
///////////////////////////////////////////////////////////////////////////////////////////////////
268

    
269
   @Override
270
   public void onSurfaceChanged(GL10 glUnused, int width, int height)
271
      {
272
      if( width!=mWidth || height!=mHeight )
273
        {
274
        mWidth = width;
275
        mHeight= height;
276
        rescaleObject();
277

    
278
        mScreen.detachAll();
279
        int touched = mView.getTouched();
280

    
281
        for(int i=0; i<mNumCubits; i++)
282
          if( mCubits[i].isAttached() )
283
            {
284
            mCubits[i].scaleMove(mScaleValue);
285
            if( touched==i ) mCubits[i].setMarked();
286
            else             mCubits[i].setUnmarked();
287
            DistortedNode node = mCubits[i].getNode();
288
            mScreen.attach(node);
289
            }
290

    
291
        mView.setScreenSize(width,height);
292
        mScreen.resize(width,height);
293
        }
294
      }
295

    
296
///////////////////////////////////////////////////////////////////////////////////////////////////
297

    
298
   @Override
299
   public void onSurfaceCreated(GL10 glUnused, EGLConfig config)
300
      {
301
      DistortedLibrary.setMax(EffectType.VERTEX,0);
302
      MeshBase.setMaxEffComponents(120);
303

    
304
      FragmentEffectBrightness.enable();
305

    
306
      DistortedLibrary.onSurfaceCreated(mView.getContext(),this,1);
307
      DistortedLibrary.setCull(true);
308

    
309
      if( mCubits==null )
310
        {
311
        createCubits();
312
        }
313
      else
314
        {
315
        for(int i=0; i<mNumCubits; i++) mCubits[i].recreateBitmap();
316
        }
317

    
318
      mCubitsCreated = true;
319
      mWidth = 0;
320
      mHeight= 0;
321
      }
322

    
323
///////////////////////////////////////////////////////////////////////////////////////////////////
324

    
325
   public void distortedException(Exception ex)
326
     {
327
     android.util.Log.e("CREATOR", "unexpected exception: "+ex.getMessage() );
328
     }
329

    
330
///////////////////////////////////////////////////////////////////////////////////////////////////
331

    
332
   public BandagedCubit[] getCubits()
333
     {
334
     return mCubits;
335
     }
336

    
337
///////////////////////////////////////////////////////////////////////////////////////////////////
338

    
339
   public DistortedScreen getScreen()
340
     {
341
     return mScreen;
342
     }
343

    
344
///////////////////////////////////////////////////////////////////////////////////////////////////
345

    
346
   void setConnecting(int index1, int index2)
347
     {
348
     mIndex1 = index1;
349
     mIndex2 = index2;
350
     mConnectingCubits = true;
351
     }
352

    
353
///////////////////////////////////////////////////////////////////////////////////////////////////
354

    
355
   private void tryConnectingCubits(int index1, int index2)
356
     {
357
     if( index1!=index2 )
358
       {
359
       float[] pos1 = mCubits[index1].getPosition();
360
       float[] pos2 = mCubits[index2].getPosition();
361

    
362
       if( isAdjacent(pos1,pos2) )
363
         {
364
         mCubits[index2].join(pos1,mScaleValue);
365
         mCubits[index1].detach();
366
         mScreen.detach(mCubits[index1].getNode());
367
         }
368
       }
369
     }
370

    
371
///////////////////////////////////////////////////////////////////////////////////////////////////
372

    
373
   public Static4D getQuatAccu()
374
     {
375
     return mQuatA;
376
     }
377

    
378
///////////////////////////////////////////////////////////////////////////////////////////////////
379

    
380
   public void setQuatTemp(float x, float y, float z, float w)
381
     {
382
     mQuatX = x;
383
     mQuatY = y;
384
     mQuatZ = z;
385
     mQuatW = w;
386

    
387
     mSetQuatT = true;
388
     }
389

    
390
///////////////////////////////////////////////////////////////////////////////////////////////////
391

    
392
   public void resetQuats()
393
     {
394
     mResetQuats = true;
395
     }
396

    
397
///////////////////////////////////////////////////////////////////////////////////////////////////
398

    
399
   public boolean isBusy()
400
     {
401
     return mResettingObject;
402
     }
403

    
404
///////////////////////////////////////////////////////////////////////////////////////////////////
405

    
406
   public void saveObject()
407
     {
408
     int numAttached=0;
409

    
410
     for(int i=0; i<mNumCubits; i++)
411
       if( mCubits[i].isAttached() ) numAttached++;
412

    
413
     float[][] pos = new float[numAttached][];
414
     int attached=0;
415

    
416
     for(int i=0; i<mNumCubits; i++)
417
       if( mCubits[i].isAttached() )
418
         {
419
         pos[attached++] = mCubits[i].getPosition();
420
         }
421

    
422
     InitData data = new InitData(mObjSize,pos);
423
     TwistyObject obj = new TwistyBandagedCuboid( data, TwistyObject.MESH_NICE, TwistyObject.MODE_NORM,
424
                                                  new Static4D(0,0,0,1), new Static3D(0,0,0), 1.0f, null );
425
     String name = obj.getShortName();
426
     BandagedCreatorActivity act = (BandagedCreatorActivity) mView.getContext();
427

    
428
     if( act.objectDoesntExist(name) && createObjectJson(obj,act) )
429
       {
430
       setupIconCreation(act,data);
431
       act.addObject(obj.getShortName());
432
       }
433
     }
434

    
435
///////////////////////////////////////////////////////////////////////////////////////////////////
436

    
437
   private boolean createObjectJson(TwistyObject object, Activity act)
438
     {
439
     final String name = object.getShortName()+"_object.json";
440
     File file = new File(act.getFilesDir(), name);
441
     String filename = file.getAbsolutePath();
442

    
443
     try
444
       {
445
       JsonWriter writer = JsonWriter.getInstance();
446
       String json = writer.createObjectString(object,24);
447
       writer.write(filename,json);
448
       return true;
449
       }
450
     catch(JSONException ex)
451
       {
452
       act.runOnUiThread(new Runnable()
453
         {
454
         public void run()
455
           {
456
           String message = "JSON Exception saving to \n\n"+filename+"\n\n failed:\n\n"+ex.getMessage();
457
           Toast.makeText(act,message,Toast.LENGTH_LONG).show();
458
           }
459
         });
460

    
461
       return false;
462
       }
463
     catch(FileNotFoundException ex)
464
       {
465
       act.runOnUiThread(new Runnable()
466
         {
467
         public void run()
468
           {
469
           String message = "FileNotFound exception saving to \n\n"+filename+"\n\n failed:\n\n"+ex.getMessage();
470
           Toast.makeText(act,message,Toast.LENGTH_LONG).show();
471
           }
472
         });
473

    
474
       return false;
475
       }
476
     catch(IOException ex)
477
       {
478
       act.runOnUiThread(new Runnable()
479
         {
480
         public void run()
481
           {
482
           String message = "IO exception saving to \n\n"+filename+"\n\n failed:\n\n"+ex.getMessage();
483
           Toast.makeText(act,message,Toast.LENGTH_LONG).show();
484
           }
485
         });
486

    
487
       return false;
488
       }
489
     }
490

    
491
///////////////////////////////////////////////////////////////////////////////////////////////////
492

    
493
   private int computeProjectionAngle()
494
     {
495
     float quot1 = mObjSize[2]/ (float)mObjSize[0];
496
     float quot2 = mObjSize[2]/ (float)mObjSize[1];
497
     float quot3 = mObjSize[0]/ (float)mObjSize[2];
498
     float quot4 = mObjSize[0]/ (float)mObjSize[1];
499

    
500
     float quot5 = Math.max(quot1,quot2);
501
     float quot6 = Math.max(quot3,quot4);
502
     float quot7 = Math.max(quot5,quot6);
503

    
504
          if( quot7<=1.0f ) return 120;
505
     else if( quot7<=1.5f ) return 90;
506
     else if( quot7<=2.0f ) return 60;
507
     else                   return 30;
508
     }
509

    
510
///////////////////////////////////////////////////////////////////////////////////////////////////
511

    
512
   private void setupIconCreation(Activity act, InitData data)
513
     {
514
     final float R=1.0f;
515
     final int FBO_WIDTH  = (int)(R*720);
516
     final int FBO_HEIGHT = (int)(R*1280);
517
     final float OBJECT_SIZE = R*0.35f;
518

    
519
     TwistyObject obj = new TwistyBandagedCuboid( data, TwistyObject.MESH_NICE, TwistyObject.MODE_ICON,
520
                                                  ShapeHexahedron.DEFAULT_ROT, new Static3D(0,0,0), OBJECT_SIZE, null );
521

    
522
     DistortedEffects effects = obj.getObjectEffects();
523
     DistortedNode node = obj.getNode();
524

    
525
     if( mFramebuffer==null )
526
       {
527
       mFramebuffer = new DistortedFramebuffer(FBO_WIDTH,FBO_HEIGHT,1, InternalOutputSurface.DEPTH_NO_STENCIL);
528
       mFramebuffer.glClearColor(BRIGHTNESS, BRIGHTNESS, BRIGHTNESS, 1.0f);
529
       }
530

    
531
     mFramebuffer.setProjection( computeProjectionAngle() ,0.1f);
532
     mFramebuffer.detachAll();
533
     mFramebuffer.attach(node);
534

    
535
     Static1D halo = new Static1D(5);
536
     Static4D color = new Static4D(0,0,0,1);
537
     PostprocessEffectBorder border = new PostprocessEffectBorder(halo,color);
538
     border.setHaloDepth(false);
539
     effects.apply(border);
540

    
541
     final String name = obj.getShortName()+".png";
542
     File file = new File(act.getFilesDir(), name);
543
     String filename = file.getAbsolutePath();
544

    
545
     mSaveIcon = 0;
546
     mPath = filename;
547
     }
548

    
549
///////////////////////////////////////////////////////////////////////////////////////////////////
550

    
551
   private void renderIcon(long time)
552
     {
553
     mFramebuffer.render(time);
554
     }
555

    
556
///////////////////////////////////////////////////////////////////////////////////////////////////
557

    
558
   private void saveIcon()
559
     {
560
     int fW = mFramebuffer.getWidth();
561
     int fH = mFramebuffer.getHeight();
562

    
563
     ByteBuffer buf = ByteBuffer.allocateDirect(fW*fH*4);
564
     buf.order(ByteOrder.LITTLE_ENDIAN);
565

    
566
     mFramebuffer.setAsReadFramebuffer(0);
567
     GLES31.glReadBuffer(GLES31.GL_COLOR_ATTACHMENT0);
568
     GLES31.glReadPixels( 0, 0, fW, fH, GLES31.GL_RGBA, GLES31.GL_UNSIGNED_BYTE, buf);
569
     BandagedCreatorWorkerThread.newBuffer(buf,fW,fH,6,mPath);
570
     GLES31.glBindFramebuffer(GLES31.GL_READ_FRAMEBUFFER, 0);
571

    
572
     mSaveIcon = -1;
573
     }
574

    
575
///////////////////////////////////////////////////////////////////////////////////////////////////
576

    
577
   void mulObjectRatio(float ratio)
578
     {
579
     mObjectScreenRatio *= ratio;
580

    
581
     if( mObjectScreenRatio>MAX_SIZE_CHANGE*INIT_RATIO) mObjectScreenRatio = MAX_SIZE_CHANGE*INIT_RATIO;
582
     if( mObjectScreenRatio<MIN_SIZE_CHANGE*INIT_RATIO) mObjectScreenRatio = MIN_SIZE_CHANGE*INIT_RATIO;
583

    
584
     mRescaling = true;
585
     }
586

    
587
///////////////////////////////////////////////////////////////////////////////////////////////////
588

    
589
   float getObjectRatio()
590
     {
591
     return mObjectScreenRatio;
592
     }
593

    
594
///////////////////////////////////////////////////////////////////////////////////////////////////
595

    
596
   private void rescaleObject()
597
     {
598
     final int size = mX>mY ? Math.max(mX, mZ) : Math.max(mY, mZ);
599
     final float Q = mObjectScreenRatio/size;
600
     mScaleValue = mWidth<mHeight ? Q*mWidth : Q*mHeight;
601
     mScale.set( mScaleValue,mScaleValue,mScaleValue );
602
     }
603

    
604
///////////////////////////////////////////////////////////////////////////////////////////////////
605

    
606
   public void changeObject(int x, int y, int z)
607
     {
608
     if( mX!=x || mY!=y || mZ!=z )
609
       {
610
       mX = x;
611
       mY = y;
612
       mZ = z;
613

    
614
       mObjSize[0] = mX;
615
       mObjSize[1] = mY;
616
       mObjSize[2] = mZ;
617

    
618
       mNumCubits = computeNumCubits(mX,mY,mZ);
619

    
620
       mCreatingCubits = true;
621
       }
622
     }
623

    
624
///////////////////////////////////////////////////////////////////////////////////////////////////
625

    
626
   public void displaySavingDialog()
627
     {
628
     BandagedCreatorActivity act = (BandagedCreatorActivity)mView.getContext();
629
     RubikDialogBandagedSave saveDiag = new RubikDialogBandagedSave();
630
     saveDiag.show(act.getSupportFragmentManager(), null);
631
     }
632

    
633
///////////////////////////////////////////////////////////////////////////////////////////////////
634

    
635
   public void setupReset()
636
     {
637
     mResettingObject = true;
638
     mInitialPhase    = true;
639
     mStartTime       = System.currentTimeMillis();
640
     }
641

    
642
///////////////////////////////////////////////////////////////////////////////////////////////////
643

    
644
   public boolean continueResetting(long time)
645
     {
646
     long diff = time-mStartTime;
647
     float quotient = ((float)diff)/RESET_DURATION;
648

    
649
     if( mInitialPhase && quotient>0.5f )
650
       {
651
       mInitialPhase=false;
652
       resetObject();
653
       }
654

    
655
     double angle = 2*Math.PI*quotient*quotient*(3-2*quotient);
656

    
657
     float sinA = (float)Math.sin(angle);
658
     float cosA = (float)Math.cos(angle);
659

    
660
     mQuatT.set(0, -sinA, 0, cosA);
661

    
662
     return quotient>1.0f;
663
     }
664

    
665
///////////////////////////////////////////////////////////////////////////////////////////////////
666

    
667
  public void touchCubit(int index)
668
    {
669
    if( index>=0 && index<mNumCubits && mCubits[index]!=null ) mCubits[index].setMarked();
670
    }
671

    
672
///////////////////////////////////////////////////////////////////////////////////////////////////
673

    
674
  public void untouchCubit(int index)
675
    {
676
    if( index>=0 && index<mNumCubits && mCubits[index]!=null ) mCubits[index].setUnmarked();
677
    }
678
}
(3-3/13)