Go to the documentation of this file.
69 template<
typename MeshT >
77 typedef typename Kernel::Scalar
Scalar;
96 return PropHelpers::compute_unit_normal(p1, p2, p3);
101 return PropHelpers::compute_normal(p1, p2, p3);
106 return v1[0] * v2[0] + v1[1] * v2[1] + v1[2] * v2[2];
113 for(
size_t i = 0; i < nb_e; ++i)
114 res[i] = v1[(1 + i) % nb_e] * v2[(2 + i) % nb_e] -
115 v1[(2 + i) % nb_e] * v2[(1 + i) % nb_e];
129 Vector v(p1[0] - p2[0], p1[1] - p2[1], p1[2] - p2[2]);
139 res =
Vector(v[0] / dist, v[1] / dist, v[2] / dist);
148 Vector result(v1[0] + v2[0], v1[1] + v2[1], v1[2] + v2[2]);
157 Point result(p[0] + v[0], p[1] + v[1], p[2] + v[2]);
164 Point result(p1[0] - v[0], p1[1] - v[1], p1[2] - v[2]);
170 Vector result(p1[0] - p2[0], p1[1] - p2[1], p1[2] - p2[2]);
176 Vector result(v1[0] - v2[0], v1[1] - v2[1], v1[2] - v2[2]);
182 Vector result(v[0] * s, v[1] * s, v[2] * s);
194 template<
typename MeshT >
200 template<
typename MeshT >
static Vector sub_v(const Vector &v1, const Vector &v2)
CoordinateT CoordinateType
static Scalar length2(const Vector &v)
Point::SuperClass::const_iterator Cartesian_const_iterator_3
RetrieveKernel< Mesh >::Kernel Kernel
AIF_mesh_kernel_generator Kernel
static Scalar length(const Point &p1, const Point &p2)
AIF_mesh_kernel_generator Kernel
Refer to Geometry_traits_documentation_dummy for further documentation on provided types and algorith...
DataStructures::AIF::AIFMesh::Vector Vector
AIF specialization. Refer to for concrete usage .
static Vector normal(const Point &p1, const Point &p2, const Point &p3)
A generic definition, that is template specialized for every supported native implementation,...
Interfaces for plugins These interfaces will be used for different plugins.
DataStructures::AIF::AIFMesh::CoordinateType Scalar
static Vector cross_product(const Vector &v1, const Vector &v2)
static Scalar get_x(const Point &p)
FEVV::DataStructures::AIF::AIFPropertiesHelpers PropHelpers
static Scalar get_y(const Point &p)
AIFVertex::CoordinateType CoordinateType
static const Vector NULL_VECTOR
Geometry_traits(const Mesh &m)
DataStructures::AIF::AIFMesh::Point Point
static Point sub_pv(const Point &p1, const Vector &v)
static Scalar get(const Point &p)
static Vector add_v(const Vector &v1, const Vector &v2)
static Scalar dot_product(const Vector &v1, const Vector &v2)
static const Point ORIGIN
static Point add_pv(const Point &p, const Vector &v)
static Vector normalize(const Vector &v)
static Scalar length(const Vector &v)
This class represents an AIF structure. AIF structure can deal with both manifold and non-manifold su...
Cartesian_const_iterator_3 Construct_cartesian_const_iterator_3
static Vector scalar_mult(const Vector &v, Scalar s)
static Vector unit_normal(const Point &p1, const Point &p2, const Point &p3)
Point::SuperClass::iterator Cartesian_iterator_3
FEVV::DataStructures::AIF::AIFMesh AIFMesh
static Vector sub_p(const Point &p1, const Point &p2)
static Scalar get_z(const Point &p)
static ElementType dot_product(const ElementType v1[DIM], const ElementType v2[DIM])
Compute v1 * v2 scalar product.
This class is an helper class associated to the AIFMesh structure. AIFPropertiesHelpers implements al...