CGAL 6.0 - 2D and 3D Linear Geometry Kernel
Loading...
Searching...
No Matches

Definition

Operations

A model of this concept must provide:

Kernel::Point_3 operator() (const CGAL::Origin &CGAL::ORIGIN)
 introduces a point with Cartesian coordinates \( (0,0,0)\).
 
Kernel::Point_3 operator() (const Kernel::Point_3 &p)
 returns p.
 
Kernel::Point_3 operator() (const Kernel::Weighted_point_3 &wp)
 extracts the bare point from the weighted point.
 

Member Function Documentation

◆ operator()()

Kernel::Point_3 Kernel::ConstructPoint_3::operator() ( const Kernel::Point_3 p)

returns p.

Note
It is advised to return a const reference to p to avoid useless copies.
This peculiar requirement is necessary because some CGAL structures such as triangulations internally manipulate points whose type might be Point_3 or Weighted_point_3.