News:

When replying to a specific statement be sure to quote the previous post.

Main Menu

Still playing...

Started by Henry Hubich, August 27, 2021, 06:24:22 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Henry Hubich

...with Warp by Law. The "warp" operation took about 26 seconds for this object. (It was made as one hemisphere and then mirror-copied.)

Henry H

Henry Hubich

Warping this object took a little over two minutes...

Henry H

Alvin Gregorio

Those are cool.... Henry.

Must have been fun and satisfying to work through those.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

AussieBloke

Henry are these examples above or anything similar described in your Warp by Law pdf. At least I think you created a warp by law tutorial?  ;D

John R

Nice. I doubt these could be done with a basic Bend tool.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Henry Hubich

#6
Quote from: Darryl W on August 28, 2021, 03:18:30 AM
Henry are these examples above or anything similar described in your Warp by Law pdf. At least I think you created a warp by law tutorial?  ;D

Daz, at the time I wrote that tutorial, the notion of warping to a spherical shape hadn't even occurred to me.

Generic laws for "warping" to a sphere:

X =u*{(R-z)*sin[sqrt(u^2+v^2)/R]}/[sqrt(u^2+v^2)]
Y =v*{(R-z)*sin[sqrt(u^2+v^2)/R]}/[sqrt(u^2+v^2)]
Z = R+(z-R)*cos[sqrt(u^2+v^2)/R]

Notes:

1. These laws result in a "polar" projection of a workpiece onto a sphere (as opposed, for example, to a "Mercator" projection).

2. R is the radius of curvature. A positive value warps the workpiece upward; negative value warps it downward.

