テトラの体積計算。
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | vertices(3,4) |
任意の点がテトラの内部にあるかどうかを判定する。 点でテトラを分割したそれぞれの体積の和が、元々のテトラの体積を上回れば、点はテトラ外部にある。 https://matcha-choco010.net/2018/03/14/point-in-tetrahedron/
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | vertices(3,4) | |||
real, | intent(in) | :: | point(3) |
テトラの内外判定の内部処理確認用サブルーチン
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | vertices(3,4) | |||
real, | intent(in) | :: | point(3) | |||
real, | intent(out) | :: | vol_sum |
分割体積和 |
||
real, | intent(out) | :: | volume |
テトラ体積 |