}
}
static Point4f getPlane(String str) {
if (str.equalsIgnoreCase("xy"))
return new Point4f(0, 0, 1, 0);
if (str.equalsIgnoreCase("xz"))
return new Point4f(0, 1, 0, 0);
if (str.equalsIgnoreCase("yz"))
return new Point4f(1, 0, 0, 0);
if (str.indexOf("x=") == 0) {
return new Point4f(1, 0, 0, -Parser.parseFloat(str.substring(2)));
}
if (str.indexOf("y=") == 0) {
return new Point4f(0, 1, 0, -Parser.parseFloat(str.substring(2)));
}
if (str.indexOf("z=") == 0) {
return new Point4f(0, 0, 1, -Parser.parseFloat(str.substring(2)));
}
if (str.indexOf("{") == 0) {
str = str.replace(',', ' ');
int[] next = new int[1];
return new Point4f(Parser.parseFloat(str, next), Parser.parseFloat(str,
next), Parser.parseFloat(str, next), Parser.parseFloat(str, next));
}
return null;
}