Skip to content

symmetry

1 motifs. Import them from geomotif.motifs, or build one by name with registry.create("symmetry.point-set").

symmetry.point-set

symmetry.point-set

Points arranged by a symmetry group, spaced by iterative relaxation.

from geomotif import save_svg
from geomotif.motifs import SymmetricPointSet

motif = SymmetricPointSet(count=15, group='D5', connect='equal-distance')
save_svg(motif.build(), "symmetry.point-set.svg", width=320, height=320)
geomotif render symmetry.point-set --out symmetry.point-set.svg
{
  "geomotif": "1.3.1",
  "motif": "symmetry.point-set",
  "params": {
    "merge": false,
    "show_nodes": true,
    "count": 15,
    "group": "D5",
    "radius": 120.0,
    "relax": 200,
    "connect": "equal-distance",
    "neighbors": 3,
    "tolerance": 0.08,
    "center": [
      0.0,
      0.0
    ]
  }
}
Parameters
Name Type Default
count int 15
group str 'D5'
radius float 120.0
relax int 200
connect Connection 'equal-distance'
neighbors int 3
tolerance float 0.08
center Point (0.0, 0.0)
show_nodes bool True
merge bool False