Live data from Hacker News

Draw an iceberg and see how it would float in water

joshdata.me

151–160 of 179 posts

Re: Draw an iceberg and see how it would float in water

#153

So without any further knowledge about how icebergs should orient and how scientists draw them: Icebergs in 3D will generally have different mass distributions than the corresponding 2D projections that we are drawing here. For example, there will generally be higher "2D mass density" in the center. Consequently, it is possible that the scientists "drawing icebergs wrong" are actually right and it just looks/"behaves…

It's just potential energy minimization. A tall thin iceberg will float on its size in 2D or 3D.

That’s assuming the 2D representation is representative of near uniform density. In 2D an I-beam and and a solid beam look identical, but they don’t represent the same amount of mass for potential energy minimization.

Play with 3D shapes and you could get identical 2D cross sections to float in arbitrary orientations.

Re: Draw an iceberg and see how it would float in water

#156
post #9

I get interesting results if I draw a figure 8 (or a figure ∞). I wonder if it's treating one of the lobes as having negative density.

I think this was patched just now. On my last visit a few minutes ago the bug still worked, now it removes any larger bits where the lines intersect. Also, the code has been amended right where this comment is: // People like to draw shapes with kinks, which results // in part of the polygon being treated as negative area. // turf.unkinkPolygon can be used to find the kinks and // separate the polygon into multiple p…

Damnit it was so much more fun before the "fix".

Re: Draw an iceberg and see how it would float in water

#159

You can create icebergs with 'holes' in them, which have very interesting floating behaviour [0]. It doesn't work every time, though. Not sure why. [0] https://imgur.com/a/0lcW8xT

This works for the classic ice-cream cone shape to induce stable dynamics too.

[0]https://imgur.com/a/F5TshLR

Post reply on HN