misleading Cell::diameter()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
New
|
Undecided
|
Unassigned |
Bug Description
Cell::diameter() returns two times circumradius. I think correct way would be to return length of a longest edge (for simplices) as it is consistent with a normal use of term "diameter" in mathematics, see http://
This issue is related to bug 1082157 and bug 948379.
I think changing Cell::diameter() to the length of a longest edge (and moving the existing computation to Cell::circumrad
EDIT: Warning: as this kind of change or similiar is done CellType:
If it's confusing, the function name 'diameter' should probably be banned entirely, and replaced by "circumradius()" and "max_edge()" or similar.