picogl.core.draw.teapot
Draw the teapot using built-in GLUT primitives.
Attributes
Functions
|
Draw the teapot using built-in OpenGL primitives. |
|
Return the start and end coordinates of a vector. |
|
Generate radial normal vectors around a circle. |
|
Draw normal vectors. |
|
Draw the teapot using built-in OpenGL primitives. |
Module Contents
- picogl.core.draw.teapot.draw_teapot(wireframe_mode)[source]
Draw the teapot using built-in OpenGL primitives.
- picogl.core.draw.teapot.coordinate_pair_for_vector(origin: molib.pdb.coordinate.coordinate.Coordinate3D, vector: molib.pdb.coordinate.coordinate.Coordinate3D, length: float) tuple[molib.pdb.coordinate.coordinate.Coordinate3D, molib.pdb.coordinate.coordinate.Coordinate3D][source]
Return the start and end coordinates of a vector.
- picogl.core.draw.teapot.generate_normal_lines(count: int = NORMAL_SAMPLE_COUNT, radius: float = NORMAL_RADIUS, length: float = NORMAL_LENGTH) list[tuple[molib.pdb.coordinate.coordinate.Coordinate3D, molib.pdb.coordinate.coordinate.Coordinate3D]][source]
Generate radial normal vectors around a circle.