#870 volume() is not precise for non-affine geometries
Metadata
Property | Value |
---|---|
Reported by | Jö Fahlke (jorrit@jorrit.de) |
Reported at | Feb 4, 2011 19:51 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Description
Am Fri, 4. Feb 2011, 17:27:38 +0100 schrieb joe@dune-project.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)