autopew.graph.network

class autopew.graph.network.Net[source]

Network of transformations between objects.

This object stores the individual node objects including their properties and registration points, in addition to the edges which involve specific coordinate transforms.
add_edge(A, B, transform=None, **kwargs)[source]

Add an edge between components A and B. Optionally specify the specific transform.

Parameters:
  • A, B (str) – Names of components to link.
  • transform (function) – Function to transform coordinates from A space to B space.
  • inverse_transform (function) – Function to transform coordinates from B space to A space.
draw(ec='k', nc='seagreen', ax=None, figsize=(10, 10), method=<function draw_shell>)[source]
edges
get_transform(A, B)[source]

Get the function to transform coordinates between nodes A and B.

Link nodes A and B with transforms along edges.

nodes
update(name, obj, **kwargs)[source]

Default link function.