Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting Bounds in Java3D

Status
Not open for further replies.

anchi

Programmer
Feb 22, 2005
4
YU
i have troubles with setting bounds. Whatever I tried computer still draws surface within an automatic generated boundares. Any help and suggestion is welcome. Thanks!
 
Your being a bit vague there anchi.

If I assume your talking about setting component bounds in AWT / Swing, then I'd hazard a guess that your using a LayoutManager (e.g. BorderLayout). These are designed to contrain layout according to some rules depending upon the specific LayoutManager used. To do this, they impose things like bounds and locations on the components within the Containers they manage. If you set these yourself, they will be ignored.

If I'm way off beam, please post some more details of your problem.

Tim
 

I'm not shure that we've understand well. I'm trying to draw an infinite surface (using java3d) and I've tried to overwrite initSceneGraph() but I don't know how to set boundares (using BoundingBox, BoundingLeaf, or maybe something else). For example, I've set axes from -5 to 5, and I want surface to be seeable only in square which diagonal points are (-6,-6,-6) and (6,6,6). Keep in mind that I'm a real begginer (and I don't know English very weel, as you probably already realized). If you have some other suggestion please write.
Thanks!
 
No problem. I've just seen that I had wrote "square" - my error - it should be "cube with diagonal points...".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top