/** * Constructs a sphere. All geometry data buffers are updated automatically. Both zSamples and radialSamples * increase the quality of the generated sphere. * * @param name * Name of the sphere. * @param center * Center of the sphere. * @param zSamples * The number of samples along the Z. * @param radialSamples * The number of samples along the radial. * @param radius * The radius of the sphere. */ public Sphere(final String name, final ReadOnlyVector3 center, final int zSamples, final int radialSamples, final double radius) { super(name); setData(center, zSamples, radialSamples, radius); }
/** * Constructs a sphere. All geometry data buffers are updated automatically. Both zSamples and radialSamples * increase the quality of the generated sphere. * * @param name * Name of the sphere. * @param center * Center of the sphere. * @param zSamples * The number of samples along the Z. * @param radialSamples * The number of samples along the radial. * @param radius * The radius of the sphere. */ public Sphere(final String name, final ReadOnlyVector3 center, final int zSamples, final int radialSamples, final double radius) { super(name); setData(center, zSamples, radialSamples, radius); }
/** * Constructs a sphere. All geometry data buffers are updated automatically. Both zSamples and radialSamples * increase the quality of the generated sphere. * * @param name * Name of the sphere. * @param center * Center of the sphere. * @param zSamples * The number of samples along the Z. * @param radialSamples * The number of samples along the radial. * @param radius * The radius of the sphere. * @param textureMode * the mode to use when setting uv coordinates for this Sphere. */ public Sphere(final String name, final ReadOnlyVector3 center, final int zSamples, final int radialSamples, final double radius, final TextureMode textureMode) { super(name); _textureMode = textureMode; setData(center, zSamples, radialSamples, radius); }
/** * Constructs a sphere. All geometry data buffers are updated automatically. Both zSamples and radialSamples * increase the quality of the generated sphere. * * @param name * Name of the sphere. * @param center * Center of the sphere. * @param zSamples * The number of samples along the Z. * @param radialSamples * The number of samples along the radial. * @param radius * The radius of the sphere. * @param textureMode * the mode to use when setting uv coordinates for this Sphere. */ public Sphere(final String name, final ReadOnlyVector3 center, final int zSamples, final int radialSamples, final double radius, final TextureMode textureMode) { super(name); _textureMode = textureMode; setData(center, zSamples, radialSamples, radius); }
public static void drawBoundingSphere(final BoundingSphere sphere, final Renderer r) { boundingSphere.setData(sphere.getCenter(), 10, 10, sphere.getRadius()); boundingSphere.draw(r); }
public static void drawBoundingSphere(final BoundingSphere sphere, final Renderer r) { boundingSphere.setData(sphere.getCenter(), 10, 10, sphere.getRadius()); boundingSphere.draw(r); }
.setData(frustumBoundingSphere.getCenter(), 10, 10, frustumBoundingSphere.getRadius()); boundingSphere.draw(r);
boundingSphere.setData(frustumBoundingSphere.getCenter(), 10, 10, frustumBoundingSphere.getRadius()); boundingSphere.draw(r);