pythagoras.r3.sphere module¶
- class pythagoras.r3.sphere.FakeSphere(center: tuple[float, float, float], radius: float, zord: int = 0)[source]¶
Bases:
PObject3DCircle centered in a point in \(\mathbf R^3\) which emulates a sphere.
- Variables:
center (tuple[float, float, float]) – Center of the fake sphere.
radius (float) – Radius of the fake sphere.
- center: tuple[float, float, float]¶
- radius: float¶
- svg(camera: Camera3D, frustum: float, width: float, height: float, scale: float, lights: list[tuple[tuple[float, float, float], float]], *args: POProperty) str[source]¶
Compiles the 3D object into SVG commands.
- Returns:
The corresponding SVG code.
- tikz(camera: Camera3D, frustum: float, lights: list[tuple[tuple[float, float, float], float]], *args: POProperty) str[source]¶
Compiles the 3D object into a sequence of TikZ instructions.
- Returns:
The resulting TikZ code.