On 2004-12-14 (11:18) Miguel wrote:

>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?
>


this sounds much better.  math is easier/better than parsing.  plus it 
dramatically reduces the length of the returned string.

thanks, Miguel!


tim
-- 
Timothy Driscoll
molvisions - see, grasp, learn.
<http://www.molvisions.com/>
usa:north carolina:wake forest

"Who, my friend, can scale heaven?" - Sumer (from Gilgamesh)


-------------------------------------------------------
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