comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » something strange with MESH_VOLUME
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
something strange with MESH_VOLUME [message #59584] Wed, 02 April 2008 15:21
yingjie, Peng is currently offline  yingjie, Peng
Messages: 11
Registered: March 2006
Junior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Workbench Path Woes
Next Topic: IDlgrSymbol recompute_dimensions ??

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:59:55 PDT 2025

Total time taken to generate the page: 0.00600 seconds