Home
last modified time | relevance | path

Searched refs:zSamples (Results 1 – 2 of 2) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
DSphere.java76 protected int zSamples; field in Sphere
102 public Sphere(int zSamples, int radialSamples, float radius) { in Sphere() argument
103 this(zSamples, radialSamples, radius, false, false); in Sphere()
120 …public Sphere(int zSamples, int radialSamples, float radius, boolean useEvenSlices, boolean interi… in Sphere() argument
121 updateGeometry(zSamples, radialSamples, radius, useEvenSlices, interior); in Sphere()
140 return zSamples; in getZSamples()
148 vertCount = (zSamples - 2) * (radialSamples + 1) + 2; in setGeometryData()
164 float fZFactor = 2.0f / (zSamples - 1); in setGeometryData()
185 for (int iZ = 1; iZ < (zSamples - 1); iZ++) { in setGeometryData()
310 triCount = 2 * (zSamples - 2) * radialSamples; in setIndexData()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/debug/
DWireSphere.java49 private static final int zSamples = 10; field in WireSphere
57 …ShortBuffer ib = BufferUtils.createShortBuffer(samples * 2 * 2 + zSamples * samples * 2 /*+ 3 * 2*… in WireSphere()
68 for (int j = 0; j < 2 + zSamples; j++) { in WireSphere()
88 pb = BufferUtils.createVector3Buffer(samples * 2 + samples * zSamples /*+ 6 * 3*/); in updatePositions()
126 float zRate = (radius * 2) / (float) (zSamples); in updatePositions()
130 float rb = 1f / zSamples; in updatePositions()
133 for (int k = 0; k < zSamples; k++) { in updatePositions()