GLOBAL.shapePack.empty();
// GLOBAL.shapePack.pdf_pixels_per_mm = SETTINGS.pixels_per_mm;
GLOBAL.shapePack.content_scale = SETTINGS.scale;
//GLOBAL.shapePack.ZOOM = ((float) GLOBAL.applet.height) / 390f;
for (int i = 0; i < this.getSlicePlanesY().size(); i++) {
SlicePlane slicePlane = this.getSlicePlanesY().get(i);
if (!slicePlane.guide) {
spShape shape = slicePlane.getspShape();
shape.shapePack = GLOBAL.shapePack; //hacky
shape.build();
shape.setLabel(((char) ('A' + i)) + "");
shape.linkedObject = slicePlane;
GLOBAL.shapePack.add(shape);
}
}
for (int i = 0; i < this.slicePlanesSlatSlices.size(); i++) {
SlicePlane slicePlane = this.slicePlanesSlatSlices.get(i);
if (!slicePlane.guide) {
spShape shape = slicePlane.getspShape();
shape.shapePack = GLOBAL.shapePack; //hacky
shape.build();
shape.setLabel("" + (i + 1));
shape.linkedObject = slicePlane;