11#ifndef VIEW_FIRSTCOORDPROJECTOR_H_
12#define VIEW_FIRSTCOORDPROJECTOR_H_
14#include "utils/UI_utils.h"
15#include "Projector3D.h"
17class FirstCoordProjector3D :
public Projector3D {
18 typedef Projector3D::Point Point;
19 typedef Projector3D::Point_3 Point_3;
21 Point_3 operator()(
const Point& p)
const {
22 if (p.dimension() >= 3)
23 return Point_3(p.x(), p.y(), p.z());
24 else if (p.dimension() >= 2)
25 return Point_3(p.x(), p.y(), 0.0);
27 return Point_3(0.0, 0.0, 0.0);