WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-27-2011, 11:35 AM
Aweless Aweless is offline
Member
 
Join Date: May 2011
Posts: 3
Setting the origin of a object to an object's center

In short I've loaded a square into vizard (.dae). The square's origin is not in the center of the square, but in it's top left hand corner. This is because of when it was exported that corner of the square was at the origin of the viewport. Is there a way for me to determine the center of the square in vizard and relocate it's origin to it's center? Pretty I just to fix this so when I move or rotate the object it move with respect to it's center.


I included a jpg displaying my problem. I am aware if I re-export the square realigned it will fix the problem, but I can't for various reasons.
Attached Thumbnails
Click image for larger version

Name:	problem.jpg
Views:	401
Size:	6.0 KB
ID:	434  
Reply With Quote
  #2  
Old 06-28-2011, 12:57 AM
sleiN13 sleiN13 is offline
Member
 
Join Date: Dec 2008
Posts: 83
If it is a square alignes with the axis getBoundingBox() might do.

Just get the box.size and do a translation of half the width, height and depth and you should be oke
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move a text object and its children text objects as a whole knightgba Vizard 2 08-24-2010 10:21 AM
retrieve Object names Geoffrey Vizard 11 12-11-2009 04:26 AM
Lightwave objects rotation problem hosier Vizard 6 02-13-2009 12:04 PM
Positioning objects: center johannes2 Vizard 2 02-12-2008 02:56 AM
Center Viewport on Object (5DT Glove) bjgold Vizard 3 07-25-2006 03:22 PM


All times are GMT -7. The time now is 03:40 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC