MoI discussion forum
MoI discussion forum

Full Version: Voronoi generator

Show messages:  1-17  18-30

From: bemfarmer
21 Aug 2020   [#18] In reply to [#16]
So last month Tudor and Larry did some "get the centers of circles (or arcs)" work:

https://moi3d.com/forum/index.php?webtag=MOI&msg=9875.4
https://moi3d.com/forum/index.php?webtag=MOI&msg=9885.1

_radialPattern script is lacking circle centers.

Larry's CenterPoints script has checkbox option to create the centerpoints of the circles (arcs), say of the _radialPattern script.
Then select the points, and run voronoi script.



So which to pursue? circleCenter script, or circleCenter node and/or radialPattern node, with center output?

- Brian

Is there an old "get circle centers script" somewhere?

ps, A Doyle spiral with p=1, and q = ~24+, with voronoi applied to centerpoints, makes hexes which are only a little irregular.
From: Larry Fahnoe (FAHNOE)
22 Aug 2020   [#19] In reply to [#18]
Neat to see that the CenterPoints script might be helpful in an entirely unrelated context! The problem I was intending to solve with it is now being better dealt with by a more general Coordinates script that I'm almost done with, so I'll be happy to simplify the CenterPoints script to make it a more general tool for creating the center points and make the export of the coordinates optional. I will also remove the adjustment of the origin and axes as that isn't necessary in this context. When finished, I'll post it here.

--Larry
From: bemfarmer
22 Aug 2020   [#20] In reply to [#19]
Hi Larry,
Your modified script will be much appreciated. Thank you

- Brian
From: bemfarmer
22 Aug 2020   [#21] In reply to [#20]
3d printing with: carbon kevlar and fiberglass resin with a polystyrene lining

https://www.3dnatives.com/en/3d-printed-bicycle-helmet-voronoi-190820204/

- Brian
From: Larry Fahnoe (FAHNOE)
22 Aug 2020   [#22] In reply to [#20]
Hi Brian,

You're welcome! Much simpler now: no extraneous options, just create points for the centers of selected circles and arcs.

If someone still wants the coordinate values, either follow up with SavePointFile or use Coordinates which creates leaders with either absolute or relative coordinates. Coordinates will be finished soon.

Added a minor modification to the CenterPoints script to check the MoI version as the script uses features introduced in version 4.

--Larry

Attachments:
CenterPoints-011.zip


From: bemfarmer
22 Aug 2020   [#23] In reply to [#22]
CenterPoints (11) works in MoI4Beta, for circles or circular arcs.

- B
From: moritzbock (MORITZ)
23 Aug 2020   [#24] In reply to [#23]
Doesn't work with my MoI V4 beta...
- moritz


Image Attachments:
Bildschirmfoto 2020-08-23 um 19.43.28.PNG 


From: Larry Fahnoe (FAHNOE)
23 Aug 2020   [#25] In reply to [#24]
Hi Moritz,

Thanks for catching that! I had zipped up the wrong version of the script & thus the error message you should not have received. The correct version is attached in the message above.

--Larry
From: moritzbock (MORITZ)
23 Aug 2020   [#26] In reply to [#25]
Hi Larry,
now it works properly ;-}
Thank you
-moritz
From: stefano (LIGHTWAVE)
1 Sep 2020   [#27] In reply to [#5]
Hi Wayne out of interest, can the node editor search the 'workspace' / drawing for a series of points that are already
in place - e.g. node editor checks drawing for all entities with a specific geometry, object name or a certain line color
THEN after these points or objects are selected we run another function on or with those shapes that 'qualified'.
BR Stefano.
From: wayne hill (WAYNEHILL5202)
1 Sep 2020   [#28] In reply to [#27]
Hi Stefano,

The Node Editor has many limitations. It is a rudimentary parametric scripting tool supported by a limited number of members in a public domain. What you are asking goes well beyond the capability of the Node Editor.

Wayne
From: Larry Fahnoe (FAHNOE)
1 Sep 2020   [#29] In reply to [#27]
Hi Stefano,

It sounds like you are asking about how to select objects and then run commands on them. The design of the MoI UI incorporates that type of workflow already. Beyond the click and click/drag selection mechanisms, suggest you explore the Scene Browser to be able to select via names, types, or styles. Many MoI commands operated on the object(s) that are previously selected, but if no object is selected, the command prompts you for what to select. You don't really need any additional scripts to do these basic tasks.

--Larry
From: bemfarmer
1 Sep 2020   [#30] In reply to [#27]
Two nodes are "get by name" and "get by style"

- B

Show messages:  1-17  18-30