Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > something stran...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5593 of 6457
Post > Topic >>

something strange with MESH_VOLUME

by "yingjie, Peng" <yingjiepeng@[EMAIL PROTECTED] > Apr 2, 2008 at 03:21 PM

Dear all,

I just want to calculate the volume of a cube with MESH_VOLUME and
start to test with the following simple code:


cube =[[0,0,10] ,[1,0,10] ,[1,1,10] ,[0,1,10] $
     ,[0,0,11] ,[1,0,11] ,[1,1,11] ,[0,1,11]   ]

conn=[4,0,1,2,3,  $
      4,0,1,5,4,   $
      4,1,2,6,5,   $
      4,2,3,7,6, $
      4,3,0,4,7,  $
      4,4,5,6,7]

 print,MESH_VOLUME ( cube , conn )

It gives me a volume:   7.66667
It's just a cube with each length of 1 and the volume should be 1.
Why is    7.66667   ~~~~>o<~~~~~~
I have tried one whole night to find the problem but nothing worked.

Could somebody help me and thanks so much!

Cheers,
yingjie
 




 3 Posts in Topic:
something strange with MESH_VOLUME
"yingjie, Peng"  2008-04-02 15:21:48 
Re: something strange with MESH_VOLUME
Rick Towler <rick.towl  2008-04-02 16:56:48 
Re: something strange with MESH_VOLUME
"yingjie, Peng"  2008-04-03 13:51:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 21:26:30 CST 2008.