* move is* properties to prototypes and remove unused ones * rebuild * merge dev -> less-is * remove rebuild from PR
@@ -12,7 +12,6 @@ import { WrapAroundEnding, ZeroCurvatureEnding, ZeroSlopeEnding, LoopPingPong, L
*/
function AnimationAction() {
- this.isAnimationAction = true;
throw new Error( "THREE.AnimationAction: " +
"Use mixer.clipAction for construction." );
@@ -664,4 +663,4 @@ AnimationAction._new.prototype = {
-export { AnimationAction };
+export { AnimationAction };
@@ -14,7 +14,6 @@ import { _Math } from '../math/Math';
function AnimationClip( name, duration, tracks ) {
- this.isAnimationClip = true;
this.name = name;
this.tracks = tracks;
@@ -367,4 +366,4 @@ Object.assign( AnimationClip, {
} );
-export { AnimationClip };
+export { AnimationClip };
@@ -16,7 +16,6 @@ import { AnimationClip } from './AnimationClip';
function AnimationMixer( root ) {
- this.isAnimationMixer = true;
this._root = root;
this._initMemoryManager();
@@ -745,4 +744,4 @@ Object.assign( AnimationMixer.prototype, {
-export { AnimationMixer };
+export { AnimationMixer };
@@ -33,7 +33,6 @@ import { _Math } from '../math/Math';
function AnimationObjectGroup( var_args ) {
- this.isAnimationObjectGroup = true;
this.uuid = _Math.generateUUID();
@@ -76,6 +75,8 @@ AnimationObjectGroup.prototype = {
constructor: AnimationObjectGroup,
+ isAnimationObjectGroup: true,
+
add: function( var_args ) {
var objects = this._objects,
@@ -373,4 +374,4 @@ AnimationObjectGroup.prototype = {
-export { AnimationObjectGroup };
+export { AnimationObjectGroup };
@@ -1,7 +1,6 @@
import { AnimationUtils } from './AnimationUtils';
function KeyframeTrackConstructor( name, times, values, interpolation ) {
- this.isKeyframeTrack = true;
if( name === undefined ) throw new Error( "track name is undefined" );
@@ -23,4 +22,4 @@ function KeyframeTrackConstructor( name, times, values, interpolation ) {
}
-export { KeyframeTrackConstructor };
+export { KeyframeTrackConstructor };
@@ -9,7 +9,6 @@
function PropertyBinding( rootNode, path, parsedPath ) {
- this.isPropertyBinding = true;
this.path = path;
this.parsedPath = parsedPath ||
@@ -655,4 +654,4 @@ PropertyBinding.findNode = function( root, nodeName ) {
};
-export { PropertyBinding };
+export { PropertyBinding };
@@ -11,7 +11,6 @@ import { Quaternion } from '../math/Quaternion';
function PropertyMixer( binding, typeName, valueSize ) {
- this.isPropertyMixer = true;
this.binding = binding;
this.valueSize = valueSize;
@@ -206,4 +205,4 @@ PropertyMixer.prototype = {
-export { PropertyMixer };
+export { PropertyMixer };
@@ -13,7 +13,6 @@ import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor';
function BooleanKeyframeTrack( name, times, values ) {
- this.isBooleanKeyframeTrack = true;
KeyframeTrackConstructor.call( this, name, times, values );
@@ -39,4 +38,4 @@ BooleanKeyframeTrack.prototype =
-export { BooleanKeyframeTrack };
+export { BooleanKeyframeTrack };
@@ -12,7 +12,6 @@ import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor';
function ColorKeyframeTrack( name, times, values, interpolation ) {
- this.isColorKeyframeTrack = true;
KeyframeTrackConstructor.call( this, name, times, values, interpolation );
@@ -36,4 +35,4 @@ ColorKeyframeTrack.prototype =
-export { ColorKeyframeTrack };
+export { ColorKeyframeTrack };
@@ -11,7 +11,6 @@ import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor';
function NumberKeyframeTrack( name, times, values, interpolation ) {
- this.isNumberKeyframeTrack = true;
@@ -31,4 +30,4 @@ NumberKeyframeTrack.prototype =
-export { NumberKeyframeTrack };
+export { NumberKeyframeTrack };
function QuaternionKeyframeTrack( name, times, values, interpolation ) {
- this.isQuaternionKeyframeTrack = true;
@@ -42,4 +41,4 @@ QuaternionKeyframeTrack.prototype =
-export { QuaternionKeyframeTrack };
+export { QuaternionKeyframeTrack };
function StringKeyframeTrack( name, times, values, interpolation ) {
- this.isStringKeyframeTrack = true;
@@ -36,4 +35,4 @@ StringKeyframeTrack.prototype =
-export { StringKeyframeTrack };
+export { StringKeyframeTrack };
function VectorKeyframeTrack( name, times, values, interpolation ) {
- this.isVectorKeyframeTrack = true;
@@ -32,4 +31,4 @@ VectorKeyframeTrack.prototype =
-export { VectorKeyframeTrack };
+export { VectorKeyframeTrack };
@@ -10,7 +10,6 @@ import { Vector3 } from '../math/Vector3';
function Camera() {
- this.isCamera = this.isObject3D = true;
Object3D.call( this );
@@ -24,6 +23,8 @@ function Camera() {
Camera.prototype = Object.create( Object3D.prototype );
Camera.prototype.constructor = Camera;
+Camera.prototype.isCamera = true;
Camera.prototype.getWorldDirection = function () {
var quaternion = new Quaternion();
@@ -74,4 +75,4 @@ Camera.prototype.copy = function ( source ) {
-export { Camera };
+export { Camera };
@@ -12,7 +12,6 @@ import { PerspectiveCamera } from './PerspectiveCamera';
function CubeCamera( near, far, cubeResolution ) {
- this.isCubeCamera = this.isObject3D = true;
@@ -93,4 +92,4 @@ CubeCamera.prototype = Object.create( Object3D.prototype );
CubeCamera.prototype.constructor = CubeCamera;
-export { CubeCamera };
+export { CubeCamera };
@@ -7,7 +7,6 @@ import { Object3D } from '../core/Object3D';
function OrthographicCamera( left, right, top, bottom, near, far ) {
- this.isOrthographicCamera = true;
Camera.call( this );
@@ -32,6 +31,8 @@ OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ),
constructor: OrthographicCamera,
+ isOrthographicCamera: true,
copy: function ( source ) {
Camera.prototype.copy.call( this, source );
@@ -123,4 +124,4 @@ OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ),
-export { OrthographicCamera };
+export { OrthographicCamera };
@@ -10,7 +10,6 @@ import { _Math } from '../math/Math';
function PerspectiveCamera( fov, aspect, near, far ) {
- this.isPerspectiveCamera = true;
@@ -37,6 +36,8 @@ PerspectiveCamera.prototype = Object.assign( Object.create( Camera.prototype ),
constructor: PerspectiveCamera,
+ isPerspectiveCamera: true,
@@ -222,4 +223,4 @@ PerspectiveCamera.prototype = Object.assign( Object.create( Camera.prototype ),
-export { PerspectiveCamera };
+export { PerspectiveCamera };
@@ -7,7 +7,6 @@ import { PerspectiveCamera } from './PerspectiveCamera';
function StereoCamera() {
- this.isStereoCamera = true;
this.type = 'StereoCamera';
@@ -92,4 +91,4 @@ Object.assign( StereoCamera.prototype, {
-export { StereoCamera };
+export { StereoCamera };
@@ -9,7 +9,6 @@ import { _Math } from '../math/Math';
function BufferAttribute( array, itemSize, normalized ) {
- this.isBufferAttribute = true;
@@ -28,6 +27,8 @@ BufferAttribute.prototype = {
constructor: BufferAttribute,
+ isBufferAttribute: true,
get count() {
return this.array.length / this.itemSize;
@@ -16,7 +16,6 @@ import { GeometryIdCount } from './Geometry';
function BufferGeometry() {
- this.isBufferGeometry = true;
Object.defineProperty( this, 'id', { value: GeometryIdCount() } );
@@ -41,6 +40,8 @@ function BufferGeometry() {
Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
+ isBufferGeometry: true,
getIndex: function () {
return this.index;
@@ -1035,4 +1036,4 @@ Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
BufferGeometry.MaxIndex = 65535;
-export { BufferGeometry };
+export { BufferGeometry };
@@ -3,7 +3,6 @@
function Clock( autoStart ) {
- this.isClock = true;
this.autoStart = ( autoStart !== undefined ) ? autoStart : true;
@@ -70,4 +69,4 @@ Clock.prototype = {
-export { Clock };
+export { Clock };
@@ -9,7 +9,6 @@ import { GeometryIdCount } from './Geometry';
function DirectGeometry() {
- this.isDirectGeometry = true;
@@ -293,4 +292,4 @@ Object.assign( DirectGeometry.prototype, EventDispatcher.prototype, {
-export { DirectGeometry };
+export { DirectGeometry };
@@ -2,8 +2,7 @@
* https://github.com/mrdoob/eventdispatcher.js/
-function EventDispatcher() {
- this.isEventDispatcher = true;};
+function EventDispatcher() {}
Object.assign( EventDispatcher.prototype, {
@@ -97,4 +96,4 @@ Object.assign( EventDispatcher.prototype, {
-export { EventDispatcher };
+export { EventDispatcher };
@@ -7,7 +7,6 @@ import { Vector3 } from '../math/Vector3';
function Face3( a, b, c, normal, color, materialIndex ) {
- this.isFace3 = true;
this.a = a;
this.b = b;
@@ -63,4 +62,4 @@ Face3.prototype = {
-export { Face3 };
+export { Face3 };
@@ -20,7 +20,6 @@ import { _Math } from '../math/Math';
function Geometry() {
- this.isGeometry = true;
@@ -59,6 +58,8 @@ function Geometry() {
Object.assign( Geometry.prototype, EventDispatcher.prototype, {
+ isGeometry: true,
applyMatrix: function ( matrix ) {
var normalMatrix = new Matrix3().getNormalMatrix( matrix );
@@ -1219,4 +1220,4 @@ var count = 0;
function GeometryIdCount() { return count++; };
-export { GeometryIdCount, Geometry };
+export { GeometryIdCount, Geometry };
@@ -5,7 +5,6 @@ import { BufferAttribute } from './BufferAttribute';
function InstancedBufferAttribute( array, itemSize, meshPerAttribute ) {
- this.isInstancedBufferAttribute = this.isBufferAttribute = true;
BufferAttribute.call( this, array, itemSize );
@@ -16,6 +15,8 @@ function InstancedBufferAttribute( array, itemSize, meshPerAttribute ) {
InstancedBufferAttribute.prototype = Object.create( BufferAttribute.prototype );
InstancedBufferAttribute.prototype.constructor = InstancedBufferAttribute;
+InstancedBufferAttribute.prototype.isInstancedBufferAttribute = true;
InstancedBufferAttribute.prototype.copy = function ( source ) {
BufferAttribute.prototype.copy.call( this, source );
@@ -27,4 +28,4 @@ InstancedBufferAttribute.prototype.copy = function ( source ) {
-export { InstancedBufferAttribute };
+export { InstancedBufferAttribute };
@@ -5,7 +5,6 @@ import { BufferGeometry } from './BufferGeometry';
function InstancedBufferGeometry() {
- this.isInstancedBufferGeometry = this.isBufferGeometry = true;
BufferGeometry.call( this );
@@ -17,6 +16,8 @@ function InstancedBufferGeometry() {
InstancedBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
InstancedBufferGeometry.prototype.constructor = InstancedBufferGeometry;
+InstancedBufferGeometry.prototype.isBufferGeometry = true;
InstancedBufferGeometry.prototype.addGroup = function ( start, count, instances ) {
this.groups.push( {
@@ -62,4 +63,4 @@ InstancedBufferGeometry.prototype.copy = function ( source ) {
-export { InstancedBufferGeometry };
+export { InstancedBufferGeometry };
@@ -5,7 +5,6 @@ import { InterleavedBuffer } from './InterleavedBuffer';
function InstancedInterleavedBuffer( array, stride, meshPerAttribute ) {
- this.isInstancedInterleavedBuffer = this.isInterleavedBuffer = true;
InterleavedBuffer.call( this, array, stride );
@@ -16,6 +15,8 @@ function InstancedInterleavedBuffer( array, stride, meshPerAttribute ) {
InstancedInterleavedBuffer.prototype = Object.create( InterleavedBuffer.prototype );
InstancedInterleavedBuffer.prototype.constructor = InstancedInterleavedBuffer;
+InstancedInterleavedBuffer.prototype.isInstancedInterleavedBuffer = true;
InstancedInterleavedBuffer.prototype.copy = function ( source ) {
InterleavedBuffer.prototype.copy.call( this, source );
@@ -27,4 +28,4 @@ InstancedInterleavedBuffer.prototype.copy = function ( source ) {
-export { InstancedInterleavedBuffer };
+export { InstancedInterleavedBuffer };
@@ -5,7 +5,6 @@ import { _Math } from '../math/Math';
function InterleavedBuffer( array, stride ) {
- this.isInterleavedBuffer = true;
@@ -23,6 +22,8 @@ InterleavedBuffer.prototype = {
constructor: InterleavedBuffer,
+ isInterleavedBuffer: true,
get length () {
return this.array.length;
@@ -93,4 +94,4 @@ InterleavedBuffer.prototype = {
-export { InterleavedBuffer };
+export { InterleavedBuffer };
function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normalized ) {
- this.isInterleavedBufferAttribute = true;
@@ -22,6 +21,8 @@ InterleavedBufferAttribute.prototype = {
constructor: InterleavedBufferAttribute,
+ isInterleavedBufferAttribute: true,
get length() {
console.warn( 'THREE.BufferAttribute: .length has been deprecated. Please use .count.' );
@@ -136,4 +137,4 @@ InterleavedBufferAttribute.prototype = {
-export { InterleavedBufferAttribute };
+export { InterleavedBufferAttribute };
function Layers() {
- this.isLayers = true;
this.mask = 1;
@@ -46,4 +45,4 @@ Layers.prototype = {
-export { Layers };
+export { Layers };
@@ -16,7 +16,6 @@ import { _Math } from '../math/Math';
function Object3D() {
- this.isObject3D = true;
Object.defineProperty( this, 'id', { value: Object3DIdCount() } );
@@ -99,6 +98,8 @@ Object3D.DefaultMatrixAutoUpdate = true;
Object.assign( Object3D.prototype, EventDispatcher.prototype, {
+ isObject3D: true,
this.matrix.multiplyMatrices( matrix, this.matrix );
@@ -725,4 +726,4 @@ var count = 0;
function Object3DIdCount() { return count++; };
-export { Object3DIdCount, Object3D };
+export { Object3DIdCount, Object3D };
@@ -7,7 +7,6 @@ import { Ray } from '../math/Ray';
function Raycaster( origin, direction, near, far ) {
- this.isRaycaster = true;
this.ray = new Ray( origin, direction );
// direction is assumed to be normalized (for accurate distance calculations)
@@ -134,4 +133,4 @@ Raycaster.prototype = {
-export { Raycaster };
+export { Raycaster };
function Uniform( value ) {
- this.isUniform = true;
if ( typeof value === 'string' ) {
@@ -34,4 +33,4 @@ Uniform.prototype = {
-export { Uniform };
+export { Uniform };
@@ -33,10 +33,7 @@
* Abstract Curve base class
**************************************************************/
-function Curve() {
- this.isCurve = true;
-
-};
+function Curve() {}
Curve.prototype = {
@@ -285,4 +282,4 @@ Curve.create = function ( constructor, getPointFunc ) {
-export { Curve };
+export { Curve };
@@ -14,7 +14,6 @@ import { LineCurve } from '../curves/LineCurve';
function CurvePath() {
- this.isCurvePath = true;
this.curves = [];
@@ -239,4 +238,4 @@ CurvePath.prototype = Object.assign( Object.create( Curve.prototype ), {
-export { CurvePath };
+export { CurvePath };
@@ -7,7 +7,6 @@ import { ShapePath } from './Path';
function Font( data ) {
- this.isFont = true;
this.data = data;
@@ -15,6 +14,8 @@ function Font( data ) {
Object.assign( Font.prototype, {
+ isFont: true,
generateShapes: function ( text, size, divisions ) {
function createPaths( text ) {
@@ -168,4 +169,4 @@ Object.assign( Font.prototype, {
-export { Font };
+export { Font };
@@ -11,7 +11,6 @@ import { CurvePath } from './CurvePath';
**/
function Path( points ) {
- this.isPath = true;
CurvePath.call( this );
this.currentPoint = new Vector2();
@@ -30,7 +29,6 @@ PathPrototype.constructor = Path;
// minimal class for proxing functions to Path. Replaces old "extractSubpaths()"
function ShapePath() {
- this.isShapePath = true;
this.subPaths = [];
this.currentPath = null;
@@ -283,4 +281,4 @@ ShapePath.prototype = {
-export { ShapePath, Path };
+export { ShapePath, Path };
@@ -6,9 +6,7 @@ import { CubicBezierCurve } from '../curves/CubicBezierCurve';
import { QuadraticBezierCurve } from '../curves/QuadraticBezierCurve';
import { LineCurve } from '../curves/LineCurve';
-var PathPrototype;
-PathPrototype = Object.assign( Object.create( CurvePath.prototype ), {
+var PathPrototype = Object.assign( Object.create( CurvePath.prototype ), {
fromPoints: function ( vectors ) {
@@ -128,4 +126,4 @@ PathPrototype = Object.assign( Object.create( CurvePath.prototype ), {
} )
-export { PathPrototype };
+export { PathPrototype };
@@ -15,7 +15,6 @@ import { Path } from './Path';
// STEP 3b - Triangulate each shape, add faces.
function Shape() {
- this.isShape = true;
Path.apply( this, arguments );
@@ -79,4 +78,4 @@ Shape.prototype = Object.assign( Object.create( PathPrototype ), {
-export { Shape };
+export { Shape };
@@ -5,7 +5,6 @@ import { EllipseCurve } from './EllipseCurve';
function ArcCurve( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) {
- this.isArcCurve = this.isEllipseCurve = this.isCurve = true;
EllipseCurve.call( this, aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise );
@@ -15,4 +14,4 @@ ArcCurve.prototype = Object.create( EllipseCurve.prototype );
ArcCurve.prototype.constructor = ArcCurve;
-export { ArcCurve };
+export { ArcCurve };
@@ -6,7 +6,6 @@ import { CatmullRomCurve3 } from './CatmullRomCurve3';
function ClosedSplineCurve3( points ) {
- this.isClosedSplineCurve3 = this.isCatmullRomCurve3 = true;
console.warn( 'THREE.ClosedSplineCurve3 has been deprecated. Please use THREE.CatmullRomCurve3.' );
@@ -19,4 +18,4 @@ function ClosedSplineCurve3( points ) {
ClosedSplineCurve3.prototype = Object.create( CatmullRomCurve3.prototype );
-export { ClosedSplineCurve3 };
+export { ClosedSplineCurve3 };
@@ -8,7 +8,6 @@ import { ShapeUtils } from '../ShapeUtils';
function CubicBezierCurve( v0, v1, v2, v3 ) {
- this.isCubicBezierCurve = this.isCurve = true;
this.v0 = v0;
this.v1 = v1;
@@ -24,7 +23,7 @@ CubicBezierCurve.prototype.getPoint = function ( t ) {
var b3 = ShapeUtils.b3;
- return new Vector2(
+ return new Vector2(
b3( t, this.v0.x, this.v1.x, this.v2.x, this.v3.x ),
b3( t, this.v0.y, this.v1.y, this.v2.y, this.v3.y )
);
@@ -35,7 +34,7 @@ CubicBezierCurve.prototype.getTangent = function( t ) {
var tangentCubicBezier = CurveUtils.tangentCubicBezier;
tangentCubicBezier( t, this.v0.x, this.v1.x, this.v2.x, this.v3.x ),
tangentCubicBezier( t, this.v0.y, this.v1.y, this.v2.y, this.v3.y )
).normalize();
@@ -43,4 +42,4 @@ CubicBezierCurve.prototype.getTangent = function( t ) {
-export { CubicBezierCurve };
+export { CubicBezierCurve };
@@ -6,7 +6,6 @@ import { Vector2 } from '../../math/Vector2';
function EllipseCurve( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation ) {
- this.isEllipseCurve = this.isCurve = true;
this.aX = aX;
this.aY = aY;
@@ -26,6 +25,8 @@ function EllipseCurve( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockw
EllipseCurve.prototype = Object.create( Curve.prototype );
EllipseCurve.prototype.constructor = EllipseCurve;
+EllipseCurve.prototype.isEllipseCurve = true;
EllipseCurve.prototype.getPoint = function( t ) {
var twoPi = Math.PI * 2;
@@ -87,4 +88,4 @@ EllipseCurve.prototype.getPoint = function( t ) {
-export { EllipseCurve };
+export { EllipseCurve };
@@ -5,7 +5,6 @@ import { Curve } from '../core/Curve';
function LineCurve( v1, v2 ) {
- this.isLineCurve = this.isCurve = true;
this.v2 = v2;
@@ -15,6 +14,8 @@ function LineCurve( v1, v2 ) {
LineCurve.prototype = Object.create( Curve.prototype );
LineCurve.prototype.constructor = LineCurve;
+LineCurve.prototype.isLineCurve = true;
LineCurve.prototype.getPoint = function ( t ) {
if ( t === 1 ) {
@@ -47,4 +48,4 @@ LineCurve.prototype.getTangent = function( t ) {
-export { LineCurve };
+export { LineCurve };
@@ -9,7 +9,6 @@ import { ShapeUtils } from '../ShapeUtils';
function QuadraticBezierCurve( v0, v1, v2 ) {
- this.isQuadraticBezierCurve = this.isCurve = true;
@@ -45,4 +44,4 @@ QuadraticBezierCurve.prototype.getTangent = function( t ) {
-export { QuadraticBezierCurve };
+export { QuadraticBezierCurve };
@@ -7,7 +7,6 @@ import { CurveUtils } from '../CurveUtils';
function SplineCurve( points /* array of Vector2 */ ) {
- this.isSplineCurve = this.isCurve = true;
this.points = ( points == undefined ) ? [] : points;
@@ -16,6 +15,8 @@ function SplineCurve( points /* array of Vector2 */ ) {
SplineCurve.prototype = Object.create( Curve.prototype );
SplineCurve.prototype.constructor = SplineCurve;
+SplineCurve.prototype.isSplineCurve = true;
SplineCurve.prototype.getPoint = function ( t ) {
var points = this.points;
@@ -39,4 +40,4 @@ SplineCurve.prototype.getPoint = function ( t ) {
-export { SplineCurve };
+export { SplineCurve };
@@ -2,14 +2,12 @@ import { Vector3 } from '../../math/Vector3';
import { CurveUtils } from '../CurveUtils';
import { Curve } from '../core/Curve';
-var SplineCurve3;
/**************************************************************
* Spline 3D curve
-SplineCurve3 = Curve.create(
+var SplineCurve3 = Curve.create(
function ( points /* array of Vector3 */ ) {
@@ -44,4 +42,4 @@ SplineCurve3 = Curve.create(
-export { SplineCurve3 };
+export { SplineCurve3 };
@@ -7,7 +7,6 @@ import { BufferAttribute } from '../../core/BufferAttribute';
function BoxBufferGeometry( width, height, depth, widthSegments, heightSegments, depthSegments ) {
- this.isBoxBufferGeometry = this.isBufferGeometry = true;
@@ -199,4 +198,4 @@ BoxBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
BoxBufferGeometry.prototype.constructor = BoxBufferGeometry;
-export { BoxBufferGeometry };
+export { BoxBufferGeometry };
@@ -9,7 +9,6 @@ var CubeGeometry;
function BoxGeometry( width, height, depth, widthSegments, heightSegments, depthSegments ) {
- this.isBoxGeometry = this.isGeometry = true;
Geometry.call( this );
@@ -35,4 +34,4 @@ BoxGeometry.prototype.constructor = BoxGeometry;
CubeGeometry = BoxGeometry;
-export { CubeGeometry, BoxGeometry };
+export { CubeGeometry, BoxGeometry };
@@ -8,7 +8,6 @@ import { BufferAttribute } from '../../core/BufferAttribute';
function CircleBufferGeometry( radius, segments, thetaStart, thetaLength ) {
- this.isCircleBufferGeometry = this.isBufferGeometry = true;
@@ -73,4 +72,4 @@ CircleBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
CircleBufferGeometry.prototype.constructor = CircleBufferGeometry;
-export { CircleBufferGeometry };
+export { CircleBufferGeometry };
@@ -6,7 +6,6 @@ import { CircleBufferGeometry } from './CircleBufferGeometry';
function CircleGeometry( radius, segments, thetaStart, thetaLength ) {
- this.isCircleGeometry = this.isGeometry = true;
@@ -27,4 +26,4 @@ CircleGeometry.prototype = Object.create( Geometry.prototype );
CircleGeometry.prototype.constructor = CircleGeometry;
-export { CircleGeometry };
+export { CircleGeometry };
@@ -9,7 +9,6 @@ function ConeBufferGeometry(
radius, height,
radialSegments, heightSegments,
openEnded, thetaStart, thetaLength ) {
- this.isConeBufferGeometry = this.isBufferGeometry = true;
CylinderBufferGeometry.call( this,
0, radius, height,
@@ -33,4 +32,4 @@ ConeBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
ConeBufferGeometry.prototype.constructor = ConeBufferGeometry;
-export { ConeBufferGeometry };
+export { ConeBufferGeometry };
@@ -8,7 +8,6 @@ function ConeGeometry(
- this.isConeGeometry = this.isCylinderGeometry = this.isGeometry = true;
CylinderGeometry.call( this,
@@ -33,4 +32,4 @@ ConeGeometry.prototype = Object.create( CylinderGeometry.prototype );
ConeGeometry.prototype.constructor = ConeGeometry;
-export { ConeGeometry };
+export { ConeGeometry };
function CylinderBufferGeometry( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
- this.isCylinderBufferGeometry = this.isBufferGeometry = true;
@@ -329,4 +328,4 @@ CylinderBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
CylinderBufferGeometry.prototype.constructor = CylinderBufferGeometry;
-export { CylinderBufferGeometry };
+export { CylinderBufferGeometry };
@@ -6,7 +6,6 @@ import { CylinderBufferGeometry } from './CylinderBufferGeometry';
function CylinderGeometry( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
- this.isCylinderGeometry = this.isGeometry = true;
@@ -32,4 +31,4 @@ CylinderGeometry.prototype = Object.create( Geometry.prototype );
CylinderGeometry.prototype.constructor = CylinderGeometry;
-export { CylinderGeometry };
+export { CylinderGeometry };
@@ -5,7 +5,6 @@ import { PolyhedronGeometry } from './PolyhedronGeometry';
function DodecahedronGeometry( radius, detail ) {
- this.isDodecahedronGeometry = this.isPolyhedronGeometry = this.isGeometry = true;
var t = ( 1 + Math.sqrt( 5 ) ) / 2;
var r = 1 / t;
@@ -61,4 +60,4 @@ DodecahedronGeometry.prototype = Object.create( PolyhedronGeometry.prototype );
DodecahedronGeometry.prototype.constructor = DodecahedronGeometry;
-export { DodecahedronGeometry };
+export { DodecahedronGeometry };
@@ -8,7 +8,6 @@ import { _Math } from '../../math/Math';
function EdgesGeometry( geometry, thresholdAngle ) {
- this.isEdgesGeometry = this.isBufferGeometry = true;
@@ -101,4 +100,4 @@ EdgesGeometry.prototype = Object.create( BufferGeometry.prototype );
EdgesGeometry.prototype.constructor = EdgesGeometry;
-export { EdgesGeometry };
+export { EdgesGeometry };
@@ -30,7 +30,6 @@ import { TubeGeometry } from './TubeGeometry';
function ExtrudeGeometry( shapes, options ) {
- this.isExtrudeGeometry = this.isGeometry = true;
if ( typeof( shapes ) === "undefined" ) {
@@ -712,4 +711,4 @@ ExtrudeGeometry.WorldUVGenerator = {
-export { ExtrudeGeometry };
+export { ExtrudeGeometry };
function IcosahedronGeometry( radius, detail ) {
- this.isIcosahedronGeometry = this.isPolyhedronGeometry = this.isGeometry = true;
@@ -37,4 +36,4 @@ IcosahedronGeometry.prototype = Object.create( PolyhedronGeometry.prototype );
IcosahedronGeometry.prototype.constructor = IcosahedronGeometry;
-export { IcosahedronGeometry };
+export { IcosahedronGeometry };
@@ -16,7 +16,6 @@ import { _Math } from '../../math/Math';
// 2PI is a closed lathe, less than 2PI is a portion.
function LatheBufferGeometry( points, segments, phiStart, phiLength ) {
- this.isLatheBufferGeometry = this.isBufferGeometry = true;
@@ -162,4 +161,4 @@ LatheBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
LatheBufferGeometry.prototype.constructor = LatheBufferGeometry;
-export { LatheBufferGeometry };
+export { LatheBufferGeometry };
@@ -15,7 +15,6 @@ import { LatheBufferGeometry } from './LatheBufferGeometry';
function LatheGeometry( points, segments, phiStart, phiLength ) {
- this.isLatheGeometry = this.isGeometry = true;
@@ -37,4 +36,4 @@ LatheGeometry.prototype = Object.create( Geometry.prototype );
LatheGeometry.prototype.constructor = LatheGeometry;
-export { LatheGeometry };
+export { LatheGeometry };
function OctahedronGeometry( radius, detail ) {
- this.isOctahedronGeometry = this.isPolyhedronGeometry = this.isGeometry = true;
var vertices = [
1, 0, 0, - 1, 0, 0, 0, 1, 0, 0, - 1, 0, 0, 0, 1, 0, 0, - 1
@@ -30,4 +29,4 @@ OctahedronGeometry.prototype = Object.create( PolyhedronGeometry.prototype );
OctahedronGeometry.prototype.constructor = OctahedronGeometry;
-export { OctahedronGeometry };
+export { OctahedronGeometry };
@@ -12,7 +12,6 @@ import { Vector2 } from '../../math/Vector2';
function ParametricGeometry( func, slices, stacks ) {
- this.isParametricGeometry = this.isGeometry = true;
@@ -90,4 +89,4 @@ ParametricGeometry.prototype = Object.create( Geometry.prototype );
ParametricGeometry.prototype.constructor = ParametricGeometry;
-export { ParametricGeometry };
+export { ParametricGeometry };
function PlaneBufferGeometry( width, height, widthSegments, heightSegments ) {
- this.isPlaneBufferGeometry = this.isBufferGeometry = true;
@@ -100,4 +99,4 @@ PlaneBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
PlaneBufferGeometry.prototype.constructor = PlaneBufferGeometry;
-export { PlaneBufferGeometry };
+export { PlaneBufferGeometry };
@@ -7,7 +7,6 @@ import { PlaneBufferGeometry } from './PlaneBufferGeometry';
function PlaneGeometry( width, height, widthSegments, heightSegments ) {
- this.isPlaneGeometry = this.isGeometry = true;
@@ -28,4 +27,4 @@ PlaneGeometry.prototype = Object.create( Geometry.prototype );
PlaneGeometry.prototype.constructor = PlaneGeometry;
-export { PlaneGeometry };
+export { PlaneGeometry };
@@ -11,7 +11,6 @@ import { Sphere } from '../../math/Sphere';
function PolyhedronGeometry( vertices, indices, radius, detail ) {
- this.isPolyhedronGeometry = this.isGeometry = true;
@@ -244,4 +243,4 @@ PolyhedronGeometry.prototype = Object.create( Geometry.prototype );
PolyhedronGeometry.prototype.constructor = PolyhedronGeometry;
-export { PolyhedronGeometry };
+export { PolyhedronGeometry };
function RingBufferGeometry( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) {
- this.isRingBufferGeometry = this.isBufferGeometry = true;
@@ -126,4 +125,4 @@ RingBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
RingBufferGeometry.prototype.constructor = RingBufferGeometry;
-export { RingBufferGeometry };
+export { RingBufferGeometry };
@@ -6,7 +6,6 @@ import { RingBufferGeometry } from './RingBufferGeometry';
function RingGeometry( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) {
- this.isRingGeometry = this.isGeometry = true;
@@ -29,4 +28,4 @@ RingGeometry.prototype = Object.create( Geometry.prototype );
RingGeometry.prototype.constructor = RingGeometry;
-export { RingGeometry };
+export { RingGeometry };
@@ -21,7 +21,6 @@ import { ExtrudeGeometry } from './ExtrudeGeometry';
function ShapeGeometry( shapes, options ) {
- this.isShapeGeometry = this.isGeometry = true;
@@ -138,4 +137,4 @@ ShapeGeometry.prototype.addShape = function ( shape, options ) {
-export { ShapeGeometry };
+export { ShapeGeometry };
@@ -9,7 +9,6 @@ import { Uint16Attribute, Uint32Attribute, BufferAttribute } from '../../core/Bu
function SphereBufferGeometry( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) {
- this.isSphereBufferGeometry = this.isBufferGeometry = true;
@@ -107,4 +106,4 @@ SphereBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
SphereBufferGeometry.prototype.constructor = SphereBufferGeometry;
-export { SphereBufferGeometry };
+export { SphereBufferGeometry };
@@ -6,7 +6,6 @@ import { SphereBufferGeometry } from './SphereBufferGeometry';
function SphereGeometry( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) {
- this.isSphereGeometry = this.isGeometry = true;
@@ -30,4 +29,4 @@ SphereGeometry.prototype = Object.create( Geometry.prototype );
SphereGeometry.prototype.constructor = SphereGeometry;
-export { SphereGeometry };
+export { SphereGeometry };
function TetrahedronGeometry( radius, detail ) {
- this.isTetrahedronGeometry = this.isPolyhedronGeometry = this.isGeometry = true;
1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1
@@ -30,4 +29,4 @@ TetrahedronGeometry.prototype = Object.create( PolyhedronGeometry.prototype );
TetrahedronGeometry.prototype.constructor = TetrahedronGeometry;
-export { TetrahedronGeometry };
+export { TetrahedronGeometry };
@@ -21,7 +21,6 @@ import { Geometry } from '../../core/Geometry';
function TextGeometry( text, parameters ) {
- this.isTextGeometry = this.isExtrudeGeometry = this.isGeometry = true;
parameters = parameters || {};
@@ -56,4 +55,4 @@ TextGeometry.prototype = Object.create( ExtrudeGeometry.prototype );
TextGeometry.prototype.constructor = TextGeometry;
-export { TextGeometry };
+export { TextGeometry };
@@ -7,7 +7,6 @@ import { Vector3 } from '../../math/Vector3';
function TorusBufferGeometry( radius, tube, radialSegments, tubularSegments, arc ) {
- this.isTorusBufferGeometry = this.isBufferGeometry = true;
@@ -131,4 +130,4 @@ TorusBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
TorusBufferGeometry.prototype.constructor = TorusBufferGeometry;
-export { TorusBufferGeometry };
+export { TorusBufferGeometry };
@@ -8,7 +8,6 @@ import { TorusBufferGeometry } from './TorusBufferGeometry';
function TorusGeometry( radius, tube, radialSegments, tubularSegments, arc ) {
- this.isTorusGeometry = this.isGeometry = true;
@@ -30,4 +29,4 @@ TorusGeometry.prototype = Object.create( Geometry.prototype );
TorusGeometry.prototype.constructor = TorusGeometry;
-export { TorusGeometry };
+export { TorusGeometry };
@@ -9,7 +9,6 @@ import { BufferAttribute } from '../../core/BufferAttribute';
* see: http://www.blackpawn.com/texts/pqtorus/
function TorusKnotBufferGeometry( radius, tube, tubularSegments, radialSegments, p, q ) {
- this.isTorusKnotBufferGeometry = this.isBufferGeometry = true;
@@ -170,4 +169,4 @@ TorusKnotBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
TorusKnotBufferGeometry.prototype.constructor = TorusKnotBufferGeometry;
-export { TorusKnotBufferGeometry };
+export { TorusKnotBufferGeometry };
@@ -6,7 +6,6 @@ import { TorusKnotBufferGeometry } from './TorusKnotBufferGeometry';
function TorusKnotGeometry( radius, tube, tubularSegments, radialSegments, p, q, heightScale ) {
- this.isTorusKnotGeometry = this.isGeometry = true;
@@ -32,4 +31,4 @@ TorusKnotGeometry.prototype = Object.create( Geometry.prototype );
TorusKnotGeometry.prototype.constructor = TorusKnotGeometry;
-export { TorusKnotGeometry };
+export { TorusKnotGeometry };
@@ -20,7 +20,6 @@ import { Vector2 } from '../../math/Vector2';
function TubeGeometry( path, segments, radius, radialSegments, closed, taper ) {
- this.isTubeGeometry = this.isGeometry = true;
@@ -313,4 +312,4 @@ TubeGeometry.FrenetFrames = function ( path, segments, closed ) {
-export { TubeGeometry };
+export { TubeGeometry };
@@ -6,7 +6,6 @@ import { BufferAttribute } from '../../core/BufferAttribute';
function WireframeGeometry( geometry ) {
- this.isWireframeGeometry = this.isBufferGeometry = true;
@@ -186,4 +185,4 @@ WireframeGeometry.prototype = Object.create( BufferGeometry.prototype );
WireframeGeometry.prototype.constructor = WireframeGeometry;
-export { WireframeGeometry };
+export { WireframeGeometry };
@@ -10,7 +10,6 @@ import { BufferGeometry } from '../../core/BufferGeometry';
function AxisHelper( size ) {
- this.isAxisHelper = this.isLineSegments = true;
size = size || 1;
@@ -40,4 +39,4 @@ AxisHelper.prototype = Object.create( LineSegments.prototype );
AxisHelper.prototype.constructor = AxisHelper;
-export { AxisHelper };
+export { AxisHelper };
@@ -10,7 +10,6 @@ import { Box3 } from '../../math/Box3';
// a helper to show the world-axis-aligned bounding box for an object
function BoundingBoxHelper( object, hex ) {
- this.isBoundingBoxHelper = this.isMesh = true;
var color = ( hex !== undefined ) ? hex : 0x888888;
@@ -36,4 +35,4 @@ BoundingBoxHelper.prototype.update = function () {
-export { BoundingBoxHelper };
+export { BoundingBoxHelper };
@@ -9,7 +9,6 @@ import { BufferGeometry } from '../../core/BufferGeometry';
function BoxHelper( object, color ) {
- this.isBoxHelper = this.isLineSegments = true;
if ( color === undefined ) color = 0xffff00;
@@ -91,4 +90,4 @@ BoxHelper.prototype.update = ( function () {
} )();
-export { BoxHelper };
+export { BoxHelper };
@@ -16,7 +16,6 @@ import { Geometry } from '../../core/Geometry';
function CameraHelper( camera ) {
- this.isCameraHelper = this.isLineSegments = true;
var geometry = new Geometry();
var material = new LineBasicMaterial( { color: 0xffffff, vertexColors: FaceColors } );
@@ -198,4 +197,4 @@ CameraHelper.prototype.update = function () {
}();
-export { CameraHelper };
+export { CameraHelper };
@@ -12,7 +12,6 @@ import { LineBasicMaterial } from '../../materials/LineBasicMaterial';
function DirectionalLightHelper( light, size ) {
- this.isDirectionalLightHelper = this.isObject3D = true;
@@ -87,4 +86,4 @@ DirectionalLightHelper.prototype.update = function () {
-export { DirectionalLightHelper };
+export { DirectionalLightHelper };
@@ -13,7 +13,6 @@ import { EdgesGeometry } from '../geometries/EdgesGeometry';
function EdgesHelper( object, hex, thresholdAngle ) {
- this.isEdgesHelper = this.isLineSegments = true;
var color = ( hex !== undefined ) ? hex : 0xffffff;
@@ -28,4 +27,4 @@ EdgesHelper.prototype = Object.create( LineSegments.prototype );
EdgesHelper.prototype.constructor = EdgesHelper;
-export { EdgesHelper };
+export { EdgesHelper };
@@ -11,7 +11,6 @@ import { BufferGeometry } from '../../core/BufferGeometry';
function FaceNormalsHelper( object, size, hex, linewidth ) {
- this.isFaceNormalsHelper = this.isLineSegments = true;
// FaceNormalsHelper only supports THREE.Geometry
@@ -118,4 +117,4 @@ FaceNormalsHelper.prototype.update = ( function () {
}() );
-export { FaceNormalsHelper };
+export { FaceNormalsHelper };
@@ -10,7 +10,6 @@ import { Color } from '../../math/Color';
function GridHelper( size, divisions, color1, color2 ) {
- this.isGridHelper = this.isLineSegments = true;
divisions = divisions || 1;
color1 = new Color( color1 !== undefined ? color1 : 0x444444 );
@@ -54,4 +53,4 @@ GridHelper.prototype.setColors = function () {
-export { GridHelper };
+export { GridHelper };
@@ -12,7 +12,6 @@ import { Color } from '../../math/Color';
function HemisphereLightHelper( light, sphereSize ) {
- this.isHemisphereLightHelper = this.isObject3D = true;
@@ -69,4 +68,4 @@ HemisphereLightHelper.prototype.update = function () {
-export { HemisphereLightHelper };
+export { HemisphereLightHelper };
@@ -8,7 +8,6 @@ import { SphereBufferGeometry } from '../geometries/SphereBufferGeometry';
function PointLightHelper( light, sphereSize ) {
- this.isPointLightHelper = this.isMesh = true;
this.light = light;
this.light.updateMatrixWorld();
@@ -78,4 +77,4 @@ PointLightHelper.prototype.update = function () {
-export { PointLightHelper };
+export { PointLightHelper };
@@ -14,7 +14,6 @@ import { Geometry } from '../../core/Geometry';
function SkeletonHelper( object ) {
- this.isSkeletonHelper = this.isLineSegments = true;
this.bones = this.getBoneList( object );
@@ -109,4 +108,4 @@ SkeletonHelper.prototype.update = function () {
-export { SkeletonHelper };
+export { SkeletonHelper };
@@ -12,7 +12,6 @@ import { BufferGeometry } from '../../core/BufferGeometry';
function SpotLightHelper( light ) {
- this.isSpotLightHelper = this.isObject3D = true;
@@ -89,4 +88,4 @@ SpotLightHelper.prototype.update = function () {
-export { SpotLightHelper };
+export { SpotLightHelper };
function VertexNormalsHelper( object, size, hex, linewidth ) {
- this.isVertexNormalsHelper = this.isLineSegments = true;
this.object = object;
@@ -153,4 +152,4 @@ VertexNormalsHelper.prototype.update = ( function () {
-export { VertexNormalsHelper };
+export { VertexNormalsHelper };
@@ -7,7 +7,6 @@ import { WireframeGeometry } from '../geometries/WireframeGeometry';
function WireframeHelper( object, hex ) {
- this.isWireframeHelper = this.isLineSegments = true;
@@ -22,4 +21,4 @@ WireframeHelper.prototype = Object.create( LineSegments.prototype );
WireframeHelper.prototype.constructor = WireframeHelper;
-export { WireframeHelper };
+export { WireframeHelper };
@@ -5,7 +5,6 @@ import { Object3D } from '../../core/Object3D';
function ImmediateRenderObject( material ) {
- this.isImmediateRenderObject = this.isObject3D = true;
@@ -17,5 +16,7 @@ function ImmediateRenderObject( material ) {
ImmediateRenderObject.prototype = Object.create( Object3D.prototype );
ImmediateRenderObject.prototype.constructor = ImmediateRenderObject;
+ImmediateRenderObject.prototype.isImmediateRenderObject = true;
-export { ImmediateRenderObject };
+export { ImmediateRenderObject };
@@ -6,7 +6,6 @@ import { _Math } from '../../math/Math';
function MorphBlendMesh( geometry, material ) {
- this.isMorphBlendMesh = this.isMesh = true;
Mesh.call( this, geometry, material );
@@ -319,4 +318,4 @@ MorphBlendMesh.prototype.update = function ( delta ) {
-export { MorphBlendMesh };
+export { MorphBlendMesh };
@@ -5,7 +5,6 @@ import { Light } from './Light';
function AmbientLight( color, intensity ) {
- this.isAmbientLight = true;
Light.call( this, color, intensity );
@@ -17,9 +16,11 @@ function AmbientLight( color, intensity ) {
AmbientLight.prototype = Object.assign( Object.create( Light.prototype ), {
- constructor: AmbientLight
+ constructor: AmbientLight,
+ isAmbientLight: true,
-export { AmbientLight };
+export { AmbientLight };
@@ -8,7 +8,6 @@ import { Object3D } from '../core/Object3D';
function DirectionalLight( color, intensity ) {
- this.isDirectionalLight = true;
@@ -27,6 +26,8 @@ DirectionalLight.prototype = Object.assign( Object.create( Light.prototype ), {
constructor: DirectionalLight,
+ isDirectionalLight: true,
Light.prototype.copy.call( this, source );
@@ -42,4 +43,4 @@ DirectionalLight.prototype = Object.assign( Object.create( Light.prototype ), {
-export { DirectionalLight };
+export { DirectionalLight };