提交 247454fe 编写于 作者: M Mr.doob

Moved ./extras/geometries to ./geometries.

上级 19197421
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
......
......@@ -35,6 +35,39 @@ var list = {
[ "Uniform", "api/core/Uniform"]
],
"Geometries": [
[ "BoxBufferGeometry", "api/geometries/BoxBufferGeometry" ],
[ "BoxGeometry", "api/geometries/BoxGeometry" ],
[ "CircleBufferGeometry", "api/geometries/CircleBufferGeometry" ],
[ "CircleGeometry", "api/geometries/CircleGeometry" ],
[ "ConeBufferGeometry", "api/geometries/ConeBufferGeometry" ],
[ "ConeGeometry", "api/geometries/ConeGeometry" ],
[ "CylinderBufferGeometry", "api/geometries/CylinderBufferGeometry" ],
[ "CylinderGeometry", "api/geometries/CylinderGeometry" ],
[ "DodecahedronGeometry", "api/geometries/DodecahedronGeometry" ],
[ "ExtrudeGeometry", "api/geometries/ExtrudeGeometry" ],
[ "IcosahedronGeometry", "api/geometries/IcosahedronGeometry" ],
[ "LatheBufferGeometry", "api/geometries/LatheBufferGeometry" ],
[ "LatheGeometry", "api/geometries/LatheGeometry" ],
[ "OctahedronGeometry", "api/geometries/OctahedronGeometry" ],
[ "ParametricGeometry", "api/geometries/ParametricGeometry" ],
[ "PlaneBufferGeometry", "api/geometries/PlaneBufferGeometry" ],
[ "PlaneGeometry", "api/geometries/PlaneGeometry" ],
[ "PolyhedronGeometry", "api/geometries/PolyhedronGeometry" ],
[ "RingBufferGeometry", "api/geometries/RingBufferGeometry" ],
[ "RingGeometry", "api/geometries/RingGeometry" ],
[ "ShapeGeometry", "api/geometries/ShapeGeometry" ],
[ "SphereBufferGeometry", "api/geometries/SphereBufferGeometry" ],
[ "SphereGeometry", "api/geometries/SphereGeometry" ],
[ "TetrahedronGeometry", "api/geometries/TetrahedronGeometry" ],
[ "TextGeometry", "api/geometries/TextGeometry" ],
[ "TorusBufferGeometry", "api/geometries/TorusBufferGeometry" ],
[ "TorusGeometry", "api/geometries/TorusGeometry" ],
[ "TorusKnotBufferGeometry", "api/geometries/TorusKnotBufferGeometry" ],
[ "TorusKnotGeometry", "api/geometries/TorusKnotGeometry" ],
[ "TubeGeometry", "api/geometries/TubeGeometry" ]
],
"Lights": [
[ "AmbientLight", "api/lights/AmbientLight" ],
[ "DirectionalLight", "api/lights/DirectionalLight" ],
......@@ -191,39 +224,6 @@ var list = {
[ "SplineCurve3", "api/extras/curves/SplineCurve3" ]
],
"Extras / Geometries": [
[ "BoxBufferGeometry", "api/extras/geometries/BoxBufferGeometry" ],
[ "BoxGeometry", "api/extras/geometries/BoxGeometry" ],
[ "CircleBufferGeometry", "api/extras/geometries/CircleBufferGeometry" ],
[ "CircleGeometry", "api/extras/geometries/CircleGeometry" ],
[ "ConeBufferGeometry", "api/extras/geometries/ConeBufferGeometry" ],
[ "ConeGeometry", "api/extras/geometries/ConeGeometry" ],
[ "CylinderBufferGeometry", "api/extras/geometries/CylinderBufferGeometry" ],
[ "CylinderGeometry", "api/extras/geometries/CylinderGeometry" ],
[ "DodecahedronGeometry", "api/extras/geometries/DodecahedronGeometry" ],
[ "ExtrudeGeometry", "api/extras/geometries/ExtrudeGeometry" ],
[ "IcosahedronGeometry", "api/extras/geometries/IcosahedronGeometry" ],
[ "LatheBufferGeometry", "api/extras/geometries/LatheBufferGeometry" ],
[ "LatheGeometry", "api/extras/geometries/LatheGeometry" ],
[ "OctahedronGeometry", "api/extras/geometries/OctahedronGeometry" ],
[ "ParametricGeometry", "api/extras/geometries/ParametricGeometry" ],
[ "PlaneBufferGeometry", "api/extras/geometries/PlaneBufferGeometry" ],
[ "PlaneGeometry", "api/extras/geometries/PlaneGeometry" ],
[ "PolyhedronGeometry", "api/extras/geometries/PolyhedronGeometry" ],
[ "RingBufferGeometry", "api/extras/geometries/RingBufferGeometry" ],
[ "RingGeometry", "api/extras/geometries/RingGeometry" ],
[ "ShapeGeometry", "api/extras/geometries/ShapeGeometry" ],
[ "SphereBufferGeometry", "api/extras/geometries/SphereBufferGeometry" ],
[ "SphereGeometry", "api/extras/geometries/SphereGeometry" ],
[ "TetrahedronGeometry", "api/extras/geometries/TetrahedronGeometry" ],
[ "TextGeometry", "api/extras/geometries/TextGeometry" ],
[ "TorusBufferGeometry", "api/extras/geometries/TorusBufferGeometry" ],
[ "TorusGeometry", "api/extras/geometries/TorusGeometry" ],
[ "TorusKnotBufferGeometry", "api/extras/geometries/TorusKnotBufferGeometry" ],
[ "TorusKnotGeometry", "api/extras/geometries/TorusKnotGeometry" ],
[ "TubeGeometry", "api/extras/geometries/TubeGeometry" ]
],
"Extras / Helpers": [
[ "ArrowHelper", "api/extras/helpers/ArrowHelper" ],
[ "AxisHelper", "api/extras/helpers/AxisHelper" ],
......
......@@ -1539,7 +1539,7 @@
"!type": "fn(points: [])"
},
"BoxGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/BoxGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/BoxGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
......@@ -1547,7 +1547,7 @@
"!type": "fn(width: number, height: number, depth: number, widthSegments: number, heightSegments: number, depthSegments: number)"
},
"CircleGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/CircleGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/CircleGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
......@@ -1555,14 +1555,14 @@
"!type": "fn(radius: number, segments: number, thetaStart: number, thetaLength: number)"
},
"CubeGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/CubeGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/CubeGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
"!doc": "Renamed CubeGeometry to BoxGeometry. see [page:BoxGeometry]."
},
"CylinderGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/CylinderGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/CylinderGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
......@@ -1570,7 +1570,7 @@
"!type": "fn(radiusTop: number, radiusBottom: number, height: number, radiusSegments: number, heightSegments: number, openEnded: bool, thetaStart: number, thetaLength: number)"
},
"DodecahedronGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/DodecahedronGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/DodecahedronGeometry",
"prototype": {
"!proto": "THREE.PolyhedronGeometry.prototype",
"parameters": {
......@@ -1582,7 +1582,7 @@
"!type": "fn(radius: number, detail: number)"
},
"ExtrudeGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/ExtrudeGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/ExtrudeGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype",
"addShapeList": {
......@@ -1598,7 +1598,7 @@
"!type": "fn(shapes: [], options: object)"
},
"IcosahedronGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/IcosahedronGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/IcosahedronGeometry",
"prototype": {
"!proto": "THREE.PolyhedronGeometry.prototype",
"parameters": {
......@@ -1610,7 +1610,7 @@
"!type": "fn(radius: number, detail: number)"
},
"LatheGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/LatheGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/LatheGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
......@@ -1618,7 +1618,7 @@
"!type": "fn(points: [], segments: number, phiStart: number, phiLength: number)"
},
"OctahedronGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/OctahedronGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/OctahedronGeometry",
"prototype": {
"!proto": "THREE.PolyhedronGeometry.prototype",
"parameters": {
......@@ -1630,7 +1630,7 @@
"!type": "fn(radius: number, detail: number)"
},
"ParametricGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/ParametricGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/ParametricGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
......@@ -1638,7 +1638,7 @@
"!type": "fn(func: function, slices: number, stacks: number)"
},
"PlaneGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/PlaneGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/PlaneGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
......@@ -1646,7 +1646,7 @@
"!type": "fn(width: number, height: number, widthSegments: number, heightSegments: number)"
},
"PolyhedronGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/PolyhedronGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/PolyhedronGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype",
"parameters": {
......@@ -1658,7 +1658,7 @@
"!type": "fn(vertices: [], faces: [], radius: number, detail: number)"
},
"RingGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/RingGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/RingGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
......@@ -1666,7 +1666,7 @@
"!type": "fn(innerRadius: number, outerRadius: number, thetaSegments: number, phiSegments: number, thetaStart: number, thetaLength: number)"
},
"ShapeGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/ShapeGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/ShapeGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype",
"addShape": {
......@@ -1678,7 +1678,7 @@
"!type": "fn(shapes: [], options: object)"
},
"SphereGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/SphereGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/SphereGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
......@@ -1686,7 +1686,7 @@
"!type": "fn(radius: number, widthSegments: number, heightSegments: number, phiStart: number, phiLength: number, thetaStart: number, thetaLength: number)"
},
"TetrahedronGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/TetrahedronGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/TetrahedronGeometry",
"prototype": {
"!proto": "THREE.PolyhedronGeometry.prototype",
"parameters": {
......@@ -1698,7 +1698,7 @@
"!type": "fn(radius: number, detail: number)"
},
"TextGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/TextGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/TextGeometry",
"prototype": {
"!proto": "THREE.ExtrudeGeometry.prototype"
},
......@@ -1706,7 +1706,7 @@
"!type": "fn(text: string, parameters: object)"
},
"TorusGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/TorusGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/TorusGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
......@@ -1714,7 +1714,7 @@
"!type": "fn(radius: number, tube: number, radialSegments: number, tubularSegments: number, arc: number)"
},
"TorusKnotGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/TorusKnotGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/TorusKnotGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype"
},
......@@ -1722,7 +1722,7 @@
"!type": "fn(radius: number, tube: number, radialSegments: number, tubularSegments: number, p: number, q: number, heightScale: number)"
},
"TubeGeometry": {
"!url": "http://threejs.org/docs/#Reference/extras/geometries/TubeGeometry",
"!url": "http://threejs.org/docs/#Reference/geometries/TubeGeometry",
"prototype": {
"!proto": "THREE.Geometry.prototype",
"parameters": {
......
......@@ -11,7 +11,9 @@ import { BufferGeometry } from './core/BufferGeometry.js';
import { EventDispatcher } from './core/EventDispatcher.js';
import { Face3 } from './core/Face3.js';
import { Object3D } from './core/Object3D.js';
import { BoxGeometry } from './extras/geometries/BoxGeometry.js';
import { BoxGeometry } from './geometries/BoxGeometry.js';
import { ExtrudeGeometry } from './geometries/ExtrudeGeometry.js';
import { ShapeGeometry } from './geometries/ShapeGeometry.js';
import { Light } from './lights/Light.js';
import { AudioLoader } from './loaders/AudioLoader.js';
import { CubeTextureLoader } from './loaders/CubeTextureLoader.js';
......@@ -24,6 +26,7 @@ import { ShaderMaterial } from './materials/ShaderMaterial.js';
import { Box2 } from './math/Box2.js';
import { Box3 } from './math/Box3.js';
import { Color } from './math/Color.js';
import { Line3 } from './math/Line3.js';
import { Matrix3 } from './math/Matrix3.js';
import { Matrix4 } from './math/Matrix4.js';
import { Plane } from './math/Plane.js';
......@@ -36,6 +39,7 @@ import { Sprite } from './objects/Sprite.js';
import { WebGLRenderer } from './renderers/WebGLRenderer.js';
import { WebGLRenderTarget } from './renderers/WebGLRenderTarget.js';
import { WebGLShadowMap } from './renderers/webgl/WebGLShadowMap.js';
import { Shape } from './extras/core/Shape.js';
export { BoxGeometry as CubeGeometry };
......@@ -219,6 +223,17 @@ Object.assign( Ray.prototype, {
}
} );
Object.assign( Shape.prototype, {
extrude: function ( options ) {
console.warn( 'THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead.' );
return new ExtrudeGeometry( this, options );
},
makeGeometry: function ( options ) {
console.warn( 'THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead.' );
return new ShapeGeometry( this, options );
}
} );
Object.assign( Vector3.prototype, {
setEulerFromRotationMatrix: function () {
console.error( 'THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.' );
......
......@@ -28,6 +28,7 @@ export { CubeTexture } from './textures/CubeTexture.js';
export { CanvasTexture } from './textures/CanvasTexture.js';
export { DepthTexture } from './textures/DepthTexture.js';
export { TextureIdCount, Texture } from './textures/Texture.js';
export * from './geometries/Geometries.js';
export * from './materials/Materials.js';
export { MaterialIdCount } from './materials/Material.js';
export { CompressedTextureLoader } from './loaders/CompressedTextureLoader.js';
......@@ -146,7 +147,6 @@ export { BoundingBoxHelper } from './extras/helpers/BoundingBoxHelper.js';
export { BoxHelper } from './extras/helpers/BoxHelper.js';
export { ArrowHelper } from './extras/helpers/ArrowHelper.js';
export { AxisHelper } from './extras/helpers/AxisHelper.js';
export * from './extras/geometries/Geometries.js';
export { ClosedSplineCurve3 } from './extras/curves/ClosedSplineCurve3.js';
export { CatmullRomCurve3 } from './extras/curves/CatmullRomCurve3.js';
export { SplineCurve3 } from './extras/curves/SplineCurve3.js';
......
import { PathPrototype } from './PathPrototype';
import { ShapeGeometry } from '../geometries/ShapeGeometry';
import { ExtrudeGeometry } from '../geometries/ExtrudeGeometry';
import { Path } from './Path';
/**
......@@ -26,22 +24,6 @@ Shape.prototype = Object.assign( Object.create( PathPrototype ), {
constructor: Shape,
// Convenience method to return ExtrudeGeometry
extrude: function ( options ) {
return new ExtrudeGeometry( this, options );
},
// Convenience method to return ShapeGeometry
makeGeometry: function ( options ) {
return new ShapeGeometry( this, options );
},
getPointsHoles: function ( divisions ) {
var holesPts = [];
......
......@@ -16,7 +16,7 @@
import { Vector3 } from '../../math/Vector3';
import { Object3D } from '../../core/Object3D';
import { CylinderBufferGeometry } from '../geometries/CylinderBufferGeometry';
import { CylinderBufferGeometry } from '../../geometries/CylinderBufferGeometry';
import { Float32Attribute } from '../../core/BufferAttribute';
import { BufferGeometry } from '../../core/BufferGeometry';
import { MeshBasicMaterial } from '../../materials/MeshBasicMaterial';
......
import { Mesh } from '../../objects/Mesh';
import { MeshBasicMaterial } from '../../materials/MeshBasicMaterial';
import { BoxGeometry } from '../geometries/BoxGeometry';
import { BoxGeometry } from '../../geometries/BoxGeometry';
import { Box3 } from '../../math/Box3';
/**
......
import { LineSegments } from '../../objects/LineSegments';
import { LineBasicMaterial } from '../../materials/LineBasicMaterial';
import { EdgesGeometry } from '../geometries/EdgesGeometry';
import { EdgesGeometry } from '../../geometries/EdgesGeometry';
/**
* @author WestLangley / http://github.com/WestLangley
......
......@@ -3,7 +3,7 @@ import { Object3D } from '../../core/Object3D';
import { Mesh } from '../../objects/Mesh';
import { FaceColors } from '../../constants';
import { MeshBasicMaterial } from '../../materials/MeshBasicMaterial';
import { SphereGeometry } from '../geometries/SphereGeometry';
import { SphereGeometry } from '../../geometries/SphereGeometry';
import { Color } from '../../math/Color';
/**
......
import { Mesh } from '../../objects/Mesh';
import { MeshBasicMaterial } from '../../materials/MeshBasicMaterial';
import { SphereBufferGeometry } from '../geometries/SphereBufferGeometry';
import { SphereBufferGeometry } from '../../geometries/SphereBufferGeometry';
/**
* @author alteredq / http://alteredqualia.com/
......
import { LineSegments } from '../../objects/LineSegments';
import { LineBasicMaterial } from '../../materials/LineBasicMaterial';
import { WireframeGeometry } from '../geometries/WireframeGeometry';
import { WireframeGeometry } from '../../geometries/WireframeGeometry';
/**
* @author mrdoob / http://mrdoob.com/
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { Vector3 } from '../../math/Vector3';
import { BufferAttribute } from '../../core/BufferAttribute';
import { BufferGeometry } from '../core/BufferGeometry';
import { Vector3 } from '../math/Vector3';
import { BufferAttribute } from '../core/BufferAttribute';
/**
* @author Mugen87 / https://github.com/Mugen87
......
import { Geometry } from '../../core/Geometry';
import { Geometry } from '../core/Geometry';
import { BoxBufferGeometry } from './BoxBufferGeometry';
/**
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { Vector3 } from '../../math/Vector3';
import { Sphere } from '../../math/Sphere';
import { BufferAttribute } from '../../core/BufferAttribute';
import { BufferGeometry } from '../core/BufferGeometry';
import { Vector3 } from '../math/Vector3';
import { Sphere } from '../math/Sphere';
import { BufferAttribute } from '../core/BufferAttribute';
/**
* @author benaadams / https://twitter.com/ben_a_adams
......
import { Geometry } from '../../core/Geometry';
import { Geometry } from '../core/Geometry';
import { CircleBufferGeometry } from './CircleBufferGeometry';
/**
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { BufferGeometry } from '../core/BufferGeometry';
import { CylinderBufferGeometry } from './CylinderBufferGeometry';
/*
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { Vector3 } from '../../math/Vector3';
import { Vector2 } from '../../math/Vector2';
import { BufferAttribute } from '../../core/BufferAttribute';
import { BufferGeometry } from '../core/BufferGeometry';
import { Vector3 } from '../math/Vector3';
import { Vector2 } from '../math/Vector2';
import { BufferAttribute } from '../core/BufferAttribute';
/**
* @author Mugen87 / https://github.com/Mugen87
......
import { Geometry } from '../../core/Geometry';
import { Geometry } from '../core/Geometry';
import { CylinderBufferGeometry } from './CylinderBufferGeometry';
/**
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { BufferAttribute } from '../../core/BufferAttribute';
import { Geometry } from '../../core/Geometry';
import { _Math } from '../../math/Math';
import { BufferGeometry } from '../core/BufferGeometry';
import { BufferAttribute } from '../core/BufferAttribute';
import { Geometry } from '../core/Geometry';
import { _Math } from '../math/Math';
/**
* @author WestLangley / http://github.com/WestLangley
......
import { Geometry } from '../../core/Geometry';
import { Vector2 } from '../../math/Vector2';
import { Face3 } from '../../core/Face3';
import { Vector3 } from '../../math/Vector3';
import { ShapeUtils } from '../ShapeUtils';
import { Geometry } from '../core/Geometry';
import { Vector2 } from '../math/Vector2';
import { Face3 } from '../core/Face3';
import { Vector3 } from '../math/Vector3';
import { ShapeUtils } from '../extras/ShapeUtils';
import { TubeGeometry } from './TubeGeometry';
/**
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { Vector3 } from '../../math/Vector3';
import { Vector2 } from '../../math/Vector2';
import { BufferAttribute } from '../../core/BufferAttribute';
import { _Math } from '../../math/Math';
import { BufferGeometry } from '../core/BufferGeometry';
import { Vector3 } from '../math/Vector3';
import { Vector2 } from '../math/Vector2';
import { BufferAttribute } from '../core/BufferAttribute';
import { _Math } from '../math/Math';
/**
* @author Mugen87 / https://github.com/Mugen87
......
import { Geometry } from '../../core/Geometry';
import { Geometry } from '../core/Geometry';
import { LatheBufferGeometry } from './LatheBufferGeometry';
/**
......
import { Geometry } from '../../core/Geometry';
import { Face3 } from '../../core/Face3';
import { Vector2 } from '../../math/Vector2';
import { Geometry } from '../core/Geometry';
import { Face3 } from '../core/Face3';
import { Vector2 } from '../math/Vector2';
/**
* @author zz85 / https://github.com/zz85
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { BufferAttribute } from '../../core/BufferAttribute';
import { BufferGeometry } from '../core/BufferGeometry';
import { BufferAttribute } from '../core/BufferAttribute';
/**
* @author mrdoob / http://mrdoob.com/
......
import { Geometry } from '../../core/Geometry';
import { Geometry } from '../core/Geometry';
import { PlaneBufferGeometry } from './PlaneBufferGeometry';
/**
......
import { Geometry } from '../../core/Geometry';
import { Vector2 } from '../../math/Vector2';
import { Face3 } from '../../core/Face3';
import { Vector3 } from '../../math/Vector3';
import { Sphere } from '../../math/Sphere';
import { Geometry } from '../core/Geometry';
import { Vector2 } from '../math/Vector2';
import { Face3 } from '../core/Face3';
import { Vector3 } from '../math/Vector3';
import { Sphere } from '../math/Sphere';
/**
* @author clockworkgeek / https://github.com/clockworkgeek
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { Vector2 } from '../../math/Vector2';
import { Vector3 } from '../../math/Vector3';
import { BufferAttribute } from '../../core/BufferAttribute';
import { BufferGeometry } from '../core/BufferGeometry';
import { Vector2 } from '../math/Vector2';
import { Vector3 } from '../math/Vector3';
import { BufferAttribute } from '../core/BufferAttribute';
/**
* @author Mugen87 / https://github.com/Mugen87
......
import { Geometry } from '../../core/Geometry';
import { Geometry } from '../core/Geometry';
import { RingBufferGeometry } from './RingBufferGeometry';
/**
......
import { Geometry } from '../../core/Geometry';
import { Face3 } from '../../core/Face3';
import { Vector3 } from '../../math/Vector3';
import { ShapeUtils } from '../ShapeUtils';
import { Geometry } from '../core/Geometry';
import { Face3 } from '../core/Face3';
import { Vector3 } from '../math/Vector3';
import { ShapeUtils } from '../extras/ShapeUtils';
import { ExtrudeGeometry } from './ExtrudeGeometry';
/**
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { Vector3 } from '../../math/Vector3';
import { Sphere } from '../../math/Sphere';
import { Uint16Attribute, Uint32Attribute, BufferAttribute } from '../../core/BufferAttribute';
import { BufferGeometry } from '../core/BufferGeometry';
import { Vector3 } from '../math/Vector3';
import { Sphere } from '../math/Sphere';
import { Uint16Attribute, Uint32Attribute, BufferAttribute } from '../core/BufferAttribute';
/**
* @author benaadams / https://twitter.com/ben_a_adams
......
import { Geometry } from '../../core/Geometry';
import { Geometry } from '../core/Geometry';
import { SphereBufferGeometry } from './SphereBufferGeometry';
/**
......
import { ExtrudeGeometry } from './ExtrudeGeometry';
import { Geometry } from '../../core/Geometry';
import { Geometry } from '../core/Geometry';
/**
* @author zz85 / http://www.lab4games.net/zz85/blog
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { BufferAttribute } from '../../core/BufferAttribute';
import { Vector3 } from '../../math/Vector3';
import { BufferGeometry } from '../core/BufferGeometry';
import { BufferAttribute } from '../core/BufferAttribute';
import { Vector3 } from '../math/Vector3';
/**
* @author Mugen87 / https://github.com/Mugen87
......
import { Geometry } from '../../core/Geometry';
import { Geometry } from '../core/Geometry';
import { TorusBufferGeometry } from './TorusBufferGeometry';
/**
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { Vector3 } from '../../math/Vector3';
import { Vector2 } from '../../math/Vector2';
import { BufferAttribute } from '../../core/BufferAttribute';
import { BufferGeometry } from '../core/BufferGeometry';
import { Vector3 } from '../math/Vector3';
import { Vector2 } from '../math/Vector2';
import { BufferAttribute } from '../core/BufferAttribute';
/**
* @author Mugen87 / https://github.com/Mugen87
......
import { Geometry } from '../../core/Geometry';
import { Geometry } from '../core/Geometry';
import { TorusKnotBufferGeometry } from './TorusKnotBufferGeometry';
/**
......
import { Geometry } from '../../core/Geometry';
import { _Math } from '../../math/Math';
import { Vector3 } from '../../math/Vector3';
import { Matrix4 } from '../../math/Matrix4';
import { Face3 } from '../../core/Face3';
import { Vector2 } from '../../math/Vector2';
import { Geometry } from '../core/Geometry';
import { _Math } from '../math/Math';
import { Vector3 } from '../math/Vector3';
import { Matrix4 } from '../math/Matrix4';
import { Face3 } from '../core/Face3';
import { Vector2 } from '../math/Vector2';
/**
* @author WestLangley / https://github.com/WestLangley
......
import { BufferGeometry } from '../../core/BufferGeometry';
import { BufferAttribute } from '../../core/BufferAttribute';
import { BufferGeometry } from '../core/BufferGeometry';
import { BufferAttribute } from '../core/BufferAttribute';
/**
* @author mrdoob / http://mrdoob.com/
......
......@@ -28,7 +28,7 @@ import { MaterialLoader } from './MaterialLoader';
import { BufferGeometryLoader } from './BufferGeometryLoader';
import { JSONLoader } from './JSONLoader';
import { XHRLoader } from './XHRLoader';
import * as Geometries from '../extras/geometries/Geometries';
import * as Geometries from '../geometries/Geometries';
/**
* @author mrdoob / http://mrdoob.com/
......
......@@ -7,10 +7,10 @@ import { LensFlarePlugin } from './webgl/plugins/LensFlarePlugin';
import { SpritePlugin } from './webgl/plugins/SpritePlugin';
import { WebGLShadowMap } from './webgl/WebGLShadowMap';
import { ShaderMaterial } from '../materials/ShaderMaterial';
import { BoxBufferGeometry } from '../extras/geometries/BoxBufferGeometry';
import { Mesh } from '../objects/Mesh';
import { BoxBufferGeometry } from '../geometries/BoxBufferGeometry';
import { PlaneBufferGeometry } from '../geometries/PlaneBufferGeometry';
import { MeshBasicMaterial } from '../materials/MeshBasicMaterial';
import { PlaneBufferGeometry } from '../extras/geometries/PlaneBufferGeometry';
import { PerspectiveCamera } from '../cameras/PerspectiveCamera';
import { OrthographicCamera } from '../cameras/OrthographicCamera';
import { WebGLIndexedBufferRenderer } from './webgl/WebGLIndexedBufferRenderer';
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册