Skip to content

File partition_2.h

File List > algorithm > partition_2.h

Go to the documentation of this file

// Copyright (c) 2012-2023, Oslandia.
// SPDX-License-Identifier: LGPL-2.0-or-later

#ifndef SFCGAL_ALGORITHM_PARTITION_2_H_
#define SFCGAL_ALGORITHM_PARTITION_2_H_

#include "SFCGAL/config.h"

#include "SFCGAL/Geometry.h"

namespace SFCGAL {
namespace algorithm {

enum PartitionAlgorithm {
  y_monotone,    
  approx_convex, 
  greene_approx_convex, 
  optimal_convex        
};

SFCGAL_API auto
partition_2(const Geometry &g, PartitionAlgorithm alg = y_monotone)
    -> std::unique_ptr<Geometry>;

} // namespace algorithm
} // namespace SFCGAL

#endif