Inconsistency between access operator and updateCoordinates().
MeshLib::Node
is derived from TemplatePoint
that offers a non const version of the access operator[]
. Using this operator it is possible to modify the coordinates of a MeshLib::Node
. The content (length, area or volume) of the elements the Node
is part of is not updated.
In contrast to this when modifying the coordinates via MeshLib::Node::updateCoordinates()
the associated element content is updated.
One possible solution:
We could try to remove the non const access operator from TemplatePoint
and reimplement the operator in GeoLib::Point
for instance and allow the modification of the coordinates of nodes only via updateCoordinates()
.