104 THROW( ExcAssertMsg() << EI_Message(
"Unknown number of the abscissa of the triangle.") );
117 default:
THROW( ExcAssertMsg() << EI_Message(
"Unknown number of the point of the triangle.") );
148 for (
int i=0; i<3; ++i) {
158 double min =
X1.
Get(i);
160 if (
X2.
Get(i) < min) {
163 if (
X3.
Get(i) < min) {
171 double max =
X1.
Get(i);
173 if (
X2.
Get(i) > max) {
176 if (
X3.
Get(i) > max) {
203 if (
Dot(N1, N2) < 0) {
209 if (
Dot(N1, N2) < 0) {
215 if (
Dot(N1, N2) < 0) {
const TVector & GetVector() const
Bounding box in 3d ambient space.
static int numberInstance
void SetPoints(const TPoint &, const TPoint &)
void SetPoints(const TPoint &, const TPoint &, const TPoint &)
TTriangle & operator=(const TTriangle &t)
bool IsInner(const TPoint &) const
const TPoint & GetPoint(int) const
void SetPoints(const TPoint &, const TPoint &, const TPoint &)
TVector Cross(const TVector &, const TVector &)
BoundingBox & get_bounding_box()
const TPlain & GetPlain() const
const TAbscissa & GetAbscissa(int) const
#define THROW(whole_exception_expr)
Wrapper for throw. Saves the throwing point.
double Dot(const TVector &, const TVector &)