MoI discussion forum
MoI discussion forum

Full Version: Shamrock script

From: bemfarmer
1 Apr   [#1]
A parametric, 3 leaf, shamrock script.

Planar does not fully fill up the interior of the curve, near the center.
Boolean and Trim do not seem to work in that area.
Tried MoI 4 and MoI 5 beta.

Placing a circle at the center, with radius greater than the planar problem area, enabled multiple trims of the narrow areas near the center of the shamrock.
Blend was then done, and join. Now planar worked for the entire revised inner area of the curve.

Still need a stem...

- Brian

Attachments:
shamrock3.zip


From: Michael Gibson
1 Apr   [#2] In reply to [#1]
Hi Brian,

re:
> Planar does not fully fill up the interior of the curve, near the center.

It's because the curve double backs on itself abruptly near the center area.

That causes the curve to effectively be self intersecting in these cusp areas:



It would probably be good for the curve to be in 3 separate pieces instead.

- Michael

Image Attachments:
brian_cusps.jpg 


From: bemfarmer
1 Apr   [#3] In reply to [#2]
Thank you Michael for the explanation.

Trimming and blending cured the situation.
The parametric equations yielded results which may be very slightly non-symmetric, but not enough to see without zooming way way in.
I switched to Curve factory rather than InterpCurve factory.
Maybe the parametric equations could use 1/3 the value of theta angle, rather than 2PI.
Just playing around...
I'll post a .png, as soon as I remember the image service name :-) (imbbox)
Just did a 4 leaf clover script. It has crossing curve lines with narrow separation. Trims and blends fixed it up. May post it tomorrow.

- Brian

https://imgbox.com/yJnRkPAo

image host
From: bemfarmer
1 Apr   [#4] In reply to [#3]
A 4 leaf clover script.
This one also needs a little trimming and blending.

- Brian


https://imgbox.com/zsyIqAQe

image host

Attachments:
shamrock4.zip


From: bemfarmer
1 Apr   [#5]
Theta of 2PI was divided by 3, to produce one "heart shaped" clover, third of a leaf, a closed curve.
Rotated to top center.
moved away from the origin by a very small amount, to separate the future 3 leaf sections a little.
Circular array by 3.
Place small circle at origin.
Trim the 3 closed curves, and blend.

To make the stem, placed vertical lines at bottom blend of lower two leaf sections, and to the sides. The middle line is just to place the two side lines with a horizontal guide line.
Moved them up a tiny bit to clear the edge of the two lower leaf blend.
For the bottom of the stem, also made 3 lines at an angle, at the bottom of the future stem. The two outer lines are placed further apart than the top lines.
Blend the two outer upper lines with the two outer lower lines. Join to a curved trapezoid, and fillet lower end of stem.
Blend the trapezoid with the leaf edges, to yield one closed curve for entire shamrock with stem.
Do planar.

- Brian

https://imgbox.com/c3xCeI9H

image host

Attachments:
shamrock3Heart.zip


From: bemfarmer
4 Apr   [#6]
A node assemblage, shamrocknod.nod, was created to test some angle ranges for u.

Note that if the SwRotary node is not in its default (first pole) position when the node program is saved, the SwRotary will not work. (a minor SwRotary node bug).

Theta of PI/3 yields a half curve, from +y to the origin.

Theta of 2*PI/3 yields a full closed curve. It is nicely rounded near the origin. The start point is not quite at the origin, and the midpoint is also slightly away from +Y.
This could be manually corrected...

Higher switch positions have the cusp problem, near the origin.

- Brian

Attachments:
Shamrock3nod.zip