// Tag aspect ratio * screen aspect ratio
LOGGER.log(Level.FINEST, "Client "+CLIENT_FATTAG);
// Get a normalized screenBound and scale all points using this
Vec3D screenScale = Vec3DUtils.getNormalized(gml.environment.screenBounds);
List<GmlStroke> strokes = (List<GmlStroke>) gml.getStrokes();
for (GmlStroke stroke : strokes) {
List<GmlPoint> points = stroke.getPoints();
for(GmlPoint point: points) {
point.scaleSelf(screenScale);
}
stroke.replacePoints(points);
}
gml.replaceStrokes(strokes);
}
/*
Graffiti Analysis v2.0 DustTag
-> 1 to more
-> Already scaled
-> Except z is fucked
*/
else if (client.indexOf(CLIENT_GRAFANALYSIS) > -1) {
// Reduce z
// Normalize
LOGGER.log(Level.FINEST, "Client "+CLIENT_GRAFANALYSIS);
// Get max z from normalized screenBounds
Vec3D screenScale = Vec3DUtils.getNormalized(gml.environment.screenBounds);
AABB boundingBox = gml.getBoundingBox();
// Remap all points' z coords so they fit between 0 and 0.25
// Might not be super accurate but good enough
List<GmlStroke> strokes = (List<GmlStroke>) gml.getStrokes();