3. An error message will appear if the specified R would result in selfintersection. For example, if the workpiece is a disk with radius greater than about 15.3, the radius of curvature cannot be less than 5. (Theoretical maximum disk radius for a 5" radius of curvature would seem to be 5 pi, but that doesn't work for me.)

4. The result of "warping"—no matter what laws are used—is often a corrupted object. SAT Healing will usually repair it, but not always. I've found that exploding to a TC Surface can be a more reliable fix.

Henry H

Alvin Gregorio

#7
Here's the Link to Henry's post where he shared his excellent article*, "Introduction to the Warp Entity Tool".

I say "excellent", because not only is it seemingly completely thorough, it is very well formatted and easy to follow along-- even for those of us without mathematical or engineering education or background.

One thing to note though:  Constants.  All the formulas that Henry provides in Forum posts, etc. are constant dependent.  So we have to have to work out some of the entries ourselves, mathematically (or parenthetical formulas within the Warp formulas, so the calculations are done within).  It's not as if we can just Copy&Paste Henry's formulas into the Laws Editor, select the to-be-warped entity, and voilà-- there's our warped copy of the entity.   Henry covers constants quite well in the article.

___
*re "article":  That's how Henry refers to it within it.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

Alvin, thank you for those kind words.

Henry H

Andy H

Those are really nice.  And thanks for sharing the formula.  Though the maths is a little beyond me.

Henry Hubich

This example uses a different algorithm. The expressions shown below wrap onto a sphere of radius R without changing the length of the neutral axis of the workpiece. Workpiece in the attached screenshot is 62.83" x 30" and R is 10". (I call it a "Mercator" warp because it reminds me of a Mercator world map, but I'm not at all sure I've used the term correctly.)

X = (v-R)*cos(z/R)*cos(u/R)
Y = (v-R)*cos(z/R)*sin(u/R)
Z = (R-v)*sin(z/R)

Henry H


nikkipollard

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Henry Hubich

Anyone who's been following this thread probably realizes that this was inevitable...

Henry H

AussieBloke

Your last post and the prev one are really cool Henry. I guess that you had the world map drawn first as a solid then applied the laws.

Q. Im wondering after playing and doing some of your samples from the pdf file, is the laws dialog box the same for every law type?


Henry Hubich

#14
Hi, Daz...

"our last post and the prev one are really cool Henry. I guess that you had the world map drawn first as a solid then applied the laws."

Right. I used Warp by Law.

"Q. Im wondering after playing and doing some of your samples from the pdf file, is the laws dialog box the same for every law type?"

Similar but not identical. See the attached screenshots. (Pay no attention to the expressions in the top three boxes; they're left over from the last time I used the tools.)

Henry H

John R

Quote from: Henry Hubich on September 01, 2021, 07:27:04 PM
Anyone who's been following this thread probably realizes that this was inevitable...

Henry H

I like it a lot. Above my abilities.

As for Lines around a sphere, I went with 30 and 60 degrees for the minor (thinner) lines and 0, 90, 180, 270 for the major lines.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

AussieBloke

Quote from: Henry Hubich on September 02, 2021, 08:25:52 AM
Hi, Daz...

"our last post and the prev one are really cool Henry. I guess that you had the world map drawn first as a solid then applied the laws."

Right. I used Warp by Law.

"Q. Im wondering after playing and doing some of your samples from the pdf file, is the laws dialog box the same for every law type?"

Similar but not identical. See the attached screenshots. (Pay no attention to the expressions in the top three boxes; they're left over from the last time I used the tools.)

Henry H

Thanks Henry, working through some examples I got a little confused at times with the editor window popping up and imo there missing the appropriate title for each, eg: when warping the title should read Warp by Law, likewise Surface by Law, that eliminates any possible confusion.  ;D

Henry Hubich

I like this one better. Took about 30 seconds to warp. Pretty amazing performance, IMO.

Henry H

nikkipollard

It is really cool.
Did you warp the Grid too?
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

Quote from: Henry Hubich on September 03, 2021, 06:11:46 PM
I like this one better. Took about 30 seconds to warp. Pretty amazing performance, IMO.

Henry H

Yep, pretty cool...  Nice looking; book cover quality
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

#20
Quote from: nikkipollard on September 04, 2021, 12:34:41 AM
It is really cool.
Did you warp the Grid too?

Yes. The grid and the map are actually a single object.

Henry H

AussieBloke

Henry Id like to give this warping a go too, but Ive got a much larger object thats about 10m metres square is that too large?

Jeff_in_90620

Quote from: Darryl W on September 22, 2021, 11:55:26 PM
Henry Id like to give this warping a go too, but Ive got a much larger object thats about 10m metres square is that too large?

10 metres, 10 inches... it's just scaling numbers (but the number of points will not change).

Besides... how do you know that Henry's globe isn't already 10 metres square?   ;)


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

AussieBloke

Jeff, just that Henry mentioned in an earlier post about size so I figured I should state my size constraints.

Henry in an early post you said that its fast when warping, why is this so given that you engineered the algorithms am I right here?

I was just thinking as I was posting that warping uses the same or similar  concept as wrapping to a sphere, is that a reasonable assumption?

Henry Hubich

Quote from: Darryl W on September 23, 2021, 04:13:05 AM
Jeff, just that Henry mentioned in an earlier post about size so I figured I should state my size constraints.

Henry in an early post you said that its fast when warping, why is this so given that you engineered the algorithms am I right here?

I was just thinking as I was posting that warping uses the same or similar  concept as wrapping to a sphere, is that a reasonable assumption?

Daz,TCad now provides a way to process user-composed "Laws" to deform an existing entity or to create an entirely new one. I have no idea what's happening between my clicking OK after entering a set of Laws and the appearance of the result, but I'm always amazed that the process works. I'd say that the developers did the engineering.

I had the same thought as you about wrapping to a sphere. But I don't know how warping works or how wrapping works under the hood.

Henry H

NigelG

I am intrigued although no mathematician -

Henry - Those "Generic Laws"

Do those letters u and v have common, defined purpose, like (x, y, z) or pi, generally in this area of maths?

I ask because I have a coffee-mug printed as a memorial to the 18C mathematician George Green. Around its rim is an intergration identity or equation presumably he'd developed. It appears to be a three-dimensional description, with dx, dy, dz,  U, V and pi, indeed 4pi, no less, in both sides. With dear little irrational, transcendental Pi there, the whole lot does suggest solids of revolution.

So is your use of u and v a convention across three-dimensional geometry and algebra? If so, it makes my tea-stained specimen (probably from some museum gift-shop) a little clearer. Was Green talking about Surface Area (U) and Volume (V) of a swept space - such as that occupied by your beautiful drawing?
Nigel.

TC 2024 Deluxe on WIN-11 PC, on-line (this one). TC 2019 Deluxe on WIN-7 PC, off-line, now used as an archive. Hobby use (Model-engineering).

Jeff_in_90620

Quote from: NigelG on January 05, 2022, 03:10:59 PM
Do those letters u and v have common, defined purpose, like (x, y, z) or pi, generally in this area of maths?

To my understanding, u and v are 'inspired' by x and y in coordinates used for mapping an image onto a 3D surface.  This allows all four variables to be used at the same time without diacritical marks, subscripts , etc. while also guiding the reader's interpretation.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Henry Hubich

Nigel, I'm no mathematician either. My understanding of the u, v convention is barely deep enough to use it in the various TCad "Laws," and not always successfully at that.

Henry H

NigelG

Thank you Jeffin & Henry.

George Green developed the equation (or identity?) I quoted, way back before electricity, let alone computers, but your remarks do suggest I was on the right track.

Your raw equations are trigonometrical, but the computer uses them to make Cartesian (x, y, z) traces.  Green seems to have been considering regular surfaces produced as the skins of solids of revolution, so perhaps analysing the same thing from co-ordinates only.

Intriguing, and there are times when I wish I could have learnt mathematics to that level!   

Even so, my first computer, an Amstrad PCW9512, came with a BASIC compiler, and with a text-book at hand I managed to write various short programs. One converted survey measurement sets (length, compass bearing, elevation angle) to (x,y,z ) co-ordinates. 

I never found how to make BASIC write and read data files, unfortunately! However, this example's mathematics worked and although I did not learn to make it create screen graphs, it duly printed each co-ordinate triplet on paper, line by line, as I typed in the raw measurements! It was intended for processing cave-surveying data into a centre-line plot.

(The Amstrad PC could generate 3D effects. Perhaps remarkably for a 1980s "home computer" intended primarily for word-processing, it also had a chess game which represented the board and pieces in 3D perspective. Errr.... now I realise that a real expert could have asked it to plot those surveys in 3D! )

Since then (early 1990s) others with appropriate programming skills have created much more advanced, essentially CAD, versions which allow such functions as overlaying the plotted centre-line survey on a map or aerial photograph of the landscape. The measurements are not mutually related numerically, like that sphere's co-ordinates, but are very random within overall trends. Nevertheless, given a way to enter the measurements in suitable form, I wonder if TurboCAD  could be used for similar geographical-survey plotting as well as for the extremely-mathematical generation of complex regular solids.
Nigel.

TC 2024 Deluxe on WIN-11 PC, on-line (this one). TC 2019 Deluxe on WIN-7 PC, off-line, now used as an archive. Hobby use (Model-engineering).