Geometry Primitives Generation#

Primitives#

colour

PRIMITIVE_METHODS

Supported geometry primitive generation methods.

primitive([method])

Return a geometry primitive using given method.

Ancillary Objects

colour.geometry

MAPPING_PLANE_TO_AXIS

Plane to axis mapping.

primitive_grid([width, height, ...])

Generate vertices and indexes for a filled and outlined grid primitive.

primitive_cube([width, height, depth, ...])

Generate vertices and indexes for a filled and outlined cube primitive.

Primitive Vertices#

colour

PRIMITIVE_VERTICES_METHODS

Supported geometry primitive vertices generation methods.

primitive_vertices([method])

Return the vertices of a geometry primitive using given method.

colour.geometry

primitive_vertices_quad_mpl([width, height, ...])

Return the vertices of a quad primitive for use with Matplotlib mpl_toolkits.mplot3d.art3d.Poly3DCollection class.

primitive_vertices_grid_mpl([width, height, ...])

Return the vertices of a grid primitive made of quad primitives for use with Matplotlib mpl_toolkits.mplot3d.art3d.Poly3DCollection class.

primitive_vertices_cube_mpl([width, height, ...])

Return the vertices of a cube primitive made of grid primitives for use with Matplotlib mpl_toolkits.mplot3d.art3d.Poly3DCollection class.

primitive_vertices_sphere([radius, ...])

Return the vertices of a latitude-longitude sphere primitive.

Hull Section#

colour.geometry

hull_section(hull[, axis, origin, normalise])

Compute the hull section for given axis at given origin.