Right. It does not follow any convention I'm familiar with and does not seem intuitive to me. It is also not all that well explained in the documentation.
So, if you look at the docs for the constructor Box() it says it creates a Box with 1.0 in all dimensions. However, in the main class summary, it states that the Box, "by default, ...lies within the bounding box, [-1,-1,-1] and [1,1,1]." These two statements lead me to believe the dimensions for the Box refer to half the width or height or depth. Sean > -----Original Message----- > From: Weber, Derek [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 11, 2003 10:07 PM > To: Sean Sylvis > Subject: sec: u RE: [JAVA3D] Primitive sizes seem incorrect > > > Thanks Sean, > > That certainly fixes the problem I was having but it does seem > rather unintuitive from the constructor docs. Paraphrasing > "Box(float xDim, float yDim, float zDim) creates a box with > dimensions xDim x yDim x zDim" whereas what you get is a box > with dimensions 2*xDim x 2*yDim x 2*zDim. I'm not familiar with > a lot of 3D stuff so it might be a convention or something I've > missed. > > Thanks again for your help. > > Derek. > > > -----Original Message----- > > From: Sean Sylvis [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, 12 February 2003 12:35 PM > > > > 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".
