It may just be the Box. The Javadocs for the Box allow you to specify the dimensions 
of the box, which one would assume refer to the total width, height, and depth. 
However, the default constructor says that a Box with 1.0 for all the dimensions is 
created, but that Box lies within the bounding box of [-1,-1,-1] to [1,1,1].

Sean

> -----Original Message-----
> From: Weber, Derek [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 11, 2003 5:33 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] sec: u Primitive sizes seem incorrect
> 
> 
> Hi all,
> 
> I've tried searching this mailing list but haven't found 
> anything to answer my problem.
> 
> I'm placing primitives inside (transparent) primitives and 
> have found that they have different sizes despite being given 
> apparently correct values.
> 
> Eg. I place a sphere of radius 0.5 inside a Box of dimensions 
> 1x1x1. There is a significant gap from the extremities of the 
> sphere to the sides of the box. If I make the radius of the 
> sphere 1 instead of 0.5, then the sphere seems to touch the 
> sides of the box (implying that it's in fact a 2x2x2 box).
> 
> Eg2 I put a cone of radius 0.5 and height 1 inside a 1x1x1 
> Box and once again the cone is much smaller than the box. But 
> if I make it a cone with radius 1 and height 2 then it fits 
> snuggly inside what I thought was a 1x1x1 box.
> 
> It's important because I'm doing automatic arranging of 
> shapes inside other shapes, so the positions and sizes matter.
> 
> Has anyone had similar problems, or have I read the docs incorrectly?
> 
> Thanks very much for your help.
> 
> Derek.
> 
> ============================================================
> Derek Weber                  [EMAIL PROTECTED]
> Virtual Enterprises Group                 Rm: 2.C.15 205Labs
> Command & Control Division                Ph: 61 8 8259 7699
> Defence Science & Technology Organisation Fx: 61 8 8259 5589
> PO Box 1500, Edinburgh SA 5111            Mob:  0407 186 602
> ============================================================
> IMPORTANT: This email remains the property of the Australian
> Defence Organisation and is subject to the jurisdiction of
> section 70 of the CRIMES ACT 1914. If you have received this
> email in error, you are requested to contact the sender and
> delete the email
> 
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and 
> include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help, 
> send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
> 

==========================================================================To 
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to