use of org.hwyl.sexytopo.control.util.GraphToListTranslator in project sexytopo by richsmith.
the class ThExporter method getCentreline.
private static String getCentreline(Survey survey) {
GraphToListTranslator graphToListTranslator = new GraphToListTranslator();
StringBuilder builder = new StringBuilder();
Trip trip = survey.getTrip();
if (trip != null) {
builder.append(formatTrip(trip));
}
builder.append("data normal from to length compass clino\n\n");
List<GraphToListTranslator.SurveyListEntry> list = graphToListTranslator.toChronoListOfSurveyListEntries(survey);
for (GraphToListTranslator.SurveyListEntry entry : list) {
SurvexTherionUtil.formatEntry(builder, entry, COMMENT_CHAR);
builder.append("\n");
}
return builder.toString();
}
Aggregations