// Copyright (c) 2012-2013, IGN France.
// Copyright (c) 2012-2024, Oslandia.
// Copyright (c) 2024-2026, SFCGAL team.
// SPDX-License-Identifier: LGPL-2.0-or-later

#ifndef SFCGAL_ALGORITHM_FORCE2D_H_
#define SFCGAL_ALGORITHM_FORCE2D_H_

#include "SFCGAL/config.h"

#include "SFCGAL/Kernel.h"

namespace SFCGAL {
class Geometry;
}

namespace SFCGAL::algorithm {

/**
 * @brief force a geometry to be 2D (project on O,x,y)
 * @param g the geometry to force to 2D
 * @warning ignore empty geometries
 */
SFCGAL_API void
force2D(Geometry &g);

} // namespace SFCGAL::algorithm

#endif
