Skip to content

Commit

Permalink
test: fix issue with Curves
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Mar 1, 2022
1 parent 2ba8621 commit f39947d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/three/test/geometries/geometry-parametric.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as THREE from 'three';

import { Curves } from 'three/examples/jsm/curves/CurveExtras';
import { GrannyKnot } from 'three/examples/jsm/curves/CurveExtras';
import { ParametricGeometry } from 'three/examples/jsm/geometries/ParametricGeometry';
import { ParametricGeometries } from 'three/examples/jsm/geometries/ParametricGeometries';

Expand Down Expand Up @@ -61,11 +61,11 @@ function init() {

//

const GrannyKnot = new Curves.GrannyKnot();
const grannyKnot = new GrannyKnot();

const torus = new ParametricGeometries.TorusKnotGeometry(50, 10, 50, 20, 2, 3);
const sphere = new ParametricGeometries.SphereGeometry(50, 20, 10);
const tube = new ParametricGeometries.TubeGeometry(GrannyKnot, 100, 3, 8, true);
const tube = new ParametricGeometries.TubeGeometry(grannyKnot, 100, 3, 8, true);

object = new THREE.Mesh(torus, material);
object.position.set(-200, 0, -200);
Expand Down

0 comments on commit f39947d

Please sign in to comment.