Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - 3D Selection Box

Author
Message
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 10th Jul 2011 23:50
This is a simple function I developed for a project I’m working on. Funny, didn’t seem simple when I was trying to figure it out. This function will put a selection box around a selected object, regardless of the objects position, rotation or offset. I am working with loaded models in my program. So the biggest hurdle was correcting for the models center position. Anyway I thought this might be useful to others, so I decided to share.



btw - This is my first code snippet. Hope someone may find it useful.

Brian.
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 11th Jul 2011 19:03 Edited at: 11th Jul 2011 19:03
Aye, it works. But:

show object bounds works too.

Good first snippet though.

WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 12th Jul 2011 00:06 Edited at: 12th Jul 2011 00:10
Quote: "show object bounds works too."


Tried that, would be nice if it worked. All I got was a sphere around my objects. Tried several commands, to get it to work, with no luck.

Ok, Didn't notice the box only flag. Thanks.

Brian.
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 12th Jul 2011 00:25
boy, I wish I would of seen that box only flag before I went though all that.lol

Brian.

Login to post a reply

Server time is: 2024-04-19 22:59:41
Your offset time is: 2024-04-19 22:59:41