Copyright 2012 Mobialia
http://www.mobialia.com/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to ...
If you think the Android project jmini3d listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package jmini3d.geometry;
//www.java2s.comimport jmini3d.Vector3;
publicclass SkyboxGeometry extends VariableGeometry {
public SkyboxGeometry(float radius) {
super(24, 12);
addQuad(new Vector3(radius, radius, radius), new Vector3(radius, -radius, radius), new Vector3(radius, radius, -radius), new Vector3(radius, -radius, -radius));
addQuad(new Vector3(-radius, -radius, radius), new Vector3(-radius, radius, radius), new Vector3(-radius, -radius, -radius), new Vector3(-radius, radius, -radius));
addQuad(new Vector3(-radius, radius, radius), new Vector3(radius, radius, radius), new Vector3(-radius, radius, -radius), new Vector3(radius, radius, -radius));
addQuad(new Vector3(radius, -radius, radius), new Vector3(-radius, -radius, radius), new Vector3(radius, -radius, -radius), new Vector3(-radius, -radius, -radius));
addQuad(new Vector3(-radius, -radius, radius), new Vector3(radius, -radius, radius), new Vector3(-radius, radius, radius), new Vector3(radius, radius, radius));
addQuad(new Vector3(-radius, radius, -radius), new Vector3(radius, radius, -radius), new Vector3(-radius, -radius, -radius), new Vector3(radius, -radius, -radius));
}
}