tqec.sketchup.block_graph.CubeType
- class CubeType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Valid cube types in the library.
- __init__(*args, **kwds)
Methods
to_zx_node_type
()Convert the cube type to a ZX node type.
get_color
()Get the color of the block.
from_color
(color)Get the cube type from the color.
normal_direction_to_corner_plane
()If the cube is at a corner, return the normal direction to the corner plane.
infer_pipe_type_at_direction
(direction[, ...])Infer the pipe type connecting this cube at some direction with the color match rule.
Attributes
is_spatial_junction
ZXX
XZX
XXZ
XZZ
ZXZ
ZZX
VIRTUAL