How to use the RingGeometry function from three

Find comprehensive JavaScript three.RingGeometry code examples handpicked from public code repositorys.

19
20
21
22
23
24
25
26
27
28
29
  t.end();
});


test('simple path', (t) => {
  const pathfinding = new Pathfinding();
  const geometry = new THREE.RingGeometry(5, 10, 8).applyMatrix4(ROTATE);
  const zone = Pathfinding.createZone(geometry);
  pathfinding.setZoneData(ZONE, zone);
  const a = new THREE.Vector3(7.5, 0, 0);
  const b = new THREE.Vector3(-7.5, 0, 0);
fork icon109
star icon891
watch icon0

+ 11 other calls in file

13
14
15
16
17
18
19
20
21

//--IcosahedronGeometry(radius, detail)
geometries.objectDeclaration = new THREE.IcosahedronGeometry(50);

//--RingGeometry(innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength)
geometries.triangle = new THREE.RingGeometry(100, 5, 3, 3);

//--TorusGeometry(radius, tube, radialSegments, tubularSegments, arc)
geometries.loop = new THREE.TorusGeometry(constants.size.radius, 20, 5, 30);
fork icon9
star icon26
watch icon5

38
39
40
41
42
43
44
45
46
47
const colliders = [];

const color = params.colorNormal.clone();

const ringRadius = 0.15;
const ringGeometry = new THREE.RingGeometry(0.75, 0.6, 6, 1);

this.groundRingMesh = new THREE.Group();

// rotation of quaternion which we'll re-use later
fork icon4
star icon25
watch icon2

+ 5 other calls in file

221
222
223
224
225
226
227
228
229
230
 */
SphereObject.prototype.addRings = function (innerRadiusKm, outerRadiusKm, texturePath, segments) {
    if (segments === void 0) { segments = 128; }
    var innerRadiusSize = (0, Scale_1.rescaleNumber)(Units_1["default"].kmToAu(innerRadiusKm));
    var outerRadiusSize = (0, Scale_1.rescaleNumber)(Units_1["default"].kmToAu(outerRadiusKm));
    var geometry = new THREE.RingGeometry(innerRadiusSize, outerRadiusSize, segments, 5, 0, Math.PI * 2);
    // TODO(ian): Load from base path.
    var map = new THREE.TextureLoader().load(texturePath);
    var material;
    if (this._simulation.isUsingLightSources()) {
fork icon0
star icon0
watch icon1

+ 12 other calls in file

12
13
14
15
16
17
18
19
20
21
  this.objWire = null;
  this.objPoints = null;
}
createObj() {
  // Define Geometry
  const geometry = new THREE.RingGeometry(1550, 1600, 36, 2, MathEx.radians(135), MathEx.radians(270));

  // Define Material
  const material = new THREE.RawShaderMaterial({
    uniforms: this.uniforms,
fork icon0
star icon0
watch icon0

+ 3 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)