CuboidFace¶
- class CuboidFace[source]¶
Bases:
object
CuboidFace for a single
Cuboid
.- Parameters
- Usage example
edge = CuboidFace(0, 1, 2, 3)
Methods
Convert list of integers to CuboidFace.
Convert the CuboidFace to list.
Convert CuboidFace to list.
Attributes
- classmethod from_json(data)[source]¶
Convert list of integers to CuboidFace. Read more about Supervisely format.
- Parameters
- Returns
CuboidFace object
- Return type
- Raises
ValueError
if data have not 4 indices- Usage example
new_edge = CuboidFace.from_json([0, 1, 2, 3])
- to_json()[source]¶
Convert the CuboidFace to list. Read more about Supervisely format.
- Returns
List of integers
- Return type
List[int, int, int, int]
- Usage example
edge = CuboidFace(0, 1, 2, 3) edge_json = edge.to_json() print(edge_json) # Output: [0, 1, 2, 3]
- tolist()[source]¶
Convert CuboidFace to list.
- Returns
List of integers.
- Return type
List[int, int, int, int]
- Usage example
edge = CuboidFace(0, 1, 2, 3) print(edge.tolist()) # Output: [0, 1, 2, 3]
- property a¶
- property b¶
- property c¶
- property d¶