Naming Conventions

The following naming conventions are used for the OpenMesh code:


  • for C++-Implementation of class MyClass
  • MyClassT_impl.hh for Header only C++-Implementation of template class MyClass
  • MyClass.hh for C++-Header of class MyClass


  • Class names start with a capital letter: MyClass
  • Class templates end with T: MyClassTemplateT


  • One leading underscore for parameters in function-calls: _var
  • One trailing underscore for member-variables: var_
  • Two trailing underscores for static member-variables: var__


  • Words are separated by underscores: my_function()

Accessing members:

  • To get the member xxx_ use const& xxx() const
  • To set the member xxx_ use void set_xxx(arg)

Project OpenMesh, ©  Visual Computing Institute, RWTH Aachen. Documentation generated using doxygen .