Geometry Primitives Generation

Primitives

colour

PRIMITIVE_METHODS

Supported geometry primitive generation methods.

primitive([method])

Returns a geometry primitive using given method.

Ancillary Objects

colour.geometry

PLANE_TO_AXIS_MAPPING

Plane to axis mapping.

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

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

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

Generates 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])

Returns the vertices of a geometry primitive using given method.

colour.geometry

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

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

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

Returns 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, ...])

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

primitive_vertices_sphere([radius, ...])

Returns the vertices of a latitude-longitude sphere primitive.

Hull Section

colour.geometry

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

Computes the hull section for given axis at given origin.