Public Member Functions | Protected Attributes | List of all members
f2c::decomp::TrapezoidalDecomp Class Reference

Trapezoidal decomposition [latombe1991exact]. More...

#include <trapezoidal_decomp.h>

Inheritance diagram for f2c::decomp::TrapezoidalDecomp:
Inheritance graph
[legend]

Public Member Functions

F2CMultiLineString genSplitLines (const F2CCells &cells, const obj::DecompObjective &obj=obj::DecompObjective()) override
 
double getSplitAngle () const
 Get split angle used to decompose the field. More...
 
void setSplitAngle (double ang)
 Set split angle used to decompose the field. More...
 
- Public Member Functions inherited from f2c::decomp::DecompositionBase
virtual F2CCells decompose (const F2CCells &cells, const obj::DecompObjective &obj=obj::DecompObjective())
 Decompose F2CCells into simpler F2CCells. More...
 
virtual F2CCells merge (const F2CCells &cells, const obj::DecompObjective &obj)
 
virtual F2CCells split (const F2CCells &cells, const obj::DecompObjective &obj)
 
virtual ~DecompositionBase ()=default
 

Protected Attributes

double split_angle {0.0}
 

Detailed Description

Trapezoidal decomposition [latombe1991exact].

Each point generate split lines perpendicular to the split_angle.

Definition at line 20 of file trapezoidal_decomp.h.

Member Function Documentation

◆ genSplitLines()

F2CMultiLineString f2c::decomp::TrapezoidalDecomp::genSplitLines ( const F2CCells cells,
const obj::DecompObjective obj = obj::DecompObjective() 
)
overridevirtual

Split the field into several cells that are easier to cover

Parameters
cellsOriginal cells
Returns
Smaller cells that compound the field

Implements f2c::decomp::DecompositionBase.

Definition at line 19 of file trapezoidal_decomp.cpp.

◆ getSplitAngle()

double f2c::decomp::TrapezoidalDecomp::getSplitAngle ( ) const

Get split angle used to decompose the field.

Definition at line 15 of file trapezoidal_decomp.cpp.

◆ setSplitAngle()

void f2c::decomp::TrapezoidalDecomp::setSplitAngle ( double  ang)

Set split angle used to decompose the field.

Definition at line 11 of file trapezoidal_decomp.cpp.

Member Data Documentation

◆ split_angle

double f2c::decomp::TrapezoidalDecomp::split_angle {0.0}
protected

Definition at line 35 of file trapezoidal_decomp.h.


The documentation for this class was generated from the following files:


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