The valid types for density units.

class kittycad.models.unit_density.UnitDensity(value)[source][source]

The valid types for density units.

KG_M3 = 'kg:m3'[source]
LB_FT3 = 'lb:ft3'[source]

# Kilograms per cubic meter.

__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_density', '__doc__': 'The valid types for density units.', '__str__': <function UnitDensity.__str__>, '__dict__': <attribute '__dict__' of 'UnitDensity' objects>, '__weakref__': <attribute '__weakref__' of 'UnitDensity' objects>, '_member_names_': ['LB_FT3', 'KG_M3'], '_member_map_': {'LB_FT3': <UnitDensity.LB_FT3: 'lb:ft3'>, 'KG_M3': <UnitDensity.KG_M3: 'kg:m3'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'lb:ft3': <UnitDensity.LB_FT3: 'lb:ft3'>, 'kg:m3': <UnitDensity.KG_M3: 'kg:m3'>}, 'LB_FT3': <UnitDensity.LB_FT3: 'lb:ft3'>, 'KG_M3': <UnitDensity.KG_M3: 'kg:m3'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.unit_density'[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_ = {'KG_M3': UnitDensity.KG_M3, 'LB_FT3': UnitDensity.LB_FT3}[source]
_member_names_ = ['LB_FT3', 'KG_M3'][source]

alias of str

_value2member_map_ = {'kg:m3': UnitDensity.KG_M3, 'lb:ft3': UnitDensity.LB_FT3}[source]