maliang.three.geometries¶
字数 9 个 阅读时间不到 1 分钟 访问量
源代码:maliang/three/geometries.py
Standard Geometries
类:
-
Cuboid
–Cuboid
-
Tetrahedron
–Tetrahedron
Cuboid ¶
Cuboid(
canvas: engine.Canvas | engine.Space,
x: float,
y: float,
z: float,
length: float,
width: float,
height: float,
*,
boardwidth: int = 1,
color_fill_up: str = "",
color_fill_down: str = "",
color_fill_left: str = "",
color_fill_right: str = "",
color_fill_front: str = "",
color_fill_back: str = "",
color_outline_up: str = "#000000",
color_outline_down: str = "#000000",
color_outline_left: str = "#000000",
color_outline_right: str = "#000000",
color_outline_front: str = "#000000",
color_outline_back: str = "#000000"
)
Tetrahedron ¶
Tetrahedron(
canvas: engine.Canvas | engine.Space,
point_1: tuple[float, float, float],
point_2: tuple[float, float, float],
point_3: tuple[float, float, float],
point_4: tuple[float, float, float],
*,
boardwidth: int = 1,
color_fill: tuple[str, str, str, str] = ("", "", "", ""),
color_outline: tuple[str, str, str, str] = ("#000000", "#000000", "#000000", "#000000")
)