Vector<DXFVertex> lv = new Vector<DXFVertex>();
int sln = br.getLineNumber();
log.debug(">>Enter at line: " + sln);
DXFCodeValuePair cvp = null;
DXFGroupCode gc = null;
DXFExtendedData _extData = null;
boolean doLoop = true;
while (doLoop) {
cvp = new DXFCodeValuePair();
try {
gc = cvp.read(br);
} catch (DXFParseException ex) {
throw new IOException("DXF parse error" + ex.getLocalizedMessage());
} catch (EOFException e) {
doLoop = false;
break;
}
// Unsupported GroupCodes:
// HANDLE, SOFT_POINTER_HANDLE_1, SUBCLASS_DATA_MARKER, INT_1, INT_2, INT_3, INT_4, INT_5, DOUBLE_3, DOUBLE_4, DOUBLE_1, Z_1
switch (gc) {
case TYPE:
// geldt voor alle waarden van type
br.reset();
doLoop = false;
break;
case LAYER_NAME: //"8"
l = univers.findLayer(cvp.getStringValue());
break;
case X_1:
double x = cvp.getDoubleValue();
lv.add(new DXFVertex(x, -1, 1, c, l, visibility));
case Y_1:
int lastIndex = lv.size() - 1;
DXFVertex lastCoord = lv.get(lastIndex);
lastCoord.setY(cvp.getDoubleValue());
lv.set(lastIndex, lastCoord);
break;
default:
String appName = cvp.getStringValue();
_extData = DXFExtendedData.getExtendedData(br);
_extData.setAppName(appName);
break;
}
}