Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
LetheGridTools::TriangleProjectionData< dim > Struct Template Reference

#include <lethe_grid_tools.h>

Public Attributes

Point< dim > p_0
Tensor< 1, dim > e_0
Tensor< 1, dim > e_1
Tensor< 1, dim > unit_normal
double a
double b
double c
double det

Detailed Description

template<int dim>
struct LetheGridTools::TriangleProjectionData< dim >

Particle-independent geometric data of a triangle (its first vertex, edge vectors, unit normal, and the coefficients of its first fundamental form), precomputed once by prepare_triangle_projection_data so that repeated find_particle_triangle_projection queries against the same triangle (e.g. for several nearby particles) do not recompute it. This data is defined "Geometric Tools for Computer Graphics, Eberly 2003 Chapter 10.3.2 - Point to triangle.".

Template Parameters
dimAn integer that denotes the number of spatial dimensions.

Definition at line 309 of file lethe_grid_tools.h.

Member Data Documentation

◆ a

template<int dim>
double LetheGridTools::TriangleProjectionData< dim >::a

Definition at line 315 of file lethe_grid_tools.h.

◆ b

template<int dim>
double LetheGridTools::TriangleProjectionData< dim >::b

Definition at line 316 of file lethe_grid_tools.h.

◆ c

template<int dim>
double LetheGridTools::TriangleProjectionData< dim >::c

Definition at line 317 of file lethe_grid_tools.h.

◆ det

template<int dim>
double LetheGridTools::TriangleProjectionData< dim >::det

Definition at line 318 of file lethe_grid_tools.h.

◆ e_0

template<int dim>
Tensor<1, dim> LetheGridTools::TriangleProjectionData< dim >::e_0

Definition at line 312 of file lethe_grid_tools.h.

◆ e_1

template<int dim>
Tensor<1, dim> LetheGridTools::TriangleProjectionData< dim >::e_1

Definition at line 313 of file lethe_grid_tools.h.

◆ p_0

template<int dim>
Point<dim> LetheGridTools::TriangleProjectionData< dim >::p_0

Definition at line 311 of file lethe_grid_tools.h.

◆ unit_normal

template<int dim>
Tensor<1, dim> LetheGridTools::TriangleProjectionData< dim >::unit_normal

Definition at line 314 of file lethe_grid_tools.h.


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