Class TrapezoidalDecomp

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class TrapezoidalDecomp : public f2c::decomp::DecompositionBase

Trapezoidal decomposition latombe1991exact.

Each point generate split lines perpendicular to the split_angle.

Subclassed by f2c::decomp::BoustrophedonDecomp

Public Functions

double getSplitAngle() const

Get split angle used to decompose the field.

void setSplitAngle(double ang)

Set split angle used to decompose the field.

virtual F2CMultiLineString genSplitLines(const F2CCells &cells, const obj::DecompObjective &obj = obj::DecompObjective()) override

Split the field into several cells that are easier to cover

Parameters:

cells – Original cells

Returns:

Smaller cells that compound the field

Protected Attributes

double split_angle = {0.0}