decomposition_base.cpp
Go to the documentation of this file.
1 //=============================================================================
2 // Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
3 // Author: Gonzalo Mier
4 // BSD-3 License
5 //=============================================================================
6 
8 
9 namespace f2c::decomp {
10 
11 
13  const F2CCells& cells, const obj::DecompObjective& obj) {
14  return merge(split(cells, obj), obj);
15 }
16 
18  const F2CCells& cells, const obj::DecompObjective& obj) {
19  return cells.splitByLine(genSplitLines(cells, obj));
20 }
21 
23  const F2CCells& cells, const obj::DecompObjective& obj) {
24  return cells;
25 }
26 
27 
28 } // namespace f2c::decomp
29 
f2c::decomp::DecompositionBase::decompose
virtual F2CCells decompose(const F2CCells &cells, const obj::DecompObjective &obj=obj::DecompObjective())
Decompose F2CCells into simpler F2CCells.
Definition: decomposition_base.cpp:12
1_basic_types.cells
cells
Definition: 1_basic_types.py:93
f2c::decomp::DecompositionBase::genSplitLines
virtual F2CMultiLineString genSplitLines(const F2CCells &cells, const obj::DecompObjective &obj)=0
decomposition_base.h
f2c::decomp::DecompositionBase::merge
virtual F2CCells merge(const F2CCells &cells, const obj::DecompObjective &obj)
Definition: decomposition_base.cpp:22
f2c::decomp
Decomposition algorithms' namespace.
Definition: boustrophedon_decomp.h:14
7_decomposition.obj
obj
Definition: 7_decomposition.py:32
f2c::obj::DecompObjective
Base class for objective functions of cell decomposition.
Definition: decomp_objective.h:18
f2c::decomp::DecompositionBase::split
virtual F2CCells split(const F2CCells &cells, const obj::DecompObjective &obj)
Definition: decomposition_base.cpp:17
f2c::types::Cells
Definition: Cells.h:21


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31