All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Naming Conventions

The following naming conventions are used for the OpenMesh code:


  • for C++-Implementation of 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, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .