News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

Main Menu

Shamrock via Surface from Law

Started by Henry Hubich, March 15, 2016, 10:36:26 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Henry Hubich

Happy St. Paddy's Day!

Except for the stem, the shamrock is a single Surface From Law object created in v2016. (Stem is a Rail Sweep.)

If you want to try it yourself, here are the Laws. Set both Umax and Vmax to 6.2831853.

X-Law: ((1+3*abs(sin(3*u/2)))*(1+.2*cos(v)))*cos(u)
Y-Law: ((1+3*abs(sin(3*u/2)))*(1+.2*cos(v)))*sin(u)
Z-Law: 0.15*(1+3*abs(sin(3*u/2)))*sin(v)

BTW, in my installation I can copy these Laws (one at a time) from this page and paste directly into TCad's Laws Editor. No need to type them by hand.

Henry H

DTTurbocad

#1
Very good Henry!!But to be really lucky shouldn't it be 4-leafed? :)
Also I will see if development can create an import/export for the laws going forward. As I have found that formulas are not contained within the file they were created in.

Andy H

Very nice Henry, I gotta admit the sine/cosine etc. is a bit beyond me,

Henry Hubich

#3
Quote from: Dave Taylor on March 15, 2016, 01:33:53 PM
Very good Henry!!But to be really lucky shouldn't it be 4-leafed? :)
Also I will see if development can create an import/export for the laws going forward. As I have found that formulas are not contained within the file they were created in.

Just change the 3's in the Laws to 4's, Dave. But a shamrock has 3 leaves. Remember the legend of St. Patrick explaining the Trinity?

Henry H

EDIT: Oops. Don't change all the 3's. In the Laws shown below, change just the 3's shown in red to however many leaves you want. (Won't do any real damage to change the others; just alter the appearance a wee bit.)

X-Law: ((1+3*abs(sin(3*u/2)))*(1+.2*cos(v)))*cos(u)
Y-Law: ((1+3*abs(sin(3*u/2)))*(1+.2*cos(v)))*sin(u)
Z-Law: 0.15*(1+3*abs(sin(3*u/2)))*sin(v)

DTTurbocad

That's brilliant Henry :)  I better study my Trinity knowledge as  I don't remember that....but I do remember the song.