CGAL 6.1.1 - 2D and 3D Linear Geometry Kernel

Loading...
Searching...
No Matches
List of all members
CGAL::Projection_traits_3< GeomTraits > Class Template Reference
Reference Manual » Kernel Classes

`#include <CGAL/Projection_traits_3.h>`

## Definition

template<class GeomTraits>
class CGAL::Projection_traits_3< GeomTraits >

The class `Projection_traits_3` works similarly to the `Projection_traits_xy_3`, `Projection_traits_xz_3`, and `Projection_traits_yz_3` traits classes, enabling the use of 2D algorithms on the projections of 3D data onto an arbitrary plane.

Template Parameters

  GeomTraits | must be a model of `ProjectionTraitsGeometricTraits_3`

Note
  Internal constructions (projections) are used in the predicate and construction functors of this class. If `K` is a model of `Kernel` providing exact constructions or if `K` is a `CGAL::Filtered_kernel` (such as for `CGAL::Exact_predicates_inexact_constructions_kernel`), this class automatically provides exact predicates.

Is model of
  `TriangulationTraits_2`
  `DelaunayTriangulationTraits_2`
  `ConstrainedTriangulationTraits_2`
  `PolygonTraits_2`
  `ConformingDelaunayTriangulationTraits_2`
  `Barycentric_coordinates::BarycentricTraits_2`

See also
  `CGAL::Projection_traits_xy_3`
  `CGAL::Projection_traits_xz_3`
  `CGAL::Projection_traits_yz_3`

Examples
  Triangulation_2/triangulation_projection_traits.cpp.

## Creation
| Projection_traits_3 (const typename GeomTraits::Vector_3 &normal)
| Constructor.

## Constructor & Destructor Documentation

## ◆ Projection_traits_3()

template<class GeomTraits >

CGAL::Projection_traits_3< GeomTraits >::Projection_traits_3 | ( | const typename GeomTraits::Vector_3 & | normal | ) |

Constructor.

Parameters

  normal | a vector orthogonal to the projection plane.