How to get the anti-clockwise direction for all cells?
Asked by
Nguyen Van Dang
Hello,
When I accessed the mesh data by below code, sometimes I got the cell with anti-clockwise direction but sometimes I did not. In fact, I need all cells with anti-clockwise direction. Is there any way to get them?
Any helps are highly appropriated!
Nguyen Van Dang
for (CellIterator c(mesh); !c.end(); ++c)
{
cout << "cell index = " << c->index() << endl;
for (VertexIterator v(*c); !v.end(); ++v)
{
cout << "vertex index = " << v->index() << endl;
cout << "vertex coordinates = " << v->point() << endl;
}
}
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anders Logg
- Solved:
- Last query:
- Last reply:
To post a message you must log in.