Help with scale.set

hi

i want to Enlarge the size of a mesh in 150px
and i am using scale.set to do that, what is the conversion method
Because when i enter 150 as z its not like i am giving the object a size of 150px on z

and how can i get the new size after i scale.set the object ?
thanks

What kind of mesh?
I think you should rebuild geomery

Keep in mind that the unit of Object3D.position and Object3D.scale is “world units”, not pixel.

its MeshPhongMaterial

how do i rebuild the geometry ?

oh, is this mesh or material? :smile:

mesh :thinking:

Ok, what kind of geometry your mesh has?

var loader = new THREE.TextureLoader();
var geometry = new THREE.BoxGeometry(w, h, d);
var material = new THREE.MeshPhongMaterial({

	map: loader.load(fullUrl+'/style/img/walls.jpg'),
    side:THREE.DoubleSide,
   		
    }) ;

var mesh = new THREE.Mesh(
    geometry,
	material
	);

this is my code

if you want to change size of your box you have to make new Geometry with other size
var newGeom= new THREE.BoxGeometry(chahgedSize, h, d);
mesh.geometry = newGeom;

thanks, works