next up previous contents
: 実装 : 三次元シンプレックス要素 : 実装   目次

表面の法線方向ベクトル $ \{ n \} $

各表面の(外向き)法線方向ベクトル $ \{ n \} $ は、 それぞれ以下のように定義される。

表面 $Iface = 0$の場合、


$\displaystyle \{ n \} = \mathrm{normalize}( ( \{ x1 \} - \{ x2 \} ) \times ( \{ x2 \} - \{ x3 \} ) )$     (1.48)

表面 $Iface = 1$の場合、


$\displaystyle \{ n \} = \mathrm{normalize}( ( \{ x0 \} - \{ x3 \} ) \times ( \{ x3 \} - \{ x2 \} ) )$     (1.49)

表面 $Iface = 2$の場合、


$\displaystyle \{ n \} = \mathrm{normalize}( ( \{ x0 \} - \{ x1 \} ) \times ( \{ x1 \} - \{ x3 \} ) )$     (1.50)

表面 $Iface = 3$の場合、


$\displaystyle \{ n \} = \mathrm{normalize}( ( \{ x0 \} - \{ x2 \} ) \times ( \{ x2 \} - \{ x1 \} ) )$     (1.51)





Hiroshi KAWAI 平成15年8月11日