{"id":3019,"date":"2025-11-13T19:28:43","date_gmt":"2025-11-14T01:28:43","guid":{"rendered":"http:\/\/jimlund.org\/blog\/?p=3019"},"modified":"2025-11-13T19:35:59","modified_gmt":"2025-11-14T01:35:59","slug":"updated-voronoi-diagram-inkscape-extension-2","status":"publish","type":"post","link":"https:\/\/jimlund.org\/blog\/?p=3019","title":{"rendered":"Updated Voronoi diagram Inkscape extension"},"content":{"rendered":"\n<p>Updated <a href=\"http:\/\/jimlund.org\/blog\/pics\/glass\/jim_voronoi.zip\">Voronoi_inkscape_1.4.2.zip<\/a> extension to work with Inkscape 1.4.2! (<a href=\"http:\/\/jimlund.org\/blog\/?p=1773\">ver 1.1<\/a>, <a href=\"http:\/\/jimlund.org\/blog\/?p=2462\">ver 1.3<\/a> of the extension.). To install, go to Inscape -> Extensions -> Manage extension -> Install packages tab -> click on file icon and select the zip file.<\/p>\n\n\n\n<p>Takes as input a shape to fill with a Voronoi diagram. The number of levels of recursive Voronoi diagrams can be set.<\/p>\n\n\n\n<p><strong>Options<\/strong><\/p>\n\n\n\n<p>Random seed points: Number of starting points. The distribution of the starting points is set for each level of the diagram.<\/p>\n\n\n\n<p><strong>Options:<\/strong><br>Levels of recursion: Within each Voronoi region, a new Voronoi diagram is created.<\/p>\n\n\n\n<p>Level(rand_type):relax,\u2026: Sets of parameters for each Voronoi diagram level.<br>&lt;level&gt;(&lt;normalization method&gt;[param1=n;parms2 = n.n; params3=foo\u2026]):&lt;Llyod\u2019s relaxation interations&gt;<br>The randomization type can be \u2018normdist\u2019, \u2018normdist_edge\u2019, \u2018random\u2019. \u2018Random\u2019 distributes the seed points randomly. \u2018Normdist\u2019 distributes the seed points around one or more \u2018centers\u2019 (default is 1 center), distributed around the centroid. \u2018Normdist_edge\u2019 moves the seeds away from the centers toward the edge.<br>Llyod\u2019s relaxation moves each of the points halfway between its current position and the centroid of the Voronoi polygon it is located in with each iteration.<\/p>\n\n\n\n<p><strong>Parameters:<\/strong><br>centers = 2 \u2013 Number of centers to cluster \u2018normdist\u2019 random points around. Centers are spaced at center_dist from the centroid of the input path.<br>keep_centers = 0,1,3\u2026 \u2013 Which of the centers to use. Numbering starts at 0.<br>center_dist = 1.23 \u2013 Distance from the path centroid to place the random seed centers. dist = size \/ center_dist. Default = 2.0. Large numbers push the centers towards the edge.<br>min_dist = 1.23 \u2013 Minimum distance of random points from the edge of the path. In Inkscape units. Default = 5.<br>sd = 1.23 \u2013 Standard deviation of the random points. sd = standard deviation of the random points. sd = size \/ sd. Larger numbers give a tighter distribution. Default = 2.5.<br>xy = x1,y1, x2,y2\u2026 \u2013 Explicitly enter random seed point locations. In Inkscape units. Overrides random dist center parameters.<\/p>\n\n\n\n<p><strong>Return lines or polygons<\/strong>: The Voronoi regions are added to the document as polygons or lines.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<p>340 mm diameter circle as a polygon of 30 points.  <br>Parameters: 1(normdist[centers=3;center_dist=1.2;sd=4.14;min_dist=25]):1<\/p>\n\n\n\n<p> <img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"887\" class=\"wp-image-3020\" style=\"width: 900px;\" src=\"http:\/\/jimlund.org\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-13-at-7.18.09\u202fPM.png\" alt=\"\" srcset=\"https:\/\/jimlund.org\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-13-at-7.18.09\u202fPM.png 1394w, https:\/\/jimlund.org\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-13-at-7.18.09\u202fPM-300x296.png 300w, https:\/\/jimlund.org\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-13-at-7.18.09\u202fPM-1024x1009.png 1024w, https:\/\/jimlund.org\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-13-at-7.18.09\u202fPM-768x757.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n\n\n\n<p>Two levels of recursion:<\/p>\n\n\n\n<p>Parameters: 2(normdist[centers=3;center_dist=1.2;sd=4.14;min_dist=25]):1, 1(normdist):1<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"881\" class=\"wp-image-3021\" style=\"width: 900px;\" src=\"http:\/\/jimlund.org\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-13-at-7.26.48\u202fPM.png\" alt=\"Two level Voronoi layout in a circle.\" srcset=\"https:\/\/jimlund.org\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-13-at-7.26.48\u202fPM.png 1344w, https:\/\/jimlund.org\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-13-at-7.26.48\u202fPM-300x294.png 300w, https:\/\/jimlund.org\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-13-at-7.26.48\u202fPM-1024x1003.png 1024w, https:\/\/jimlund.org\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-13-at-7.26.48\u202fPM-768x752.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Updated Voronoi_inkscape_1.4.2.zip extension to work with Inkscape 1.4.2! (ver 1.1, ver 1.3 of the extension.). To install, go to Inscape -> Extensions -> Manage extension -> Install packages tab -> click on file icon and select the zip file. Takes as input a shape to fill with a Voronoi diagram. The number of levels of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,20,1],"tags":[],"class_list":["post-3019","post","type-post","status-publish","format-standard","hentry","category-hobbies","category-software","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3019"}],"version-history":[{"count":2,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3019\/revisions"}],"predecessor-version":[{"id":3024,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3019\/revisions\/3024"}],"wp:attachment":[{"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}