addBounds(b, doc, 6, "ALL");
}
protected void addBounds(Bounds bounds, DXFDocument doc, int color,
String type) {
DXF3DFace face = new DXF3DFace();
face.getPoint1().setX(bounds.getMinimumX());
face.getPoint1().setY(bounds.getMinimumY());
face.getPoint2().setX(bounds.getMinimumX());
face.getPoint2().setY(bounds.getMaximumY());
face.getPoint3().setX(bounds.getMaximumX());
face.getPoint3().setY(bounds.getMaximumY());
face.getPoint4().setX(bounds.getMaximumX());
face.getPoint4().setY(bounds.getMinimumY());
face.setColor(color);
face.setLayerName(LAYER_NAME);
doc.addDXFEntity(face);
DXFText t = new DXFText();
t.setDXFDocument(doc);