|
@@ -4,7 +4,7 @@ import { Geometry } from '../../../../src/core/Geometry';
|
|
|
import { BufferAttribute } from '../../../../src/core/BufferAttribute';
|
|
|
import { BufferGeometry } from '../../../../src/core/BufferGeometry';
|
|
|
import { BoxBufferGeometry } from '../../../../src/geometries/BoxBufferGeometry';
|
|
|
-import { DodecahedronGeometry } from '../../../../src/geometries/DodecahedronGeometry';
|
|
|
+import { DodecahedronBufferGeometry } from '../../../../src/geometries/DodecahedronBufferGeometry';
|
|
|
import { Vector3 } from '../../../../src/math/Vector3';
|
|
|
import { Matrix4 } from '../../../../src/math/Matrix4';
|
|
|
import { Face3 } from '../../../../src/core/Face3';
|
|
@@ -320,7 +320,7 @@ export default QUnit.module( 'Core', () => {
|
|
|
|
|
|
QUnit.test( "computeBoundingBox", ( assert ) => {
|
|
|
|
|
|
- var a = new DodecahedronGeometry();
|
|
|
+ var a = new Geometry().fromBufferGeometry( new DodecahedronBufferGeometry() );
|
|
|
|
|
|
a.computeBoundingBox();
|
|
|
assert.strictEqual( a.boundingBox.isEmpty(), false, "Bounding box isn't empty" );
|
|
@@ -341,7 +341,7 @@ export default QUnit.module( 'Core', () => {
|
|
|
|
|
|
QUnit.test( "computeBoundingSphere", ( assert ) => {
|
|
|
|
|
|
- var a = new DodecahedronGeometry();
|
|
|
+ var a = new Geometry().fromBufferGeometry( new DodecahedronBufferGeometry() );
|
|
|
|
|
|
a.computeBoundingSphere();
|
|
|
|