Wrong result for TetrahedronCell::squared_distance
Issue #153
resolved
The following code print 0.0 while it should print 1.0:
from dolfin import *
p = Point(0.1, 0.05, -1.0)
mesh = UnitCubeMesh(8, 8, 8)
c = Cell(mesh, 0)
print c.distance(p)
Comments (4)
-
reporter -
reporter - changed status to resolved
Fix issue 153: Wrong result for TetrahedronCell::squared_distance
→ <<cset 352ee11781ca>>
-
reporter Fixed by modifying TriangleCell::squared_distance to handle 3D triangles
-
- removed milestone
Removing milestone: 1.3 (automated comment)
- Log in to comment
Problem seems to be in TriangleCell::squared_distance which does not compute accurate results in 3D.