PS> Another question, how to get the size of an element when it is already added to the scene? Thanks!
I am using the thingiview js plugin, and I noticed that if you have an object added to the scene, you can close it in a cube using the Coordinates:
p0 = [minx, miny,minz], p1 =[minx,miny,maxz], ..., p7 =[maxx, maxy,maxz];
Where:
var minx = object.geometry.min_x; var maxz = object.geometry.max_z;
etc..
PS: I know this question is old, but I was looking for these parameters (trying to get the size of the added object), but could not find anything.
source share