Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to scale a object to 120%? #728

Closed
namiwang opened this issue Nov 6, 2011 · 5 comments
Closed

How to scale a object to 120%? #728

namiwang opened this issue Nov 6, 2011 · 5 comments
Labels

Comments

@namiwang
Copy link

namiwang commented Nov 6, 2011

I've got an object by:

planeWall = new THREE.Mesh(new THREE.PlaneGeometry(10,5,1,1), material);

Then I want to make it bigger, say, 20%
so I tried:

planeWall.geometry = new THREE.PlaneGeometry(12,6,1,1);

but failed,debugger says:

TypeError: Cannot read property 'radius' of null

Is there anyone has some experience for this?

@jbovatsek
Copy link

planeWall.scale.set(12,6,1);

@namiwang
Copy link
Author

namiwang commented Nov 6, 2011

thanks,got it,
but it should be plane.scale.set(1.2,1.2,1), right?

@namiwang namiwang closed this as completed Nov 6, 2011
@mrdoob
Copy link
Owner

mrdoob commented Nov 6, 2011

@JacobBovatsek's solution would imply having new THREE.PlaneGeometry(1,1,1,1).

@tmdeft
Copy link

tmdeft commented May 16, 2015

why not work ? planeWall.scale.set(-5,-5,-5);

@WestLangley
Copy link
Collaborator

@tmdeft three.js does not support negative scale factors. See http://stackoverflow.com/search?q=%5Bthree.js%5D+support+negative+scale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants