kittycad.models.direction

Classes

Direction(value)

Specifies the sign of a co-ordinate axis.

class kittycad.models.direction.Direction(value)[source][source]

Specifies the sign of a co-ordinate axis.

NEGATIVE = 'negative'[source]
POSITIVE = 'positive'[source]

# Decreasing numbers.

__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.direction', '__doc__': 'Specifies the sign of a co-ordinate axis.', '__str__': <function Direction.__str__>, '__dict__': <attribute '__dict__' of 'Direction' objects>, '__weakref__': <attribute '__weakref__' of 'Direction' objects>, '_member_names_': ['POSITIVE', 'NEGATIVE'], '_member_map_': {'POSITIVE': <Direction.POSITIVE: 'positive'>, 'NEGATIVE': <Direction.NEGATIVE: 'negative'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'positive': <Direction.POSITIVE: 'positive'>, 'negative': <Direction.NEGATIVE: 'negative'>}, 'POSITIVE': <Direction.POSITIVE: 'positive'>, 'NEGATIVE': <Direction.NEGATIVE: 'negative'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.direction'[source]
_generate_next_value_(start, count, last_values)[source]

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'NEGATIVE': Direction.NEGATIVE, 'POSITIVE': Direction.POSITIVE}[source]
_member_names_ = ['POSITIVE', 'NEGATIVE'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'negative': Direction.NEGATIVE, 'positive': Direction.POSITIVE}[source]