Decorators

Decorators for Polyhex

These decorators are used to declutter the code and raise Errors in a systematic fashion

polyhex.objects.decorators.hex_coord_system_dependent(method)

Decorator to ensure that a method errors for the non-implemented hexagonal coordinate system of the vertex orientation

polyhex.objects.decorators.top_dependent(method)

“Decorator to ensure that a method errors for the non-implemented hexagonal coordinate system of the vertex orientation

polyhex.objects.decorators.vertex_orientation_dependent(method)

Decorator to ensure that a method errors for the non-implemented ordering of the vertex orientation