Comment 2 for bug 1796883

Revision history for this message
Alexander Eulitz [Eugen] (kubeu) wrote :

In the Facet.cpp I found the following comment. Maybe this rings a bell for somebody?

void Facet::postLoad(Facet&)
{
 // if this fails, it means someone did vertices push_back, but they are resized to 3 at Facet initialization already
 // in the future, a fixed-size array should be used instead of vector<Vector3r> for vertices
 // this is prevented by yade::serialization now IIRC
 if(vertices.size()!=3){ throw runtime_error(("Facet must have exactly 3 vertices (not "+boost::lexical_cast<string>(vertices.size())+")").c_str()); }