optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
117 stars 34 forks source link

patchkernel: add function to rotate the patch #375

Closed andrea-iob closed 1 year ago

andrea-iob commented 1 year ago

The function allows to rotate a patch along a specified axis.

andrea-iob commented 1 year ago

I removed a spurious unused argument in "Vertex::rotate".

andrea-iob commented 1 year ago

I've added a check (if n1 == n2 point is not rotated) and a test (checks the result of point rotation with both a valid and an invalid axis).