language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | mrdoob | three.js | 01852d283b95a56e9c930c3db35fc06f346975f4.json | add some improvements to frustum | build/custom/ThreeCanvas.js | @@ -959,13 +959,17 @@ THREE.Frustum.prototype.setFromMatrix = function ( m ) {
var i, plane,
planes = this.planes;
var me = m.elements;
-
- planes[ 0 ].set( me[3] - me[0], me[7] - me[4], me[11] - me[8], me[15] - me[12] );
- planes[ 1 ].set( me[3] + me[0], me[7] + me[4], me[11] + me[8], me[15] + me[12] );
- pla... | true |
Other | mrdoob | three.js | 01852d283b95a56e9c930c3db35fc06f346975f4.json | add some improvements to frustum | build/custom/ThreeDOM.js | @@ -959,13 +959,17 @@ THREE.Frustum.prototype.setFromMatrix = function ( m ) {
var i, plane,
planes = this.planes;
var me = m.elements;
-
- planes[ 0 ].set( me[3] - me[0], me[7] - me[4], me[11] - me[8], me[15] - me[12] );
- planes[ 1 ].set( me[3] + me[0], me[7] + me[4], me[11] + me[8], me[15] + me[12] );
- pla... | true |
Other | mrdoob | three.js | 01852d283b95a56e9c930c3db35fc06f346975f4.json | add some improvements to frustum | build/custom/ThreeSVG.js | @@ -959,13 +959,17 @@ THREE.Frustum.prototype.setFromMatrix = function ( m ) {
var i, plane,
planes = this.planes;
var me = m.elements;
-
- planes[ 0 ].set( me[3] - me[0], me[7] - me[4], me[11] - me[8], me[15] - me[12] );
- planes[ 1 ].set( me[3] + me[0], me[7] + me[4], me[11] + me[8], me[15] + me[12] );
- pla... | true |
Other | mrdoob | three.js | 01852d283b95a56e9c930c3db35fc06f346975f4.json | add some improvements to frustum | build/custom/ThreeWebGL.js | @@ -959,13 +959,17 @@ THREE.Frustum.prototype.setFromMatrix = function ( m ) {
var i, plane,
planes = this.planes;
var me = m.elements;
-
- planes[ 0 ].set( me[3] - me[0], me[7] - me[4], me[11] - me[8], me[15] - me[12] );
- planes[ 1 ].set( me[3] + me[0], me[7] + me[4], me[11] + me[8], me[15] + me[12] );
- pla... | true |
Other | mrdoob | three.js | 01852d283b95a56e9c930c3db35fc06f346975f4.json | add some improvements to frustum | src/core/Frustum.js | @@ -23,13 +23,17 @@ THREE.Frustum.prototype.setFromMatrix = function ( m ) {
var i, plane,
planes = this.planes;
var me = m.elements;
-
- planes[ 0 ].set( me[3] - me[0], me[7] - me[4], me[11] - me[8], me[15] - me[12] );
- planes[ 1 ].set( me[3] + me[0], me[7] + me[4], me[11] + me[8], me[15] + me[12] );
- plane... | true |
Other | mrdoob | three.js | 01852d283b95a56e9c930c3db35fc06f346975f4.json | add some improvements to frustum | src/core/Matrix4.js | @@ -9,6 +9,7 @@
* @author timknip / http://www.floorplanner.com/
*/
+
THREE.Matrix4 = function ( n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44 ) {
this.elements = new Float32Array(16); | true |
Other | mrdoob | three.js | 902e31621eaa0e3567942eec57be79529a70850a.json | TrackballCamera first version, rotation only | src/extras/cameras/TrackballCamera.js | @@ -0,0 +1,199 @@
+/**
+ * @author Eberhard Gräther / http://egraether.com/
+
+ * parameters = {
+ * fov: <float>,
+ * aspect: <float>,
+ * near: <float>,
+ * far: <float>,
+ * target: <THREE.Object3D>,
+
+ * radius: <float>,
+
+ * zoomSpeed: <float>,
+ * panSpeed: <float>,
+
+ * noZoom: <bool>,
+ * noPan: <bool>,
+
+ ... | false |
Other | mrdoob | three.js | d9379fc8a5034efd664c8dfd7e9ce39a98dd85ef.json | condense uvgen as suggested by @AnthorNet in #1811 | src/extras/geometries/ExtrudeGeometry.js | @@ -88,7 +88,9 @@ THREE.ExtrudeGeometry.prototype.addShape = function( shape, options ) {
var material = options.material;
var extrudeMaterial = options.extrudeMaterial;
- var uvGenerator = options.uvGenerator || null;
+
+ // Use default WorldUVGenerator if no UV generators are specified.
+ var uvgen = options.UV... | false |
Other | mrdoob | three.js | 24dcc76bf73d0af5cc25ce2586b44e1301ce0e91.json | fix subdivision example | examples/webgl_geometry_subdivison.html | @@ -406,10 +406,6 @@
group.rotation.x = cube.rotation.x += ( targetXRotation - cube.rotation.x ) * 0.05;
group.rotation.y = cube.rotation.y += ( targetYRotation - cube.rotation.y ) * 0.05;
- cube.updateMatrixWorld();
- group.updateMatrixWorld();
-
-
renderer.render( scene, camera );
... | false |
Other | mrdoob | three.js | ed7fcf7cb357e4bdb3ea3e886ee3886bb77b8851.json | Update Subdivision model loading | examples/webgl_geometry_subdivison.html | @@ -73,14 +73,7 @@
}
- var loader = new THREE.JSONLoader();
- loader.load( 'obj/WaltHeadLo.js', function ( geometry ) {
-
- THREE.WaltHead = function() {
- return geometry;
- };
-
- } );
+
var geometriesParams = [
@@ -96,10 +89,24 @@
font: "helvetiker"
}]},
-... | false |
Other | mrdoob | three.js | b11e805560f6f10de27ee46c21505ca22fb31f0c.json | add degreesToRadians / radiansToDegrees to Math. | src/math/Math.js | @@ -67,4 +67,20 @@ THREE.Math = {
}
+ degreesToRadians: function( degrees ) {
+
+ return degrees * THREE.Math.__d2r;
+
+ };
+
+ radiansToDegrees: function( radians ) {
+
+ return radians * THREE.Math.__r2d;
+
+ };
+
+
};
+
+THREE.Math.__d2r = Math.PI / 180;
+THREE.Math.__r2d = 180 / Math.PI; | false |
Other | mrdoob | three.js | e4c0c6878dc857ad19c8e9fde5f1615aa48e6883.json | Remove .getNormalVector() from Curve.js | src/extras/core/Curve.js | @@ -1,7 +1,7 @@
/**
* @author zz85 / http://www.lab4games.net/zz85/blog
* Extensible curve object
- *
+ *
* Some common of Curve methods
* .getPoint(t), getTangent(t)
* .getPointAt(u), getTagentAt(u)
@@ -110,8 +110,8 @@ THREE.Curve.prototype.getLengths = function ( divisions ) {
if ( !divisions ) divisi... | false |
Other | mrdoob | three.js | 49cdafe26e9b38410def197126b0b4bf3c16b957.json | integrate Sphere class into Raycaster | src/core/Raycaster.js | @@ -12,6 +12,8 @@
};
+ var sphere = new THREE.Sphere();
+
var originCopy = new THREE.Vector3();
var localOriginCopy = new THREE.Vector3();
@@ -76,15 +78,12 @@
} else if ( object instanceof THREE.Mesh ) {
- // Checking boundingSphere
-
- var scaledRadius = object.geometry.boundingSphere.radius * o... | false |
Other | mrdoob | three.js | d782e3a17e3c0bff7151e5270aefd8ea1151bbfd.json | adopt Box3 in BufferGeometry. | src/core/BufferGeometry.js | @@ -71,12 +71,7 @@ THREE.BufferGeometry.prototype = {
if ( ! this.boundingBox ) {
- this.boundingBox = {
-
- min: new THREE.Vector3( Infinity, Infinity, Infinity ),
- max: new THREE.Vector3( -Infinity, -Infinity, -Infinity )
-
- };
+ this.boundingBox = new THREE.Box3();
}
@@ -140,7 +135,9 @@ T... | false |
Other | mrdoob | three.js | b83d79b7592fd79426cf72b49dc7a69e7d09cd9a.json | remove GC from Ray.distanceToPoint | src/math/Ray.js | @@ -57,10 +57,10 @@ THREE.Ray.prototype = {
distanceToPoint: function ( point ) {
- // NOTE: this creates a THREE.VEctor3 internally via closestPointToPoint
- // that is never returned, can be further GC optimized
+ var directionDistance = THREE.Ray.__v1.sub( point, this.origin ).dot( this.direction );
+ TH... | false |
Other | mrdoob | three.js | 135a3d35d886cf7cd16369e9644105bfb90e3585.json | add some docs for extras/core | doc/api/extras/core/Curve.rst | @@ -0,0 +1,7 @@
+Curve - Extensible curve object
+------------------------
+
+.. js:class:: Curve()
+
+ Extensible curve object
+
\ No newline at end of file | true |
Other | mrdoob | three.js | 135a3d35d886cf7cd16369e9644105bfb90e3585.json | add some docs for extras/core | doc/api/extras/core/CurvePath.rst | @@ -0,0 +1,7 @@
+CurvePath - Path with connected curves
+------------------------
+
+.. js:class:: CurvePath()
+
+ A Path made with connected set of curves
+
\ No newline at end of file | true |
Other | mrdoob | three.js | 135a3d35d886cf7cd16369e9644105bfb90e3585.json | add some docs for extras/core | doc/api/extras/core/Path.rst | @@ -0,0 +1,7 @@
+Path - A CurvePath with a Drawing API
+------------------------
+
+.. js:class:: Path()
+
+ A CurvePath with convenience Drawing methods
+
\ No newline at end of file | true |
Other | mrdoob | three.js | 135a3d35d886cf7cd16369e9644105bfb90e3585.json | add some docs for extras/core | doc/api/extras/core/Shape.rst | @@ -0,0 +1,7 @@
+Shape - A closed 2d path with holes
+------------------------
+
+.. js:class:: Shape()
+
+ A closed 2d Path with holes
+
\ No newline at end of file | true |
Other | mrdoob | three.js | 135a3d35d886cf7cd16369e9644105bfb90e3585.json | add some docs for extras/core | doc/api/extras/core/TextPath.rst | @@ -0,0 +1,7 @@
+TextPath - Class for turning Text to Shapes
+------------------------
+
+.. js:class:: TextPath()
+
+ Class for turning Text to Shapes
+
\ No newline at end of file | true |
Other | mrdoob | three.js | 135a3d35d886cf7cd16369e9644105bfb90e3585.json | add some docs for extras/core | doc/api/extras/core/index.rst | @@ -0,0 +1,9 @@
+Core Classes
+============
+
+.. toctree::
+ Curve
+ CurvePath
+ Path
+ Shape
+ TextPath
\ No newline at end of file | true |
Other | mrdoob | three.js | 135a3d35d886cf7cd16369e9644105bfb90e3585.json | add some docs for extras/core | src/extras/core/CurvePath.js | @@ -12,7 +12,8 @@ THREE.CurvePath = function () {
this.curves = [];
this.bends = [];
-
+
+ this.autoClose = false; // Automatically closes the path
};
THREE.CurvePath.prototype = new THREE.Curve();
@@ -25,13 +26,22 @@ THREE.CurvePath.prototype.add = function ( curve ) {
};
THREE.CurvePath.prototype.check... | true |
Other | mrdoob | three.js | ff23c44179a82db4e95e3ca139479a43fda94497.json | fix Path.js again | src/extras/core/Path.js | @@ -330,7 +330,6 @@ THREE.Path.prototype.getPoints = function( divisions, closedPath ) {
var deltaAngle = aEndAngle - aStartAngle;
var angle;
var tdivisions = divisions * 2;
- var t;
for ( j = 1; j <= tdivisions; j ++ ) {
@@ -558,21 +557,20 @@ THREE.Path.prototype.toShapes = function() {
if ( ... | false |
Other | mrdoob | three.js | 228ddebb885247f2ae7755869e63e534370776c9.json | update Spark.js and Tween.js libraries | examples/js/Sparks.js | @@ -17,7 +17,6 @@ var SPARKS = {};
* Creates and Manages Particles
*********************************/
-
SPARKS.Emitter = function (counter) {
this._counter = counter ? counter : new SPARKS.SteadyCounter(10); // provides number of particles to produce
@@ -41,6 +40,7 @@ SPARKS.Emitter.prototype = {
_t... | true |
Other | mrdoob | three.js | 228ddebb885247f2ae7755869e63e534370776c9.json | update Spark.js and Tween.js libraries | examples/js/Tween.js | @@ -1,12 +1,13 @@
-// tween.js r2 - http://github.com/sole/tween.js
-var TWEEN=TWEEN||function(){var a,e,c,d,f=[];return{start:function(g){c=setInterval(this.update,1E3/(g||60))},stop:function(){clearInterval(c)},add:function(g){f.push(g)},getAll:function(){return f},removeAll:function(){f=[]},remove:function(g){a=f.in... | true |
Other | mrdoob | three.js | 8bebe3e184bef7af700ef76a77d1d2dd1e71f85f.json | Fix single subpath bug | src/extras/core/Path.js | @@ -42,7 +42,9 @@ THREE.Path.prototype.fromPoints = function ( vectors ) {
this.moveTo( vectors[ 0 ].x, vectors[ 0 ].y );
- for ( var v = 1, vlen = vectors.length; v < vlen; v ++ ) {
+ var v, vlen = vectors.length;
+
+ for ( v = 1; v < vlen; v++ ) {
this.lineTo( vectors[ v ].x, vectors[ v ].y );
@@ -121,9 ... | false |
Other | mrdoob | three.js | b3f1af8364aa73242c9edc7bf2570dbce2ff5446.json | remove local used in debugging | utils/exporters/obj/convert_obj_three.py | @@ -557,8 +557,7 @@ def parse_obj(fname):
if vertex['n'] < 0:
vertex['n'] += normlen
normal_index.append(vertex['n'])
-
- d = {
+ faces.append({
'vertex':vertex_index,
'... | false |
Other | mrdoob | three.js | f58c4167cdb51cebc6d74e9f41d46b8d6c638bda.json | allow negative vertex indices for obj model format | utils/exporters/obj/convert_obj_three.py | @@ -536,16 +536,29 @@ def parse_obj(fname):
uv_index = []
normal_index = []
+
+ # Precompute vert / normal / uv lists
+ # for negative index lookup
+ vertlen = len(vertices) + 1
+ normlen = len(normals) + 1
+... | false |
Other | mrdoob | three.js | e1ad0a648186dc94280877534ae4925f7cfac382.json | fix broken segments in TubeGeometry | src/extras/geometries/TubeGeometry.js | @@ -42,7 +42,7 @@ THREE.TubeGeometry = function(radius, segments, segmentsRadius, path, debug) {
this.grid[i] = new Array(this.segmentsRadius);
- u = i / this.segments;
+ u = i / ( this.segments - 1 );
var pos = this.path.getPointAt(u);
tang = this.path.getTangentAt(u);
@@ -69,35 +69,35 @@ THREE.TubeGe... | false |
Other | mrdoob | three.js | 01d8572207d3a624b747652e717ef4db0431bc3e.json | fix subdivision example | examples/webgl_geometry_subdivison.html | @@ -406,10 +406,6 @@
group.rotation.x = cube.rotation.x += ( targetXRotation - cube.rotation.x ) * 0.05;
group.rotation.y = cube.rotation.y += ( targetYRotation - cube.rotation.y ) * 0.05;
- cube.updateMatrixWorld();
- group.updateMatrixWorld();
-
-
renderer.render( scene, camera );
... | false |
Other | mrdoob | three.js | ed3cb6613cd63e9c5a5a33235d8e4d5a6e492a9d.json | Update Subdivision model loading | examples/webgl_geometry_subdivison.html | @@ -73,14 +73,7 @@
}
- var loader = new THREE.JSONLoader();
- loader.load( 'obj/WaltHeadLo.js', function ( geometry ) {
-
- THREE.WaltHead = function() {
- return geometry;
- };
-
- } );
+
var geometriesParams = [
@@ -96,10 +89,24 @@
font: "helvetiker"
}]},
-... | false |
Other | mrdoob | three.js | 6e6f2453a11ea43c61a7e75207e37288dd816cec.json | change voxelpainter to use THREE.CombinedCamera | examples/webgl_interactive_voxelpainter.html | @@ -31,7 +31,7 @@
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
var container, stats;
- var camera, cameraTarget, cameraPerspective, cameraOrtho, scene, renderer;
+ var camera, cameraTarget, scene, renderer;
var projector, plane, cube;
var mouse2D, mouse3D, ray,
rollOveredFace, isShif... | false |
Other | mrdoob | three.js | e645a562b07823b87e1d498f237f81c453803f6a.json | update voxelpainter to use projector pickingRay() | examples/webgl_interactive_voxelpainter.html | @@ -22,13 +22,16 @@
<script src="js/Detector.js"></script>
<script src="js/RequestAnimationFrame.js"></script>
<script src="js/Stats.js"></script>
+
+ <link href="js/gui/gui.css" media="screen" rel="stylesheet" type="text/css" />
+ <script src="js/gui/gui.min.js"></script>
<script>
if ( ! Detect... | false |
Other | mrdoob | three.js | bc27e18424abe3e5fe24a0d4701806b5cf4fc9a0.json | add pickingRay method | src/core/Projector.js | @@ -36,39 +36,34 @@ THREE.Projector = function() {
this.projectVector = function ( vector, camera ) {
- _projScreenMatrix.multiply( camera.projectionMatrix, camera.matrixWorldInverse );
+ _projScreenMatrix.multiply( camera.projectionMatrix, camera.matrixWorldInverse );
_projScreenMatrix.multiplyVecto... | false |
Other | mrdoob | three.js | c1e9cb77ea715138494a9164cd93640ccc75b178.json | Fix CubeGeometry faces inversion. | examples/webgl_geometry_minecraft.html | @@ -127,10 +127,10 @@
h = getY( x, z );
- h2 = getY( x - 1, z );
+ h2 = getY( x + 1, z );
px = ( h2 != h && h2 != h + 1 ) || x == 0 ? 1 : 0;
- h2 = getY( x + 1, z );
+ h2 = getY( x - 1, z );
nx = ( h2 != h && h2 != h + 1 ) || x == worldWidth - 1 ? 1 : 0;
h2 = getY... | true |
Other | mrdoob | three.js | c1e9cb77ea715138494a9164cd93640ccc75b178.json | Fix CubeGeometry faces inversion. | examples/webgl_geometry_minecraft_ao.html | @@ -364,8 +364,8 @@
px = nx = pz = nz = 0;
- px = !nleft || x == 0 ? 1 : 0;
- nx = !nright || x == worldWidth - 1 ? 1 : 0;
+ px = !nright || x == 0 ? 1 : 0;
+ nx = !nleft || x == worldWidth - 1 ? 1 : 0;
pz = !nback || z == worldDepth - 1 ? 1 : 0;
nz = !nfront || z == 0 ... | true |
Other | mrdoob | three.js | c1e9cb77ea715138494a9164cd93640ccc75b178.json | Fix CubeGeometry faces inversion. | src/extras/geometries/CubeGeometry.js | @@ -53,8 +53,8 @@ THREE.CubeGeometry = function ( width, height, depth, segmentsWidth, segmentsHei
}
- this.sides.px && buildPlane( 'z', 'y', 1 * flip, - 1, depth, height, - width_half, this.materials[ 0 ] ); // px
- this.sides.nx && buildPlane( 'z', 'y', - 1 * flip, - 1, depth, height, width_half, this.materia... | true |
Other | mrdoob | three.js | f66a6f547cee55e053d82892829ecea613b67160.json | remove some old code | src/extras/geometries/TextGeometry.js | @@ -19,7 +19,8 @@
* bevelThickness: <float>, // how deep into text bevel goes
* bevelSize: <float>, // how far from text outline is bevel
*
- * bend: <bool> // bend according to hardcoded curve (for the moment)
+ * bend: <bool> // bend according to hardcoded curve (generates bendPath)
+ * bendPa... | false |
Other | mrdoob | three.js | 6d6924a621dac2b4780013aa45bcf38aba6f5718.json | Add bend to webgl text example | examples/webgl_geometry_text.html | @@ -33,6 +33,7 @@
<span class="button" id="font">change font</span>,
<span class="button" id="weight">change weight</span>,
<span class="button" id="bevel">change bevel</span>,
+ <span class="button" id="bend">bend!</span>,
<span class="button" id="postprocessing">change postprocessing</span>,
<a ... | true |
Other | mrdoob | three.js | 6d6924a621dac2b4780013aa45bcf38aba6f5718.json | Add bend to webgl text example | src/extras/geometries/Curve.js | @@ -200,13 +200,51 @@ THREE.Curve.prototype.getUtoTmapping = function ( u, distance ) {
};
+// In case any sub curves does not implements its normal finding,
+// we get 2 points with a small delta, and find a gradient of the 2 pts
+// makes an ok approximation
+
+THREE.Curve.prototype.getNormalVector = function(... | true |
Other | mrdoob | three.js | 6d6924a621dac2b4780013aa45bcf38aba6f5718.json | Add bend to webgl text example | src/extras/geometries/ExtrudeGeometry.js | @@ -100,7 +100,10 @@ THREE.ExtrudeGeometry.prototype.addShape = function( shape, options ) {
var shapesOffset = this.vertices.length;
var shapePoints = shape.extractAllPoints( curveSegments ); // use shape.extractAllSpacedPoints( curveSegments ) for points with equal divisions
- shapePoints = shape.extractAllPoin... | true |
Other | mrdoob | three.js | 6d6924a621dac2b4780013aa45bcf38aba6f5718.json | Add bend to webgl text example | src/extras/geometries/Path.js | @@ -514,31 +514,17 @@ THREE.Path.prototype.createGeometry = function( points ) {
// ALL THINGS BELOW TO BE REFACTORED
// QN: Transform final pts or transform ACTIONS or add transform filters?
-// FUTURE refactor path = an array of lines -> straight, bezier, splines, arc, funcexpr lines
// Read http://www.planetcle... | true |
Other | mrdoob | three.js | 6d6924a621dac2b4780013aa45bcf38aba6f5718.json | Add bend to webgl text example | src/extras/geometries/TextGeometry.js | @@ -50,12 +50,34 @@ THREE.TextGeometry = function ( text, parameters ) {
if ( parameters.bevelSize === undefined ) parameters.bevelSize = 8;
if ( parameters.bevelEnabled === undefined ) parameters.bevelEnabled = false;
+ if ( parameters.bend ) {
+
+ var b = textShapes[textShapes.length-1].getBoundingBox();
+ ... | true |
Other | mrdoob | three.js | 92bb07914581f7ac33f2378eee88ce034dda39a4.json | Add readme for blender plugin | utils/exporters/blender/README.md | @@ -0,0 +1,31 @@
+# Three.js Blender Import/Export
+
+Imports and exports Three.js' ASCII JSON format.
+
+Assumes Blender version 2.60.
+
+## Installation
+
+Copy the io_mesh_threejs folder to the scripts/addons folder. The full path is OS-dependent (see below).
+
+Once that is done, you need to activate the plugin. Op... | false |
Other | mrdoob | three.js | c8aacd8cdc98c69cf11281fbc86c18a9dd9c7113.json | Add Color methods to prototype object. | src/core/Color.js | @@ -9,16 +9,22 @@ THREE.Color = function ( hex ) {
this.hex;
this.__styleString = 'rgba(0, 0, 0, 1)';
*/
+
+ this.setHex( hex );
+
+}
- this.setHex = function ( hex ) {
+THREE.Color.prototype = {
+
+ setHex: function ( hex ) {
this.hex = hex;
this.updateRGBA();
this.updateStyleString();
- };
... | false |
Other | mrdoob | three.js | f0f3483f91e09ac35763400c62b1ab4ebf86fc5e.json | Remove useless alert. | examples/performance-test.html | @@ -15,8 +15,7 @@
<script type="text/javascript" src="../src/core/Matrix4.old.js"></script>
<script type="text/javascript">
function initTest() {
- alert("hello");
- var times = 50000;
+ var times = 5000000;
//Vector2
console.time("Vector2 x " + times);
for( var i = 0;... | false |
Other | mrdoob | three.js | 578013ac202aa3b28d25c4378018acd077ce5ed8.json | handle case when weights are zero | src/objects/SkinnedMesh.js | @@ -109,7 +109,7 @@ THREE.SkinnedMesh.prototype.normalizeSkinWeights = function () {
} else {
- // do nothing
+ sw.set( 1, 0, 0, 0 ); // do something reasonable
}
@@ -136,7 +136,7 @@ THREE.SkinnedMesh.prototype.normalizeSkinWeights = function () {
} else {
- // do nothing
+ vec.set( ... | false |
Other | mrdoob | three.js | e3d2617108dbf05ab359f91a5b81cfea038c513d.json | Add test for ClosedSplineCurve3 | test/unit/extras/curves/ClosedSplineCurve3.js | @@ -0,0 +1,51 @@
+/**
+ * @author zz85 / http://joshuakoo.com
+ */
+
+module( "ClosedSplineCurve3" );
+
+function vectorsAreEqual( check, that ) {
+
+ if ( check.length !== that.length ) return 'Length not equal';
+
+ for ( var i = 0; i < check.length; i ++ ) {
+
+ if ( ! check[ i ] .equals( that[ i ] ) ) {
+
+ retu... | true |
Other | mrdoob | three.js | e3d2617108dbf05ab359f91a5b81cfea038c513d.json | Add test for ClosedSplineCurve3 | test/unit/unittests_sources.html | @@ -33,6 +33,10 @@
<script src="../../src/math/Triangle.js"></script>
<script src="../../src/math/Interpolant.js"></script>
+ <script src="../../src/extras/core/Curve.js"></script>
+ <script src="../../src/extras/CurveUtils.js"></script>
+ <script src="../../src/extras/curves/ClosedSplineCurve3.js"></script>... | true |
Other | mrdoob | three.js | 7aa62714fb08c9956461defdcf225e6dd1a3e381.json | Fix closed curves and clean up | examples/webgl_geometry_shapes.html | @@ -48,7 +48,7 @@
info.style.top = '10px';
info.style.width = '100%';
info.style.textAlign = 'center';
- info.innerHTML = 'Simple procedurally generated 3D shapes<br/>Drag to spin';
+ info.innerHTML = 'Simple procedurally-generated shapes<br/>Drag to spin';
container.appendChild( info );
... | false |
Other | mrdoob | three.js | 91b492bd33465ca22fac8064b7ae1ef0b9fa6afe.json | Add raytracing_sandbox_workers to examples index | examples/index.html | @@ -475,7 +475,8 @@ <h1><a href="http://threejs.org">three.js</a> / examples</h1>
"canvas_sandbox"
],
"raytracing": [
- "raytracing_sandbox"
+ "raytracing_sandbox",
+ "raytracing_sandbox_workers"
],
"software": [
"software_geometry_earth", | false |
Other | mrdoob | three.js | 0b8e3281ded386a81d5121d94ef1d8fd75a6a041.json | add removed tests | test/unit/unittests_three.html | @@ -27,6 +27,10 @@
<script src="core/InterleavedBuffer.js"></script>
<script src="core/InterleavedBufferAttribute.js"></script>
+ <script src="core/Raycaster.js"></script>
+ <script src="core/Face3.js"></script>
+ <script src="core/Geometry.js"></script>
+
<script src="core/BufferAttribute.js"></script>
... | false |
Other | mrdoob | three.js | f2c466b819b5d2c616265106b3b2af6bf4214fa6.json | remove lodash from html | test/unit/unittests_three.html | @@ -7,7 +7,6 @@
</head>
<body>
<div id="qunit"></div>
- <script src="../../node_modules/lodash/index.js"></script>
<script src="qunit-1.18.0.js"></script>
<script src="qunit-utils.js"></script>
<script src="SmartComparer.js"></script> | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.