#870 volume() is not precise for non-affine geometries
|Reported by||Jö Fahlke (email@example.com)|
|Reported at||Feb 4, 2011 19:51|
|Version||Git (pre2.4) [autotools]|
|Operating System||Unspecified / All|
Am Fri, 4. Feb 2011, 17:27:38 +0100 schrieb firstname.lastname@example.org:
Modified: trunk/dune/grid/genericgeometry/test/testbasicgeometry.cc Log: [testbasicgeometry.cc] Extend to test all GeometryTypes up and includeing dim=3, in affine and non-affine versions.
The test now checks the volume of the basicgeometry-objects (as far as I have been able to calculate a reference value for the volume, i.e. feel free to supply values for the 3D non-affine geometries). The volume check currently fails for non-affine quadrilaterals in a 3D space, yielding
Volume: 1.22474, but 1.28079 was expected!
I am not 100% sure that I calculated the area correctly though; if someone else wants to have a go, the corners of the quadrilateral are (x,y,z):
(0,0,0), (1,0,0), (0,1,0), (1,1,1)