use of org.twak.tweed.gen.ProfileGen.MegaFacade in project chordatlas by twak.
the class SkelFootprint method meanDistance.
private Double meanDistance(Prof clean, SuperEdge he) {
SuperLine sl = (SuperLine) he.profLine;
if (sl == null)
return null;
MegaFacade mf = sl.getMega();
int s = mf.getIndex(he.start), e = mf.getIndex(he.end);
if (s > e) {
int tmp = e;
e = s;
s = tmp;
}
int delta = e - s;
if (delta >= 8) {
delta *= 0.2;
s += delta;
e -= delta;
}
return meanDistance(mf, s, e, clean);
}
Aggregations