Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
f212dcd4
Commit
f212dcd4
authored
May 24, 2017
by
amandaghassaei
Browse files
small changes
parent
279baaeb
Changes
2
Show whitespace changes
Inline
Side-by-side
dependencies/TrackballControls.js
View file @
f212dcd4
...
...
@@ -31,7 +31,7 @@ THREE.TrackballControls = function ( object, domElement ) {
this
.
dynamicDampingFactor
=
0.2
;
this
.
minDistance
=
0
;
this
.
maxDistance
=
Infinity
;
this
.
maxDistance
=
400
;
this
.
keys
=
[
65
/*A*/
,
83
/*S*/
,
68
/*D*/
];
...
...
@@ -217,7 +217,6 @@ THREE.TrackballControls = function ( object, domElement ) {
factor
=
1.0
+
(
_zoomEnd
.
y
-
_zoomStart
.
y
)
*
_this
.
zoomSpeed
;
if
(
factor
!==
1.0
&&
factor
>
0.0
)
{
_eye
.
multiplyScalar
(
factor
);
}
...
...
js/threeView.js
View file @
f212dcd4
...
...
@@ -7,7 +7,7 @@ function initThreeView(globals) {
var
scene
=
new
THREE
.
Scene
();
var
modelWrapper
=
new
THREE
.
Object3D
();
var
camera
=
new
THREE
.
PerspectiveCamera
(
70
,
window
.
innerWidth
/
window
.
innerHeight
,
0.1
,
1
00
);
var
camera
=
new
THREE
.
PerspectiveCamera
(
70
,
window
.
innerWidth
/
window
.
innerHeight
,
0.1
,
5
00
);
// var camera = new THREE.OrthographicCamera(window.innerWidth / -2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / -2, -10000, 10000);//-40, 40);
var
renderer
=
new
THREE
.
WebGLRenderer
({
antialias
:
true
});
var
svgRenderer
=
new
THREE
.
SVGRenderer
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment