Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Java 3D / December 2004

Tip: Looking for answers? Try searching our database.

BoundingBoxes and Coordinates

Thread view: 
Christian Welzel - 10 Dec 2004 20:32 GMT
Hi people !

I have written a piece of code to build my own BoundingBoxes because the
autogenerated BoundingSpheres are to big for my needs. that code traverses
the Scenegraph until it reaches a shape3d and then collects all Points in
all geometries. Then it calculates the Box' upper and lower points and sets
the BoundingBox for that Shape3D and returns it. In the Group level the
codes collects all lower BoundingBoxes and make a new one for that Group
by calling BoundingBox(Bounds[]).
Does that contructor respect TransformGroups in between ?
Or have i to transform the returned BoundingBoxes in some way ?
In which coordinate system have the BoundingBoxes to be calculated in ?

Signature

MfG, Christian Welzel aka Gawain@Regenbogen

 GPG-Key:     http://www.camlann.de/key.asc
 Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15

Andre Bonin - 11 Dec 2004 03:22 GMT
> Hi people !
>
[quoted text clipped - 8 lines]
> Or have i to transform the returned BoundingBoxes in some way ?
> In which coordinate system have the BoundingBoxes to be calculated in ?

Hi, i'me a learner at Java3D too.  But from what i can tell, branchgroup
has a "computeBounds" type of property that will automatically compute
the bounds for you of a specific branchgroup.  Maby a getbounds after
that would yield a pre-determined bound?

Myself, i have a yard having x by z coordinants, i can compute the
bounds from my source data.

Now to only figure out how to change a branch and repaint the window
hehe :( Not much luck in that department unfortunatly.

Hope it helps.
Christian Welzel - 13 Dec 2004 07:18 GMT
> Hi, i'me a learner at Java3D too.  But from what i can tell, branchgroup
> has a "computeBounds" type of property that will automatically compute
> the bounds for you of a specific branchgroup.  Maby a getbounds after
> that would yield a pre-determined bound?

This is not the problem.
I calculate my BoundingBoxes and set them after switching off the auto-
computation.
If i print out the types of the Bounds-Objects after all, i only get the
BoundingBoxes. That seems to be ok.

> Now to only figure out how to change a branch and repaint the window

A Canvas3D repaints itself, if its neccessary. You dont have to do it
yourself.

Signature

MfG, Christian Welzel aka Gawain@Regenbogen

 GPG-Key:     http://www.camlann.de/key.asc
 Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.