1234567891011121314151617181920212223242526272829303132333435363738 |
- (function () {
- 'use strict';
- var parameters = {
- width: 10,
- height: 20,
- depth: 30,
- widthSegments: 2,
- heightSegments: 3,
- depthSegments: 4
- };
- var geometries;
- var box, cube, boxWithSegments;
- QUnit.module( "Extras - Geometries - BoxGeometry", {
- beforeEach: function() {
- box = new THREE.BoxGeometry( parameters.width, parameters.height, parameters.depth );
- cube = new THREE.CubeGeometry( parameters.width, parameters.height, parameters.depth );
- boxWithSegments = new THREE.BoxGeometry( parameters.width, parameters.height, parameters.depth,
- parameters.widthSegments, parameters.heightSegments, parameters.depthSegments );
- geometries = [ box, cube, boxWithSegments ];
- }
- });
- QUnit.test( "standard geometry tests", function( assert ) {
- runStdGeometryTests( assert, geometries );
- });
- })();
|