FaceView#
- class FaceView(nodes)#
Bases:
NodeViewView over faces (regions) of a planar diagram.
A face (region, area) is modeled as a sequence of endpoints. Given a face on the plane, its boundary is returned by traversing in CCW fashion, using the target (second) endpoint at each step.
- Parameters:
nodes (dict[Hashable, Node])
- __init__(nodes)#
Create a view over the given node mapping.
- Parameters:
nodes (dict[Hashable, Node]) – Mapping from node id →
Nodeinstance.- Return type:
None
Methods
__init__(nodes)Create a view over the given node mapping.
arcs(node)Return the arcs emanating from a node.
get(k[,d])isdisjoint(other)Return True if two sets have a null intersection.
items()keys()values()- arcs(node)#
Return the arcs emanating from a node.
Each arc is returned as a pair
(adjacent_endpoint, endpoint).
- get(k[, d]) D[k] if k in D, else d. d defaults to None.#
- isdisjoint(other)#
Return True if two sets have a null intersection.
- items() a set-like object providing a view on D's items#
- keys() a set-like object providing a view on D's keys#
- values() an object providing a view on D's values#