aimstil  5.0.5
til::geo::AreIntersecting::Triangles3D< TArray > Class Template Reference

Check whether two triangles are intersecting or not. More...

#include <cathier/geometrics.h>

Public Types

typedef TArray::value_type prec_type
 
typedef numeric_array< prec_type, 2 > Array2D
 

Public Member Functions

bool operator() (const TArray &A1, const TArray &B1, const TArray &C1, const TArray &A2, const TArray &B2, const TArray &C2)
 Check if two triangles in 3D are intersecting. More...
 

Detailed Description

template<typename TArray>
class til::geo::AreIntersecting::Triangles3D< TArray >

Check whether two triangles are intersecting or not.

TODO: I think I could use a 'strict' argument, that would decide on whether we want a strict or loose interesction, or more precisely, if we consider the triangles as topologically open or closed. Right now they are considered as open.

Definition at line 560 of file geometrics.h.

Member Typedef Documentation

◆ Array2D

template<typename TArray >
typedef numeric_array<prec_type,2> til::geo::AreIntersecting::Triangles3D< TArray >::Array2D

Definition at line 565 of file geometrics.h.

◆ prec_type

template<typename TArray >
typedef TArray::value_type til::geo::AreIntersecting::Triangles3D< TArray >::prec_type

Definition at line 564 of file geometrics.h.

Member Function Documentation

◆ operator()()

template<typename TArray >
bool til::geo::AreIntersecting::Triangles3D< TArray >::operator() ( const TArray &  A1,
const TArray &  B1,
const TArray &  C1,
const TArray &  A2,
const TArray &  B2,
const TArray &  C2 
)
inline

Check if two triangles in 3D are intersecting.

Definition at line 573 of file geometrics.h.

References til::abs(), til::dot(), til::geo::is_in_circumcircle(), til::max(), til::min_index(), til::fuzzy::same_sign(), and til::geo::triangle_normal().


The documentation for this class was generated from the following file: