show_circle_packings
pleat.intersecting_cylinders.show_circle_packings ¶
Visualize the two dual circle packings underlying an intersecting-cylinders tiling.
An :mod:pleat.intersecting_cylinders crease pattern is built from a tiling
whose face incircles are mutually tangential. Together with the vertex
circles (centred at each original vertex and passing through the tangent
points on the incident edges) this gives two interleaved circle packings whose
circles touch pairwise at the edge tangent points.
:func:show_dual_circle_packings builds the ortho-Conway graph of the input
tiling, repositions every edge-midpoint vertex to the actual tangent point,
and styles the result so the two circle families are rendered as filled red
(face incircles) and blue (vertex circles) discs.
build_dual_circle_packings ¶
Return a styled ortho-graph representing the two dual circle packings.
The returned graph is a fresh copy: the input G is not modified. Every
vertex carries a color_key and vertex_radius attribute; circles
coming from original faces use red fill, circles coming from original
vertices use blue fill, and the tangent-point vertices are drawn as small
black dots. Halfedges are coloured black and have line_width set so
that only the vertex circles are outlined.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
G
|
'EuclideanPositionHEG'
|
A 2D Euclidean tiling whose faces have well-defined incenters such that the corresponding incircles are mutually tangential at every edge. |
required |
Returns:
| Type | Description |
|---|---|
'EuclideanPositionHEG'
|
A copy of the ortho-Conway graph of |
'EuclideanPositionHEG'
|
set, ready to pass to :meth: |
Source code in pleat/intersecting_cylinders/show_circle_packings.py
show_dual_circle_packings ¶
Render the two dual circle packings of a tiling.
This is a thin convenience wrapper around :func:build_dual_circle_packings
that calls :meth:HalfEdgeGraph.show on the resulting styled graph with
render_faces=False.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
G
|
'EuclideanPositionHEG'
|
A 2D Euclidean tiling -- see :func: |
required |
**show_kwargs
|
Any
|
Forwarded to :meth: |
{}
|