Adjusting the centre of an object
Hi,
I have a set of .dae files, each containing one object. The objects are not centred in the files. I am wondering whether there is any way to centre the objects in Vizard using programming? More details... I want to create a grid of objects and I need to put them exactly at the nodes. I used .getPosition() method to look at the position of the object within the .dae files, but it always reports [0, 0, 0]. I used .center method as well. It doesn't make sense though, as this method is also based on the origin of the .dae file, rather the object in it. Any suggestion would be highly appreciated. Very many thanks. Greetings Amir |
The center method will move the objects pivot point. Do you know the offset from the origin for these objects? Is the object you are trying to position a subpart of a larger model?
|
Hi,
Thanks for your reply. I don't know the offset value. The objects are some random stuff like, a computer, a chair, a toy... that I need to put them on a grid. But they have to be centred. Cheers Amir |
The fastest way would be to use modeling software like SketchUp to move the object to the origin and re-export.
|
Dear Jeff
Thanks for your reply. OK. I'll handle it manually. Greetings Amir |
All times are GMT -7. The time now is 07:10 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC