surface_types

dnois.optics.rt.surface_types(name_only: bool = False) list[type[Surface]] | list[str]

Returns a list of accessible subclasses of Surface in lexicographic order. This can be used to recognize surface types supported by dnois.

Parameters:

name_only (bool) – If True, returns class names, otherwise returns class objects.

Returns:

A list of subclasses of Surface.

Return type:

list[type[Surface]] or list[str]