Skip to content

Commit

Permalink
Removing trailing spaces and fixing mix tab/space indents.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolanddenis committed Mar 14, 2019
1 parent 2b3fa34 commit b2b7004
Show file tree
Hide file tree
Showing 6 changed files with 410 additions and 410 deletions.
26 changes: 13 additions & 13 deletions examples/geometry/curves/exampleAlphaThickSegment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,44 +72,44 @@ int main( )

//construction of an AlphaThickSegmentComputer2D from the freemanchain iterator
AlphaThickSegmentComputer2D anAlphaSegment(15), anAlphaSegment2(5), anAlphaSegment3(2);
anAlphaSegment.init(fc.begin());
while (anAlphaSegment.end() != fc.end() &&
anAlphaSegment.init(fc.begin());
while (anAlphaSegment.end() != fc.end() &&
anAlphaSegment.extendFront()) {
}
aBoard << anAlphaSegment;
aBoard << anAlphaSegment;
// Example of thickness definition change: usin the euclidean thickness definition.
//! [exampleAlphaThickSegmentEuclDef]
AlphaThickSegmentComputer2D anAlphaSegment2Eucl(5, functions::Hull2D::EuclideanThickness);
//! [exampleAlphaThickSegmentEuclDef]

anAlphaSegment2Eucl.init(fc.begin());
while (anAlphaSegment2Eucl.end() != fc.end() &&
while (anAlphaSegment2Eucl.end() != fc.end() &&
anAlphaSegment2Eucl.extendFront()) {
}

aBoard << CustomStyle( anAlphaSegment2Eucl.className(),
new CustomColors( DGtal::Color(20, 250, 255), DGtal::Color::None ) );
aBoard << CustomStyle( anAlphaSegment2Eucl.className(),
new CustomColors( DGtal::Color(20, 250, 255), DGtal::Color::None ) );
aBoard << anAlphaSegment2Eucl;


anAlphaSegment2.init(fc.begin());
while (anAlphaSegment2.end() != fc.end() && anAlphaSegment2.extendFront()) {
}
aBoard << CustomStyle( anAlphaSegment2.className(), new CustomColors( DGtal::Color::Blue, DGtal::Color::None ) );
aBoard << CustomStyle( anAlphaSegment2.className(), new CustomColors( DGtal::Color::Blue, DGtal::Color::None ) );
aBoard << anAlphaSegment2;





FCConstIterator fcIt = fc.begin();
while (anAlphaSegment3.extendFront(*fcIt)) {
fcIt++;
}


aBoard << CustomStyle( anAlphaSegment3.className(), new CustomColors( DGtal::Color::Green, DGtal::Color::None ) );
aBoard << CustomStyle( anAlphaSegment3.className(), new CustomColors( DGtal::Color::Green, DGtal::Color::None ) );
aBoard << anAlphaSegment3;



aBoard.saveEPS("exampleAlphaThickSegment.eps");

Expand Down
2 changes: 1 addition & 1 deletion src/DGtal/geometry/curves/AlphaThickSegmentComputer.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class AlphaThickSegmentComputer

typedef typename InputPointContainer::iterator Iterator;
typedef TConstIterator ConstIterator;
typedef ParallelStrip< SpaceND< 2, DGtal::int32_t > ,true,true> Primitive;
typedef ParallelStrip< SpaceND< 2, DGtal::int32_t > ,true,true> Primitive;

/**
* Type of embedded points
Expand Down
Loading

0 comments on commit b2b7004

Please sign in to comment.