kittycad.models.entity_type
Classes
|
The type of entity |
- class kittycad.models.entity_type.EntityType(value)[source][source]
The type of entity
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.entity_type', '__doc__': 'The type of entity', '__str__': <function EntityType.__str__>, '__dict__': <attribute '__dict__' of 'EntityType' objects>, '__weakref__': <attribute '__weakref__' of 'EntityType' objects>, '_member_names_': ['ENTITY', 'OBJECT', 'PATH', 'CURVE', 'SOLID2D', 'SOLID3D', 'EDGE', 'FACE', 'PLANE'], '_member_map_': {'ENTITY': <EntityType.ENTITY: 'entity'>, 'OBJECT': <EntityType.OBJECT: 'object'>, 'PATH': <EntityType.PATH: 'path'>, 'CURVE': <EntityType.CURVE: 'curve'>, 'SOLID2D': <EntityType.SOLID2D: 'solid2d'>, 'SOLID3D': <EntityType.SOLID3D: 'solid3d'>, 'EDGE': <EntityType.EDGE: 'edge'>, 'FACE': <EntityType.FACE: 'face'>, 'PLANE': <EntityType.PLANE: 'plane'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'entity': <EntityType.ENTITY: 'entity'>, 'object': <EntityType.OBJECT: 'object'>, 'path': <EntityType.PATH: 'path'>, 'curve': <EntityType.CURVE: 'curve'>, 'solid2d': <EntityType.SOLID2D: 'solid2d'>, 'solid3d': <EntityType.SOLID3D: 'solid3d'>, 'edge': <EntityType.EDGE: 'edge'>, 'face': <EntityType.FACE: 'face'>, 'plane': <EntityType.PLANE: 'plane'>}, 'ENTITY': <EntityType.ENTITY: 'entity'>, 'OBJECT': <EntityType.OBJECT: 'object'>, 'PATH': <EntityType.PATH: 'path'>, 'CURVE': <EntityType.CURVE: 'curve'>, 'SOLID2D': <EntityType.SOLID2D: 'solid2d'>, 'SOLID3D': <EntityType.SOLID3D: 'solid3d'>, 'EDGE': <EntityType.EDGE: 'edge'>, 'FACE': <EntityType.FACE: 'face'>, 'PLANE': <EntityType.PLANE: 'plane'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[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_ = {'CURVE': EntityType.CURVE, 'EDGE': EntityType.EDGE, 'ENTITY': EntityType.ENTITY, 'FACE': EntityType.FACE, 'OBJECT': EntityType.OBJECT, 'PATH': EntityType.PATH, 'PLANE': EntityType.PLANE, 'SOLID2D': EntityType.SOLID2D, 'SOLID3D': EntityType.SOLID3D}[source]