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


|