Atlas [0.42.0] | C++ docs
  1. Browse source
  1. Pages
  2. Classes
  3. Namespaces
  4. Files

atlas::interpolation::element::Triag3D class
#include <atlas/interpolation/element/Triag3D.h>

Contents

  • Reference
    • Constructors, destructors, conversion operators
    • Public functions
    • Friends

Triangle structure Implements http://www.scratchapixel.com/lessons/3d-basic-lessons/lesson-9-ray-triangle-intersection/m-ller-trumbore-algorithm

Constructors, destructors, conversion operators

Triag3D(const double* x0, const double* x1, const double* x2)
Triag3D(const PointXYZ& x0, const PointXYZ& x1, const PointXYZ& x2)
Triag3D(const Vector3D& x0, const Vector3D& x1, const Vector3D& x2)

Public functions

auto intersects(const method::Ray& r, double edgeEpsilon = 5*std::numeric_limits<double>::epsilon(), double epsilon = 5*std::numeric_limits<double>::epsilon()) const -> method::Intersect
auto area() const -> double
void print(std::ostream& s) const
auto p(int i) -> const Vector3D&

Friends

auto operator<<(std::ostream& s, const Triag3D& p) -> std::ostream&
Tab / T to search, Esc to close
…

Search for symbols, directories, files, pages or modules. You can omit any prefix from the symbol or file path; adding a : or / suffix lists all members of given symbol or directory.

Use ↓ / ↑ to navigate through the list, Enter to go. Tab autocompletes common prefix, you can copy a link to the result using ⌘ L while ⌘ M produces a Markdown link.

Sorry, nothing was found.

    Atlas docs. Part of the Atlas project, copyright © ECMWF
    Generated by Doxygen and m.css. Contact the team via GitHub.