{"id":2462,"date":"2024-06-24T21:24:09","date_gmt":"2024-06-25T02:24:09","guid":{"rendered":"http:\/\/jimlund.org\/blog\/?p=2462"},"modified":"2024-07-02T21:23:07","modified_gmt":"2024-07-03T02:23:07","slug":"updated-voronoi-diagram-inkscape-extension","status":"publish","type":"post","link":"http:\/\/jimlund.org\/blog\/?p=2462","title":{"rendered":"Updated Voronoi diagram Inkscape extension"},"content":{"rendered":"\n<p>Updated <a href=\".\/pics\/glass\/jim_voronoi.zip\">jim_voronoi.zip<\/a> extension to work with Inkscape 1.3!  (<a href=\"http:\/\/jimlund.org\/blog\/?p=1773\">Original version<\/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&#8230;]):&lt;Llyod&#8217;s relaxation interations&gt;<br>The randomization type can be &#8216;normdist&#8217;, &#8216;normdist_edge&#8217;, &#8216;random&#8217;.  &#8216;Random&#8217; distributes the seed points randomly.  &#8216;Normdist&#8217; distributes the seed points around one or more &#8216;centers&#8217; (default is 1 center), distributed around the centroid.  &#8216;Normdist_edge&#8217; moves the seeds away from the centers toward the edge. <br>Llyod&#8217;s 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 &#8211; Number of centers to cluster &#8216;normdist&#8217; random points around.  Centers are spaced at center_dist from the centroid of the input path.<br>keep_centers = 0,1,3\u2026 &#8211; Which of the centers to use. Numbering starts at 0.<br>center_dist = 1.23 &#8211; 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 &#8211; Minimum distance of random points from the edge of the path. In Inkscape units. Default = 5.<br>sd = 1.23 &#8211; 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 &#8211; Explicitly enter random seed point locations. In Inkscape units. Overrides random dist center parameters.<\/p>\n\n\n\n<p>Return lines or polygons: The Voronoi regions are added to the document as polygons or lines.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Updated jim_voronoi.zip extension to work with Inkscape 1.3! (Original version 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 recursive Voronoi [&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],"tags":[],"class_list":["post-2462","post","type-post","status-publish","format-standard","hentry","category-hobbies","category-software"],"_links":{"self":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2462"}],"version-history":[{"count":4,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2462\/revisions"}],"predecessor-version":[{"id":2494,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2462\/revisions\/2494"}],"wp:attachment":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2462"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}