55. gui.annotations — Annotations

Annotations are drawable decorations of the Geometry actors. They provide extra information on the object and its components, like node numbers. Annotations can be toggled on or off in the Geometry menu. There is a predefined set of Annotations, but users can add their own.

55.1. Functions defined in module gui.annotations

gui.annotations.annotation(name)[source]

Decorator function to register an annotation

gui.annotations.draw_object_name(n)[source]

Draw the name of an object at its center.

gui.annotations.draw_elem_numbers(n)[source]

Draw the numbers of an object’s elements.

gui.annotations.draw_nodes(n)[source]

Draw the nodes of an object.

gui.annotations.draw_node_numbers(n)[source]

Draw the numbers of an object’s nodes.

gui.annotations.draw_edge_numbers(n)[source]

Draw the edge numbers of an object.

gui.annotations.draw_free_edges(n)[source]

Draw the feature edges of an object.

gui.annotations.draw_bbox(n)[source]

Draw the bbox of an object.

gui.annotations.draw_convex_hull(n)[source]

Draw the convex hull of a Geometry.

gui.annotations.draw_convex_hull2D(n)[source]

Draw the 2D convex hulls of a Geometry.

gui.annotations.draw_normals(n, avg=False)[source]

Draw the surface normals at centers or averaged normals at the nodes.