Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Spr::CDQHPlane< TVtx > Class Template Reference

QuickHullで作られる面. More...

#include <CDQuickHull3D.h>

Collaboration diagram for Spr::CDQHPlane< TVtx >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<class TVtx>
class Spr::CDQHPlane< TVtx >

QuickHullで作られる面.

Definition at line 23 of file CDQuickHull3D.h.


Member Function Documentation

template<class TVtx>
void Spr::CDQHPlane< TVtx >::Clear  ) 
 

メモリクリア.使う前に呼ぶ.

< メモリクリア.使う前に呼ぶ.

Definition at line 13 of file CDQuickHull3DImp.h.

References Spr::CDQHPlane< TVtx >::deleted.

Referenced by Spr::CDQHPlanes< TVtx >::CreateCone(), and Spr::CDQHPlanes< TVtx >::CreateFirstConvex().

template<class TVtx>
bool Spr::CDQHPlane< TVtx >::Visible TVtx *  p  ) 
 

頂点 v から表側が見えるかどうか

Definition at line 17 of file CDQuickHull3DImp.h.

References Spr::CDQHPlane< TVtx >::dist, and Spr::CDQHPlane< TVtx >::normal.

Referenced by Spr::CDQHPlanes< TVtx >::FindHorizon().

template<class TVtx>
int Spr::CDQHPlane< TVtx >::GetVtxID TVtx *  v  ) 
 

vの頂点番号を返す(0..2を返す).見つからなければ3を返す.

Definition at line 23 of file CDQuickHull3DImp.h.

References Spr::CDQHPlane< TVtx >::vtx.

Referenced by Spr::CDQHPlanes< TVtx >::CreateCone().

template<class TVtx>
void Spr::CDQHPlane< TVtx >::CalcNormal  ) 
 

法線ベクトルと距離を計算する.

Definition at line 29 of file CDQuickHull3DImp.h.

References Spr::CDQHPlane< TVtx >::dist, PTM::VectorImp< SZ, STR, OD >::norm(), Spr::CDQHPlane< TVtx >::normal, PTM::VectorImp< SZ, STR, OD >::unitize(), and Spr::CDQHPlane< TVtx >::vtx.

Referenced by Spr::CDQHPlanes< TVtx >::CreateCone(), and Spr::CDQHPlanes< TVtx >::CreateFirstConvex().

template<class TVtx>
void Spr::CDQHPlane< TVtx >::Reverse  ) 
 

表裏をひっくり返す.

Definition at line 41 of file CDQuickHull3DImp.h.

References Spr::CDQHPlane< TVtx >::dist, Spr::CDQHPlane< TVtx >::normal, and Spr::CDQHPlane< TVtx >::vtx.

Referenced by Spr::CDQHPlanes< TVtx >::CreateFirstConvex().

template<class TVtx>
double Spr::CDQHPlane< TVtx >::CalcDist TVtx *  v  ) 
 

点との距離を計算する.精度を考慮して一番近い点で計算する.

Definition at line 47 of file CDQuickHull3DImp.h.

References Spr::CDQHPlane< TVtx >::normal, and Spr::CDQHPlane< TVtx >::vtx.

Referenced by Spr::CDQHPlanes< TVtx >::FindFarthest().

template<class TVtx>
void Spr::CDQHPlane< TVtx >::Print std::ostream &  os  )  const
 

デバッグ用表示

Definition at line 60 of file CDQuickHull3DImp.h.

References Spr::CDQHPlane< TVtx >::deleted, Spr::CDQHPlane< TVtx >::dist, Spr::CDQHPlane< TVtx >::normal, and Spr::CDQHPlane< TVtx >::vtx.


Member Data Documentation

template<class TVtx>
Vec3d Spr::CDQHPlane< TVtx >::normal
 

面の法線

Definition at line 25 of file CDQuickHull3D.h.

Referenced by Spr::CDQHPlane< TVtx >::CalcDist(), Spr::CDQHPlane< TVtx >::CalcNormal(), Spr::CDQHPlanes< TVtx >::CreateConvexHull(), Spr::CDQHPlane< TVtx >::Print(), Spr::CDQHPlane< TVtx >::Reverse(), and Spr::CDQHPlane< TVtx >::Visible().

template<class TVtx>
double Spr::CDQHPlane< TVtx >::dist
 

面の原点からの距離

Definition at line 26 of file CDQuickHull3D.h.

Referenced by Spr::CDQHPlane< TVtx >::CalcNormal(), Spr::CDQHPlanes< TVtx >::CreateConvexHull(), Spr::CDQHPlane< TVtx >::Print(), Spr::CDQHPlane< TVtx >::Reverse(), and Spr::CDQHPlane< TVtx >::Visible().

template<class TVtx>
TVtx* Spr::CDQHPlane< TVtx >::vtx[3]
 

面を構成する頂点

Definition at line 28 of file CDQuickHull3D.h.

Referenced by Spr::CDQHPlane< TVtx >::CalcDist(), Spr::CDQHPlane< TVtx >::CalcNormal(), Spr::CDQHPlanes< TVtx >::CreateCone(), Spr::CDQHPlanes< TVtx >::CreateConvexHull(), Spr::CDQHPlanes< TVtx >::CreateFirstConvex(), Spr::CDQHPlanes< TVtx >::FindFarthest(), Spr::CDQHPlanes< TVtx >::FindHorizon(), Spr::CDQHPlane< TVtx >::GetVtxID(), Spr::CDQHPlane< TVtx >::Print(), and Spr::CDQHPlane< TVtx >::Reverse().

template<class TVtx>
CDQHPlane* Spr::CDQHPlane< TVtx >::neighbor[3]
 

隣の面 vtx[0]-vtx[1] の隣が neighbor[0]

Definition at line 29 of file CDQuickHull3D.h.

Referenced by Spr::CDQHPlanes< TVtx >::CreateCone(), Spr::CDQHPlanes< TVtx >::CreateFirstConvex(), and Spr::CDQHPlanes< TVtx >::FindHorizon().

template<class TVtx>
bool Spr::CDQHPlane< TVtx >::deleted
 

削除された面はtrue

Definition at line 30 of file CDQuickHull3D.h.

Referenced by Spr::CDQHPlane< TVtx >::Clear(), Spr::CDQHPlanes< TVtx >::CreateConvexHull(), Spr::CDQHPlanes< TVtx >::FindHorizon(), and Spr::CDQHPlane< TVtx >::Print().


The documentation for this class was generated from the following files:
Generated on Sun Apr 16 02:08:35 2006 for Springhead by  doxygen 1.4.1