aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02317.html
blob: ac95a104a52db732ca197a66c4c883d20c3afba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>NeL: NL3D::CCameraCol class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex">  <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a>  | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>NL3D::CCameraCol Class Reference</h1><code>#include &lt;<a class="el" href="a05533.html">camera_col.h</a>&gt;</code>
<p>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A tool class used to compute differents info for camera collision <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2003 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00044">44</a> of file <a class="el" href="a05533.html">camera_col.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraCola0">build</a> (const <a class="el" href="a03128.html">CVector</a> &amp;start, const <a class="el" href="a03128.html">CVector</a> &amp;end, float radius, bool cone)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraCola1">CCameraCol</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraCola2">minimizeDistanceAgainstTri</a> (const <a class="el" href="a03128.html">CVector</a> &amp;p0, const <a class="el" href="a03128.html">CVector</a> &amp;p1, const <a class="el" href="a03128.html">CVector</a> &amp;p2, float &amp;sqrMinDist)</td></tr>

<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02156.html">NLMISC::CAABBox</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColo0">BBox</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColo1">Cone</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColo2">End</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColo3">Radius</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColo4">Start</a></td></tr>

<tr><td colspan=2><br><h2>Private Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom>{ <a class="el" href="a02317.html#NL3D_1_1CCameraColy0NL3D_1_1CCameraColy1">MaxNPlanes</a> = 6
 }</td></tr>

<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColr0">_ArrayIn</a> [3+MaxNPlanes]</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColr1">_ArrayOut</a> [3+MaxNPlanes]</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColr2">_MaxRadius</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColr3">_MaxRadiusProj</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColr4">_MinRadiusProj</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColr5">_NPlanes</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColr6">_OODeltaRadiusProj</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03082.html">NLMISC::CPlane</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColr7">_Pyramid</a> [MaxNPlanes]</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColr8">_RayLen</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02317.html#NL3D_1_1CCameraColr9">_RayNorm</a></td></tr>

