提交 34f604d9 编写于 作者: M Mr.doob

Updated builds.

上级 fe7167c7
......@@ -9315,6 +9315,9 @@ THREE.BufferGeometry.prototype = {
box.center( center );
// hoping to find a boundingSphere with a radius smaller than the
// boundingSphere of the boundingBox: sqrt(3) smaller in the best case
var maxRadiusSq = 0;
for ( var i = 0, il = positions.length; i < il; i += 3 ) {
......@@ -16886,7 +16889,13 @@ THREE.CanvasRenderer = function ( parameters ) {
this.setViewport = function ( x, y, width, height ) {
_context.setTransform( width / _canvasWidth, 0, 0, - height / _canvasHeight, x, _canvasHeight - y );
var viewportX = x * this.devicePixelRatio;
var viewportY = y * this.devicePixelRatio;
var viewportWidth = width * this.devicePixelRatio;
var viewportHeight = height * this.devicePixelRatio;
_context.setTransform( viewportWidth / _canvasWidth, 0, 0, - viewportHeight / _canvasHeight, viewportX, _canvasHeight - viewportY );
_context.translate( _canvasWidthHalf, _canvasHeightHalf );
};
......@@ -31017,6 +31026,7 @@ THREE.Shape.Utils = {
}
var minShapeIndex = 0;
var counter = indepHoles.length * 2;
while ( indepHoles.length > 0 ) {
counter --;
......@@ -31027,7 +31037,7 @@ THREE.Shape.Utils = {
// search for shape-vertex and hole-vertex,
// which can be connected without intersections
for ( shapeIndex = 0; shapeIndex < shape.length; shapeIndex++ ) {
for ( shapeIndex = minShapeIndex; shapeIndex < shape.length; shapeIndex++ ) {
shapePt = shape[ shapeIndex ];
holeIndex = -1;
......@@ -31057,6 +31067,8 @@ THREE.Shape.Utils = {
shape = tmpShape1.concat( tmpHole1 ).concat( tmpHole2 ).concat( tmpShape2 );
minShapeIndex = shapeIndex;
// Debug only, to show the selected cuts
// glob_CutLines.push( [ shapePt, holePt ] );
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册