WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Adjusting the centre of an object (https://forum.worldviz.com/showthread.php?t=4648)

javadi 06-19-2013 04:24 PM

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

Jeff 06-20-2013 12:59 PM

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?

javadi 06-20-2013 01:15 PM

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

Jeff 06-21-2013 04:29 PM

The fastest way would be to use modeling software like SketchUp to move the object to the origin and re-export.

javadi 06-21-2013 05:26 PM

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