</table>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="NL3D_1_1CCameraColy0" doxytag="NL3D::CCameraCol::@7" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> anonymous enum<code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CCameraColy0NL3D_1_1CCameraColy1" doxytag="MaxNPlanes" ></a>MaxNPlanes</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="a05533.html#l00070">70</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
<div class="fragment"><pre>00070 {<a class="code" href="a02317.html#NL3D_1_1CCameraColy0NL3D_1_1CCameraColy1">MaxNPlanes</a>=6};
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NL3D_1_1CCameraCola1" doxytag="NL3D::CCameraCol::CCameraCol" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> NL3D::CCameraCol::CCameraCol </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05532.html#l00043">43</a> of file <a class="el" href="a05532.html">camera_col.cpp</a>.
<p>
<div class="fragment"><pre>00044 {
00045 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CCameraCola0" doxytag="NL3D::CCameraCol::build" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NL3D::CCameraCol::build </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>start</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>end</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>float&nbsp;</td>
          <td class="mdname" nowrap> <em>radius</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>cone</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05532.html#l00048">48</a> of file <a class="el" href="a05532.html">camera_col.cpp</a>.
<p>
References <a class="el" href="a05533.html#l00081">_MaxRadius</a>, <a class="el" href="a05533.html#l00084">_MaxRadiusProj</a>, <a class="el" href="a05533.html#l00083">_MinRadiusProj</a>, <a class="el" href="a05533.html#l00078">_NPlanes</a>, <a class="el" href="a05533.html#l00085">_OODeltaRadiusProj</a>, <a class="el" href="a05533.html#l00077">_Pyramid</a>, <a class="el" href="a05533.html#l00086">_RayLen</a>, <a class="el" href="a05533.html#l00087">_RayNorm</a>, <a class="el" href="a05533.html#l00057">BBox</a>, <a class="el" href="a05533.html#l00054">Cone</a>, <a class="el" href="a05533.html#l00050">End</a>, <a class="el" href="a05384.html#l00215">NLMISC::CAABBox::extend()</a>, <a class="el" href="a05385.html#l00091">NLMISC::CAABBox::getHalfSize()</a>, <a class="el" href="a06170.html#l00036">NLMISC::CPlane::make()</a>, <a class="el" href="a05532.html#l00038">NL3D::NL3D_CameraSmoothRadiusFactor</a>, <a class="el" href="a05972.html#l01170">NLMISC::CMatrix::normalize()</a>, <a class="el" href="a06682.html#l00125">NLMISC::CVector::normed()</a>, <a class="el" href="a05533.html#l00052">Radius</a>, <a class="el" href="a05385.html#l00066">NLMISC::CAABBox::setCenter()</a>, <a class="el" href="a05385.html#l00067">NLMISC::CAABBox::setHalfSize()</a>, <a class="el" href="a05972.html#l00267">NLMISC::CMatrix::setPos()</a>, <a class="el" href="a05972.html#l00209">NLMISC::CMatrix::setRot()</a>, and <a class="el" href="a05533.html#l00048">Start</a>.
<p>
Referenced by <a class="el" href="a06729.html#l00144">NL3D::CVisualCollisionManager::getCameraCollision()</a>, and <a class="el" href="a06374.html#l00308">NL3D::CShadowPolyReceiver::getCameraCollision()</a>.
<p>
<div class="fragment"><pre>00049 {
00050         <span class="comment">// copy</span>
00051         <a class="code" href="a02317.html#NL3D_1_1CCameraColo4">Start</a>= start;
00052         <a class="code" href="a02317.html#NL3D_1_1CCameraColo2">End</a>= end;
00053         <a class="code" href="a02317.html#NL3D_1_1CCameraColo3">Radius</a>= radius;
00054         <a class="code" href="a02317.html#NL3D_1_1CCameraColo1">Cone</a>= cone;
00055         
00056         <span class="comment">// For camera smoothing</span>
00057         <span class="keywordtype">float</span>   maxRadiusFactor= <a class="code" href="a05363.html#a8">NL3D_CameraSmoothRadiusFactor</a>;
00058         
00059         <span class="comment">// not a Cone? =&gt; no smoothing</span>
00060         <span class="keywordflow">if</span>(!<a class="code" href="a02317.html#NL3D_1_1CCameraColo1">Cone</a>)
00061                 maxRadiusFactor= 1;
00062 
00063         <span class="comment">// **** Compute Camera smooth infos</span>
00064         <a class="code" href="a02317.html#NL3D_1_1CCameraColr2">_MaxRadius</a>= radius * maxRadiusFactor;
00065         <a class="code" href="a02317.html#NL3D_1_1CCameraColr4">_MinRadiusProj</a>= <a class="code" href="a02317.html#NL3D_1_1CCameraColo3">Radius</a> / (end-start).norm();
00066         <a class="code" href="a02317.html#NL3D_1_1CCameraColr3">_MaxRadiusProj</a>= <a class="code" href="a02317.html#NL3D_1_1CCameraColr2">_MaxRadius</a> / (end-start).norm();
00067         <a class="code" href="a02317.html#NL3D_1_1CCameraColr9">_RayNorm</a>= (end-start).normed();
00068         <a class="code" href="a02317.html#NL3D_1_1CCameraColr8">_RayLen</a>= (end-start).norm();
00069         <a class="code" href="a02317.html#NL3D_1_1CCameraColr6">_OODeltaRadiusProj</a>= 0;
00070         <span class="keywordflow">if</span>(<a class="code" href="a02317.html#NL3D_1_1CCameraColr3">_MaxRadiusProj</a>&gt;<a class="code" href="a02317.html#NL3D_1_1CCameraColr4">_MinRadiusProj</a>)
00071                 <a class="code" href="a02317.html#NL3D_1_1CCameraColr6">_OODeltaRadiusProj</a>= 1.f / (<a class="code" href="a02317.html#NL3D_1_1CCameraColr3">_MaxRadiusProj</a>-<a class="code" href="a02317.html#NL3D_1_1CCameraColr4">_MinRadiusProj</a>);
00072 
00073         <span class="comment">// **** build the pyramid, with MaxRadius</span>
00074         <span class="comment">// approximate with a box</span>
00075         CMatrix         mat;
00076         <span class="comment">// Precision note: make the pyramid local to Start</span>
00077         mat.setRot(CVector::I, (start-end).normed(), CVector::K);
00078         mat.normalize(CMatrix::YZX);
00079         <span class="comment">// build the start 4 points</span>
00080         CVector         ps[4];
00081         <span class="comment">// cone or cylinder?</span>
00082         <span class="keywordflow">if</span>(cone)
00083         {
00084                 <a class="code" href="a02317.html#NL3D_1_1CCameraColr5">_NPlanes</a>= 5;
00085                 <span class="comment">// local to start!</span>
00086                 ps[0]= CVector::Null;
00087                 ps[1]= CVector::Null;
00088                 ps[2]= CVector::Null;
00089                 ps[3]= CVector::Null;
00090         }
00091         <span class="keywordflow">else</span>
00092         {
00093                 <a class="code" href="a02317.html#NL3D_1_1CCameraColr5">_NPlanes</a>= 6;
00094                 <span class="comment">// local to start!</span>
00095                 ps[0]= mat * CVector(_MaxRadius, 0, -_MaxRadius);
00096                 ps[1]= mat * CVector(_MaxRadius, 0, _MaxRadius);
00097                 ps[2]= mat * CVector(-_MaxRadius, 0, _MaxRadius);
00098                 ps[3]= mat * CVector(-_MaxRadius, 0, -_MaxRadius);
00099         }
00100         <span class="comment">// build the end 4 points</span>
00101         CVector         pe[4];
00102         <span class="comment">// local to start!</span>
00103         mat.setPos(end-start);
00104         pe[0]= mat * CVector(_MaxRadius, 0, -_MaxRadius);
00105         pe[1]= mat * CVector(_MaxRadius, 0, _MaxRadius);
00106         pe[2]= mat * CVector(-_MaxRadius, 0, _MaxRadius);
00107         pe[3]= mat * CVector(-_MaxRadius, 0, -_MaxRadius);
00108         <span class="comment">// try to roder for optimisation</span>
00109         <span class="comment">// left/right</span>
00110         <a class="code" href="a02317.html#NL3D_1_1CCameraColr7">_Pyramid</a>[0].<a class="code" href="a03082.html#NLMISC_1_1CPlanez1990_2">make</a>(ps[3], pe[3], pe[2]);
00111         <a class="code" href="a02317.html#NL3D_1_1CCameraColr7">_Pyramid</a>[1].<a class="code" href="a03082.html#NLMISC_1_1CPlanez1990_2">make</a>(ps[1], pe[1], pe[0]);
00112         <span class="comment">// back</span>
00113         <a class="code" href="a02317.html#NL3D_1_1CCameraColr7">_Pyramid</a>[2].<a class="code" href="a03082.html#NLMISC_1_1CPlanez1990_2">make</a>(pe[0], pe[1], pe[2]);
00114         <span class="comment">// top-bottom</span>
00115         <a class="code" href="a02317.html#NL3D_1_1CCameraColr7">_Pyramid</a>[3].<a class="code" href="a03082.html#NLMISC_1_1CPlanez1990_2">make</a>(ps[2], pe[2], pe[1]);
00116         <a class="code" href="a02317.html#NL3D_1_1CCameraColr7">_Pyramid</a>[4].<a class="code" href="a03082.html#NLMISC_1_1CPlanez1990_2">make</a>(ps[0], pe[0], pe[3]);
00117         <span class="comment">// front if not cone</span>
00118         <span class="keywordflow">if</span>(!cone)
00119                 <a class="code" href="a02317.html#NL3D_1_1CCameraColr7">_Pyramid</a>[5].<a class="code" href="a03082.html#NLMISC_1_1CPlanez1990_2">make</a>(ps[0], ps[2], ps[1]);
00120         
00121         <span class="comment">// **** build the bbox</span>
00122         <a class="code" href="a02317.html#NL3D_1_1CCameraColo0">BBox</a>.<a class="code" href="a02156.html#NLMISC_1_1CAABBoxz1902_1">setCenter</a>(start);
00123         <a class="code" href="a02317.html#NL3D_1_1CCameraColo0">BBox</a>.<a class="code" href="a02156.html#NLMISC_1_1CAABBoxExtz1902_0">extend</a>(end);
00124         <span class="comment">// enlarge a bit for radius</span>
00125         <a class="code" href="a02317.html#NL3D_1_1CCameraColo0">BBox</a>.<a class="code" href="a02156.html#NLMISC_1_1CAABBoxz1902_2">setHalfSize</a>(<a class="code" href="a02317.html#NL3D_1_1CCameraColo0">BBox</a>.<a class="code" href="a02156.html#NLMISC_1_1CAABBoxz1904_1">getHalfSize</a>()+CVector(_MaxRadius, _MaxRadius, _MaxRadius));
00126         
00127 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraCola2" doxytag="NL3D::CCameraCol::minimizeDistanceAgainstTri" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NL3D::CCameraCol::minimizeDistanceAgainstTri </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>p0</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>p1</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>p2</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>float &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>sqrMinDist</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
compute the intersection of the Camera Volume against the triangle, and minimize minDist (actual square of distance) with min sqr distance of the poly.
<p>
Definition at line <a class="el" href="a05532.html#l00131">131</a> of file <a class="el" href="a05532.html">camera_col.cpp</a>.
<p>
References <a class="el" href="a05533.html#l00073">_ArrayIn</a>, <a class="el" href="a05533.html#l00074">_ArrayOut</a>, <a class="el" href="a05533.html#l00084">_MaxRadiusProj</a>, <a class="el" href="a05533.html#l00083">_MinRadiusProj</a>, <a class="el" href="a05533.html#l00078">_NPlanes</a>, <a class="el" href="a05533.html#l00085">_OODeltaRadiusProj</a>, <a class="el" href="a05533.html#l00077">_Pyramid</a>, <a class="el" href="a05533.html#l00086">_RayLen</a>, <a class="el" href="a05533.html#l00087">_RayNorm</a>, <a class="el" href="a05587.html#l00115">NLMISC::clamp()</a>, <a class="el" href="a06170.html#l00097">NLMISC::CPlane::clipPolygonBack()</a>, <a class="el" href="a06171.html#l00052">NLMISC::CPlane::d</a>, <a class="el" href="a06172.html#l00035">NLMISC::CPlane::getNormal()</a>, <a class="el" href="a06170.html#l00036">NLMISC::CPlane::make()</a>, <a class="el" href="a02317.html#NL3D_1_1CCameraColy0NL3D_1_1CCameraColy1">MaxNPlanes</a>, <a class="el" href="a05484.html#l00038">min</a>, <a class="el" href="a05532.html#l00040">NL3D::NL3D_CameraSmoothNumAngleSample</a>, <a class="el" href="a05532.html#l00039">NL3D::NL3D_CameraSmoothNumZSample</a>, <a class="el" href="a06682.html#l00115">NLMISC::CVector::norm()</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05587.html#l00107">NLMISC::sqr()</a>, <a class="el" href="a06682.html#l00111">NLMISC::CVector::sqrnorm()</a>, <a class="el" href="a05533.html#l00048">Start</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05646.html#l00236">z</a>.
<p>
Referenced by <a class="el" href="a06729.html#l00330">NL3D::CVisualCollisionManager::CMeshCol::getCameraCollision()</a>, and <a class="el" href="a06374.html#l00308">NL3D::CShadowPolyReceiver::getCameraCollision()</a>.
<p>
<div class="fragment"><pre>00132 {
00133         CVector         *pIn= <a class="code" href="a02317.html#NL3D_1_1CCameraColr0">_ArrayIn</a>;
00134         CVector         *pOut= <a class="code" href="a02317.html#NL3D_1_1CCameraColr1">_ArrayOut</a>;
00135         
00136         <span class="comment">// **** clip triangle against the pyramid</span>
00137         <span class="comment">// build the triangle, local to start for precision problems</span>
00138         pIn[0]= p0 - <a class="code" href="a02317.html#NL3D_1_1CCameraColo4">Start</a>;
00139         pIn[1]= p1 - <a class="code" href="a02317.html#NL3D_1_1CCameraColo4">Start</a>;
00140         pIn[2]= p2 - <a class="code" href="a02317.html#NL3D_1_1CCameraColo4">Start</a>;
00141         <a class="code" href="a04558.html#a14">sint</a>    nVert= 3;
00142         <span class="comment">// clip</span>
00143         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0;i&lt;<a class="code" href="a02317.html#NL3D_1_1CCameraColr5">_NPlanes</a>;i++)
00144         {
00145                 nVert= <a class="code" href="a02317.html#NL3D_1_1CCameraColr7">_Pyramid</a>[i].<a class="code" href="a03082.html#NLMISC_1_1CPlanez1992_0">clipPolygonBack</a>(pIn, pOut, nVert);
00146                 swap(pIn, pOut);
00147                 <span class="keywordflow">if</span>(!nVert)
00148                         <span class="keywordflow">break</span>;
00149         }
00150 
00151         <span class="comment">// **** if clipped =&gt; collision</span>
00152         <span class="keywordflow">if</span>(nVert)
00153         {
00154                 <span class="comment">/*</span>
00155 <span class="comment">                        Polygon nearest distance to a point is:</span>
00156 <span class="comment">                                - the nearest distance of all vertices</span>
00157 <span class="comment">                                - or the nearest distance to the plane (if the project lies in the polygon)</span>
00158 <span class="comment">                                - or the nearest distance to each edge</span>
00159 <span class="comment"></span>
00160 <span class="comment">                        NB: testing only points works with low radius, but may fails in general case</span>
00161 <span class="comment">                */</span>
00162 
00163                 <span class="comment">// compute first the poly min distance</span>
00164                 <span class="keywordtype">float</span>   sqrPolyMinDist= FLT_MAX;
00165 
00166                 <span class="comment">// **** get the nearest distance for all points (avoid precision problem if doing only edge ones)</span>
00167                 <a class="code" href="a04558.html#a14">sint</a>    i;
00168                 <span class="keywordflow">for</span>(i=0;i&lt;nVert;i++)
00169                 {
00170                         <span class="comment">// NB: pIn[i] is already local to start</span>
00171                         <span class="keywordtype">float</span>   sqrDist= pIn[i].sqrnorm();
00172                         <span class="keywordflow">if</span>(sqrDist&lt;sqrPolyMinDist)
00173                                 sqrPolyMinDist= sqrDist;
00174                 }
00175 
00176                 <span class="comment">// **** get the nearest distance of the Start against each edge</span>
00177                 <span class="keywordflow">for</span>(i=0;i&lt;nVert;i++)
00178                 {
00179                         <span class="keyword">const</span>   CVector &amp;v0= pIn[i];
00180                         <span class="keyword">const</span>   CVector &amp;v1= pIn[(i+1)%nVert];
00181                         CVector vDir= v1-v0;
00182                         <span class="comment">// project on line</span>
00183                         <span class="keywordtype">float</span>   fLen= vDir.sqrnorm();   <span class="comment">// same as  vDir * (v1 - v0)</span>
00184                         <span class="comment">// NB: Project CVector::Null, since we are local to start here!</span>
00185                         <span class="keywordtype">float</span>   fStart= vDir * (-v0);
00186                         <span class="comment">// if start projection in the edge</span>
00187                         <span class="keywordflow">if</span>(fStart&gt;0 &amp;&amp; fStart&lt;fLen)
00188                         {
00189                                 <span class="comment">// compute distance to line</span>
00190                                 CVector proj= v0 + (fStart / fLen) * vDir;
00191                                 <span class="comment">// proj is local to Start</span>
00192                                 <span class="keywordtype">float</span>   sqrDist= proj.sqrnorm();
00193                                 <span class="keywordflow">if</span>(sqrDist&lt;sqrPolyMinDist)
00194                                         sqrPolyMinDist= sqrDist;
00195                         }
00196                 }
00197 
00198                 <span class="comment">// **** get the nearest distance of the Start against the plane</span>
00199                 <span class="comment">// get the plane local to start</span>
00200                 CPlane  plane;
00201                 plane.make(p0-Start, p1-Start, p2-Start);
00202                 <span class="comment">// plane * StartLocalToStart == plane * CVector::Null == plane.d !</span>
00203                 <span class="keywordtype">float</span>   planeDist= plane.d;
00204                 <span class="comment">// need to do the poly inclusion test only if the plane dist is better than the vertices</span>
00205                 <span class="keywordtype">float</span>   sqrPlaneDist= <a class="code" href="a05378.html#a373">sqr</a>(planeDist);
00206                 <span class="keywordflow">if</span>(sqrPlaneDist &lt; sqrPolyMinDist)
00207                 {
00208                         CVector normal= plane.getNormal();
00209 
00210                         <span class="comment">// the projection of Start on the plane: StartLocalToStart + </span>
00211                         CVector proj= planeDist * normal;
00212                         <span class="comment">// test poly inclusion</span>
00213                         <a class="code" href="a04558.html#a14">sint</a>    sign= 0;
00214                         <span class="keywordflow">for</span>(i=0;i&lt;nVert;i++)
00215                         {
00216                                 <span class="keyword">const</span>   CVector &amp;v0= pIn[i];
00217                                 <span class="keyword">const</span>   CVector &amp;v1= pIn[(i+1)%nVert];
00218                                 <span class="keywordtype">float</span>   d = ((v1-v0)^normal)*(proj-v0);
00219                                 <span class="keywordflow">if</span>(d&lt;0)
00220                                 {
00221                                         <span class="keywordflow">if</span>(sign==1) <span class="keywordflow">break</span>;
00222                                         <span class="keywordflow">else</span>    sign=-1;
00223                                 }
00224                                 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(d&gt;0)
00225                                 {
00226                                         <span class="keywordflow">if</span>(sign==-1) <span class="keywordflow">break</span>;
00227                                         <span class="keywordflow">else</span>    sign=1;
00228                                 }
00229                                 <span class="keywordflow">else</span>
00230                                         <span class="keywordflow">break</span>;
00231                         }
00232 
00233                         <span class="comment">// if succeed, minimize</span>
00234                         <span class="keywordflow">if</span>(i==nVert)
00235                                 sqrPolyMinDist= sqrPlaneDist;
00236                 }
00237 
00238                 <span class="comment">// **** Camera Smoothing: modulate according to angle of poly against cone</span>
00239                 <span class="comment">// Camera smooth not enabled?</span>
00240                 <span class="keywordflow">if</span>(<a class="code" href="a02317.html#NL3D_1_1CCameraColr3">_MaxRadiusProj</a>&lt;=<a class="code" href="a02317.html#NL3D_1_1CCameraColr4">_MinRadiusProj</a>)
00241                 {
00242                         <span class="comment">// then just take minum</span>
00243                         <span class="keywordflow">if</span>(sqrPolyMinDist&lt;sqrMinDist)
00244                                 sqrMinDist= sqrPolyMinDist;
00245                 }
00246                 <span class="comment">// Camera Smooth mode. if the unmodulated distance is lower than the current minDist, </span>
00247                 <span class="comment">// then this poly may be interesting, else don't have a chance</span>
00248                 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(sqrPolyMinDist&lt;sqrMinDist)
00249                 {
00250                         <span class="keywordtype">float</span>   sampleZSize= <a class="code" href="a02317.html#NL3D_1_1CCameraColr8">_RayLen</a> / <a class="code" href="a05363.html#a9">NL3D_CameraSmoothNumZSample</a>;
00251                         <span class="keywordtype">float</span>   sampleProjSize= 2*<a class="code" href="a02317.html#NL3D_1_1CCameraColr3">_MaxRadiusProj</a> / <a class="code" href="a05363.html#a10">NL3D_CameraSmoothNumAngleSample</a>;
00252 
00253                         <span class="comment">// **** Compute num Subdivision required</span>
00254                         <span class="comment">// To compute the number of subdivision, let's take the max of 2 req:</span>
00255                         <span class="comment">// the subdivision in Z (for Distance part of the function)</span>
00256                         <span class="comment">// the subdivision in Projection (for angle part of the function)</span>
00257 
00258                         <span class="comment">// Project all vertices to the plane</span>
00259                         <span class="keyword">static</span>  CVector pProj[3+<a class="code" href="a02317.html#NL3D_1_1CCameraColy0NL3D_1_1CCameraColy1">MaxNPlanes</a>];
00260                         <span class="keywordtype">float</span>   minZ= <a class="code" href="a02317.html#NL3D_1_1CCameraColr8">_RayLen</a>;
00261                         <span class="keywordtype">float</span>   maxZ= 0;
00262                         <span class="keywordflow">for</span>(i=0;i&lt;nVert;i++)
00263                         {
00264                                 <span class="keywordtype">float</span>   <a class="code" href="a04223.html#a574">z</a>= pIn[i] * <a class="code" href="a02317.html#NL3D_1_1CCameraColr9">_RayNorm</a>;
00265                                 minZ= <a class="code" href="a04061.html#a0">min</a>(minZ, z);
00266                                 maxZ= max(maxZ, z);
00267                                 <span class="comment">// cause of pyramid cliping, z should be &gt;=0</span>
00268                                 <span class="keywordflow">if</span>(<a class="code" href="a04223.html#a574">z</a>&gt;0)
00269                                         pProj[i]= pIn[i] / <a class="code" href="a04223.html#a574">z</a>;
00270                                 <span class="keywordflow">else</span>
00271                                         pProj[i]= CVector::Null;
00272                                 
00273                                 <span class="comment">// make local</span>
00274                                 pProj[i]-= _RayNorm;
00275                         }
00276                         <span class="comment">// Compute perimeter of projected poly</span>
00277                         <span class="keywordtype">float</span>   perimeterProj= 0;
00278                         <span class="keywordflow">for</span>(i=0;i&lt;nVert;i++)
00279                         {
00280                                 perimeterProj+= (pProj[(i+1)%nVert]-pProj[i]).norm();
00281                         }
00282 
00283                         <span class="comment">// compute the number of subdivision required on Z</span>
00284                         <a class="code" href="a04558.html#a15">uint</a>    numSubdivZ= (<a class="code" href="a04558.html#a15">uint</a>)((maxZ-minZ) / sampleZSize);
00285                         <span class="comment">// suppose a full projected quad perimeter will require max samples</span>
00286                         <a class="code" href="a04558.html#a15">uint</a>    numSubdivAngle= (<a class="code" href="a04558.html#a15">uint</a>)(perimeterProj / (4*sampleProjSize));
00287                         <span class="comment">// the number of subdivision</span>
00288                         <a class="code" href="a04558.html#a15">uint</a>    numSubdiv= max(numSubdivZ, numSubdivAngle);
00289                         numSubdiv= max(numSubdiv, (<a class="code" href="a04558.html#a15">uint</a>)1);
00290                         <span class="keywordtype">float</span>   ooNumSubdiv= 1.f / (<span class="keywordtype">float</span>)numSubdiv;
00291                         
00292                         <span class="comment">// **** Sample the polygon, to compute the minimum of the function</span>
00293                         <span class="comment">// for each tri of the polygon</span>
00294                         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> tri=0;tri&lt;nVert-2;tri++)
00295                         {
00296                                 CVector         lp[3];
00297                                 <span class="comment">// optim: prediv by numSubdiv</span>
00298                                 lp[0]= pIn[0] * ooNumSubdiv;
00299                                 lp[1]= pIn[tri+1] * ooNumSubdiv;
00300                                 lp[2]= pIn[tri+2] * ooNumSubdiv;
00301                                 
00302                                 <span class="comment">// sample using barycentric coordinates</span>
00303                                 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0;i&lt;=numSubdiv;i++)
00304                                 {
00305                                         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> j=0;j&lt;=numSubdiv-i;j++)
00306                                         {
00307                                                 <a class="code" href="a04558.html#a15">uint</a>    k= numSubdiv - i - j;
00308                                                 CVector sample= lp[0] * (<span class="keywordtype">float</span>)i + lp[1] * (<span class="keywordtype">float</span>)j + lp[2] * (<span class="keywordtype">float</span>)k;
00309                                                 
00310                                                 <span class="comment">// NB: sample is already local to start</span>
00311                                                 <span class="keywordtype">float</span>   sqrDist= sample.sqrnorm();
00312                                                 
00313                                                 <span class="comment">// **** get the point projection </span>
00314                                                 <span class="keywordtype">float</span>           <a class="code" href="a04223.html#a574">z</a>= sample * <a class="code" href="a02317.html#NL3D_1_1CCameraColr9">_RayNorm</a>;
00315                                                 CVector         proj;
00316                                                 <span class="comment">// cause of pyramid cliping, z should be &gt;=0</span>
00317                                                 <span class="keywordflow">if</span>(<a class="code" href="a04223.html#a574">z</a>&gt;0)
00318                                                         proj= sample / <a class="code" href="a04223.html#a574">z</a>;
00319                                                 <span class="keywordflow">else</span>
00320                                                         proj= CVector::Null;
00321                                                 <span class="comment">// make local</span>
00322                                                 proj-= _RayNorm;
00323                                                 
00324                                                 <span class="comment">// **** compute the Cone Linear factor (like a spot light)</span>
00325                                                 <span class="keywordtype">float</span>   rayDist= proj.norm();
00326                                                 <span class="keywordtype">float</span>   angleFactor= (rayDist-<a class="code" href="a02317.html#NL3D_1_1CCameraColr4">_MinRadiusProj</a>) * <a class="code" href="a02317.html#NL3D_1_1CCameraColr6">_OODeltaRadiusProj</a>;
00327                                                 <a class="code" href="a05378.html#a374">clamp</a>(angleFactor, 0.f, 1.f);
00328                                                 <span class="comment">// avoid C1 discontinuity when angleFactor==0</span>
00329                                                 angleFactor= <a class="code" href="a05378.html#a373">sqr</a>(angleFactor);
00330                                                 
00331                                                 <span class="comment">// **** modulate, but to a bigger value! (ie raylen)</span>
00332                                                 sqrDist= _RayLen * angleFactor + sqrtf(sqrDist) * (1-angleFactor);
00333                                                 sqrDist= <a class="code" href="a05378.html#a373">sqr</a>(sqrDist);
00334                                                 
00335                                                 <span class="comment">// if distance is lesser, take it</span>
00336                                                 <span class="keywordflow">if</span>(sqrDist&lt;sqrMinDist)
00337                                                         sqrMinDist= sqrDist;
00338                                         }
00339                                 }                       
00340                         }
00341                 }
00342         }
00343 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CCameraColr0" doxytag="NL3D::CCameraCol::_ArrayIn" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a02317.html#NL3D_1_1CCameraColr0">NL3D::CCameraCol::_ArrayIn</a>[3+MaxNPlanes]<code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00073">73</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00131">minimizeDistanceAgainstTri()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColr1" doxytag="NL3D::CCameraCol::_ArrayOut" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a02317.html#NL3D_1_1CCameraColr1">NL3D::CCameraCol::_ArrayOut</a>[3+MaxNPlanes]<code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00074">74</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00131">minimizeDistanceAgainstTri()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColr2" doxytag="NL3D::CCameraCol::_MaxRadius" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> float <a class="el" href="a02317.html#NL3D_1_1CCameraColr2">NL3D::CCameraCol::_MaxRadius</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00081">81</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColr3" doxytag="NL3D::CCameraCol::_MaxRadiusProj" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> float <a class="el" href="a02317.html#NL3D_1_1CCameraColr3">NL3D::CCameraCol::_MaxRadiusProj</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00084">84</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>, and <a class="el" href="a05532.html#l00131">minimizeDistanceAgainstTri()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColr4" doxytag="NL3D::CCameraCol::_MinRadiusProj" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> float <a class="el" href="a02317.html#NL3D_1_1CCameraColr4">NL3D::CCameraCol::_MinRadiusProj</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00083">83</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>, and <a class="el" href="a05532.html#l00131">minimizeDistanceAgainstTri()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColr5" doxytag="NL3D::CCameraCol::_NPlanes" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02317.html#NL3D_1_1CCameraColr5">NL3D::CCameraCol::_NPlanes</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00078">78</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>, and <a class="el" href="a05532.html#l00131">minimizeDistanceAgainstTri()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColr6" doxytag="NL3D::CCameraCol::_OODeltaRadiusProj" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> float <a class="el" href="a02317.html#NL3D_1_1CCameraColr6">NL3D::CCameraCol::_OODeltaRadiusProj</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00085">85</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>, and <a class="el" href="a05532.html#l00131">minimizeDistanceAgainstTri()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColr7" doxytag="NL3D::CCameraCol::_Pyramid" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03082.html">NLMISC::CPlane</a> <a class="el" href="a02317.html#NL3D_1_1CCameraColr7">NL3D::CCameraCol::_Pyramid</a>[MaxNPlanes]<code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00077">77</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>, and <a class="el" href="a05532.html#l00131">minimizeDistanceAgainstTri()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColr8" doxytag="NL3D::CCameraCol::_RayLen" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> float <a class="el" href="a02317.html#NL3D_1_1CCameraColr8">NL3D::CCameraCol::_RayLen</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00086">86</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>, and <a class="el" href="a05532.html#l00131">minimizeDistanceAgainstTri()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColr9" doxytag="NL3D::CCameraCol::_RayNorm" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a02317.html#NL3D_1_1CCameraColr9">NL3D::CCameraCol::_RayNorm</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00087">87</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>, and <a class="el" href="a05532.html#l00131">minimizeDistanceAgainstTri()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColo0" doxytag="NL3D::CCameraCol::BBox" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a02156.html">NLMISC::CAABBox</a> <a class="el" href="a02317.html#NL3D_1_1CCameraColo0">NL3D::CCameraCol::BBox</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00057">57</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>, <a class="el" href="a06729.html#l00330">NL3D::CVisualCollisionManager::CMeshCol::getCameraCollision()</a>, <a class="el" href="a06729.html#l00144">NL3D::CVisualCollisionManager::getCameraCollision()</a>, and <a class="el" href="a06374.html#l00308">NL3D::CShadowPolyReceiver::getCameraCollision()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColo1" doxytag="NL3D::CCameraCol::Cone" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a02317.html#NL3D_1_1CCameraColo1">NL3D::CCameraCol::Cone</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00054">54</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColo2" doxytag="NL3D::CCameraCol::End" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a02317.html#NL3D_1_1CCameraColo2">NL3D::CCameraCol::End</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00050">50</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>, and <a class="el" href="a06729.html#l00330">NL3D::CVisualCollisionManager::CMeshCol::getCameraCollision()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColo3" doxytag="NL3D::CCameraCol::Radius" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> float <a class="el" href="a02317.html#NL3D_1_1CCameraColo3">NL3D::CCameraCol::Radius</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00052">52</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CCameraColo4" doxytag="NL3D::CCameraCol::Start" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a02317.html#NL3D_1_1CCameraColo4">NL3D::CCameraCol::Start</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05533.html#l00048">48</a> of file <a class="el" href="a05533.html">camera_col.h</a>.
<p>
Referenced by <a class="el" href="a05532.html#l00048">build()</a>, <a class="el" href="a06729.html#l00330">NL3D::CVisualCollisionManager::CMeshCol::getCameraCollision()</a>, and <a class="el" href="a05532.html#l00131">minimizeDistanceAgainstTri()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a05533.html">camera_col.h</a><li><a class="el" href="a05532.html">camera_col.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:44:52 2004 for NeL by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.6 </small></address>
</body>
</html>