Function symmetry::add_SG

Function Documentation

void symmetry::add_SG(int &nsg, std::vector<std::array<double, 3>> &sigman, const std::array<double, 3> &normal, double delta)

Adds a symmetry plane (mirror plane) to the list.

Records a mirror plane if it doesn’t already exist in the list of symmetry planes.

Parameters:
  • nsg – Input/Output: Current number of symmetry planes (incremented if added)

  • sigman – Input/Output: List of plane normal vectors

  • normal – Unit vector normal to the mirror plane

  • delta – Tolerance for comparing plane normals