CGAL 6.2 - 3D Convex Hulls
Loading...
Searching...
No Matches
Directional Queries Functions

Functions

template<class Mesh , class Direction >
boost::graph_traits< Mesh >::vertex_descriptor CGAL::extreme_vertex_3 (const Convex_hull_hierarchy< Mesh > &ch, const Direction &dir)
 computes the point of the convex hull whose orthogonal projection onto that direction is maximal and returns the associated vertex.
 
template<class PointRange , class Direction , class NamedParameters = parameters::Default_named_parameters>
Point_3 CGAL::extreme_point_3 (const PointRange &r, const Direction &dir, const NamedParameters &np=parameters::default_values())
 computes the point whose orthogonal projection onto that direction is maximal.
 
template<class Graph , class Direction , class NamedParameters = parameters::Default_named_parameters>
boost::graph_traits< Graph >::vertex_descriptor CGAL::extreme_vertex_3 (const Graph &g, const Direction &dir, const NamedParameters &np=parameters::default_values())
 computes the point of the convex hull whose orthogonal projection onto that direction is maximal and returns the associated vertex.
 

Function Documentation

◆ extreme_point_3()

template<class PointRange , class Direction , class NamedParameters = parameters::Default_named_parameters>
Point_3 CGAL::extreme_point_3 ( const PointRange &  r,
const Direction &  dir,
const NamedParameters &  np = parameters::default_values() 
)

#include <CGAL/extreme_point_3.h>

computes the point whose orthogonal projection onto that direction is maximal.

If not unique, a single point is returned.

Template Parameters
PointRangeis a model of ConstRange. The value type of its iterator is the key type of the named parameter point_map.
Directionmust be a Direction_3 typedef of a CGAL kernel
NamedParametersa sequence of Named Parameters
Parameters
rthe range of points
dirthe direction
npan optional sequence of Named Parameters among the ones listed below
Optional Named Parameters
Returns
an instance of the key type of point_map parameter

◆ extreme_vertex_3() [1/2]

template<class Mesh , class Direction >
boost::graph_traits< Mesh >::vertex_descriptor CGAL::extreme_vertex_3 ( const Convex_hull_hierarchy< Mesh > &  ch,
const Direction &  dir 
)

#include <CGAL/Convex_hull_hierarchy.h>

computes the point of the convex hull whose orthogonal projection onto that direction is maximal and returns the associated vertex.

If not unique, a single vertex is returned.

Template Parameters
Mesha model of VertexListGraph and MutableFaceGraph
Directionis a model of Kernel::Direction_3.
Parameters
chthe convex hull
dirthe direction

◆ extreme_vertex_3() [2/2]

template<class Graph , class Direction , class NamedParameters = parameters::Default_named_parameters>
boost::graph_traits< Graph >::vertex_descriptor CGAL::extreme_vertex_3 ( const Graph &  g,
const Direction &  dir,
const NamedParameters &  np = parameters::default_values() 
)

#include <CGAL/extreme_point_3.h>

computes the point of the convex hull whose orthogonal projection onto that direction is maximal and returns the associated vertex.

If not unique, a single vertex is returned.

Template Parameters
Graphis a model of VertexListGraph and AdjacencyGraph.
Directionmust be a Direction_3 typedef of a CGAL kernel
NamedParametersa sequence of Named Parameters
Parameters
gthe convex graph
dirthe direction
npan optional sequence of Named Parameters among the ones listed below
Precondition
The input graph must represent a convex object to guarantee a correct answer.
Optional Named Parameters
  • a property map associating points to the vertices of g
  • Type: a model of ReadablePropertyMap
  • Default: boost::get(CGAL::vertex_point, g)
  • Extra: If this parameter is omitted, an internal property map for CGAL::vertex_point_t must be available in Graph.