Tim wrote:
> while I'm digesting this, a quick question:
>
> are the boundingbox dimensions only calculated when 'set boundingbox on'
> is called?

Good question.

The answer is .... mostly.

But if you want to know the dimensions you can turn it on and then turn it
back off.

*** 2 minutes later ***

Your question spurred a good thing.

Here is the new proposal, because this is essentially the way that I do it
internally.

I could/should return to you the center of the boundbox and then the
*vector* to the corner of the boundbox.

With that vector you can add/subtract from the center to get the corner
points if you want to.

You can also double the components of that vector in order to calculate
the lengths.

(centerX,centerY,centerZ) (cornerVectorX,cornerVectorY,cornerVectorZ)


The length along the x side is 2*cornerVectorX.


You need to do more arithmetic, but you don't have to do nearly as much
parsing.

Q: What do you think?



Miguel



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to