DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

surface connct and surface patch

Started by samdavo, April 29, 2013, 02:13:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

I realise that there are other threads which talk about boat hulls.
Anyway I enclose the result of constructing a clinker-built hull from first principles, namely plank by plank.

On this occasion, SURFACE CONNECT is the only option I believe.
To be honest I tried to draw the surface with all planks selected, but some of them twisted - I 'll show that next post). So I ended up drawing the planks individually.

samdavo

#31
and here's a zipped file of the dcd drawing.
- also a view inside the hull, (left)
- and underside (right)
  using Sketchup (not very clear on this occasion - probably too fine a grid).

prl

Quote from: samdavo on May 04, 2013, 07:51:08 AM
Firstly, I'll mention that I believe it is very difficult to accurately draw a line normal to a surface with high curvature.

The math will let you do it 100% accurately.  The problem stems from deciding which surface normal you use and if the surface has high curvature, there are literally hundreds of surface normals occurring in a small location and they are pointing in different directions.  To get something that looks correct, you will need to take an averaging cluster of the surface normals . . . or easier yet, simply eye-ball it.

samdavo

prl
you may note that SOME of the lines drawn in the enclosures ( couple of posts back) look parallel,  These are drawn on a grid element.  and opposite corners of something that looks like a rectangle.   Hence I believe (well clearly doh) that choosing three points with mesh will calculate the normal to the plane through these 3 points.

I enclose what I mean by choosing best fit for the icecream cone method.   If involves drawing a circle (using three points at about 120 deg) on the intersection of a small sphere centred on the point , - so (I believe/hope  I am correct), the program has corrected the intersection, so that it is not about mesh density.

But also, knowing the curvature, you can pick the 3 points to be representative. - and hopefully as I say roughly equally spaced.

The sphere was 4mm rad.
the 3-point circle is 3.96mm.
I use Infobox to increase this radius ( maintain the centre) to 4mm.
Then I plant a cone (circle 4mm rad, 200mm high) on that "slightly-enlarged-best-fit-circle".   

And incidentally, it's not as time consuming as you'd think. ( 2 cents)     

samdavo

#34
Here are numerous "pine tree cones" on that highly curving saddle.
I had to take particular care with the one on the axis of the saddle - but I didn't assume it was vertical for instance.  (Praps you can see whay I called it the ice-cream method)

Dr PR

Sam,

That is a good way to get "good enough" normals to a complex curved surface. Wish I had thought of that! I drew a 3D American flag and getting all of the stars mapped onto the curved surface required me to determine the normal to the surface and find the intersection of a star-shaped grid with the surface. I was using the perpendicular to a surface function, and that was a lot more work than your method:

http://forum.designcad.com/index.php?topic=3357.msg18034#msg18034

Here is a link to a really complex plated hull built up plate by plate using "Surface Connect:"

http://www.okieboat.com/CAD%20hull.html

Phil
DesignCAD user since 1987

samdavo

PS that took 1 hour 20 m sheesh.
needs a macro ...

input "set a point on surface, (pointmarked)
input "diam of sphere (small)"
(do the Solid Intersect between curved solid "plane" and the small sphere)
pause whilst it asks you to draw a best fit circle with 3 points to make a 3 point circle on the "halo".
using those points, calculate and draw line from centre of circle normal to the surface,
strictly move it back to the original pointmark.
for another manyana after manyana.

samdavo

Thanks Phil,

On another subject, somewhere I said you could change the density of grid lines from medium to coarse, then change them back again.  WRONG, (doh).

This started when I realised that the intersection of elements at the centre of the saddle (which I will call top dead centre TDC) was sloped in each direction for a 37x37 grid,  but would be flat with a 36x36 grid.   And that would be MUCH easier to get a perpendicular line at that point ( which should be vertical obvsiously).

I enclose
a) the orig 37x37 grid , including a zoom-in - nasty slopes everywhere
b) what happens when you change that to 36x36 - flat slope - dead easy to draw a vertical normal line;
c) heck I thought , why not make it coarser still , say 12 x 12, thinking I could always change back lol

more to follow with the Blooper of Bloopers ...

samdavo

The problem is that when you try to go back to 36x36, you get this ... (self explanatory :)  )
cheers,

PS the moral of the story is to go with even numbers from the getgo.
PS In case you didn't know, when you also do it in hindsight, explode an unpolluted Surface you get a grid, and there is the option there to "change grid lines"  . 

PS (But if you have a polluted surface with Bug ALements, you explode and get a stack of broken triangular and "warped plane" fragments, 2 cents)

samdavo

#39
Here's the 37x37 seen in plan (Surface Patch)-
and the supereasy change to 36x36 which gives you a little horizontal plane at TDC - heck you just draw a vertical line - no need to go to any trouble whatsoever !  WTG boris!

NB  PS as per next post ... For Surface Patch, to end up with a 36x36 grid (grid points x grid lines), you start with a 35x35 planes (across and down - these are obviously internal planes).

Dr PR

Sam,

I am getting a kick out of all the things you are trying with complex grids and solid Booelan operations.

It makes me think back about 15 years to when 3D was added to DesignCAD. Nothing worked right when you used the Boolean operations. Bits and pieces of unwanted grid elements remained and some essential grid elements disappeared. It was necessary in every case to explode the resulting solid, then explode the grids, manually delete the extraneous grid elements and draw in the missing pieces. Then you had to select all the pieces and redefine them to be a solid. Every solid Boolean operation was extremely tedious and time consuming.

However, even the early DesignCAD would do extremely difficult operations like subtracting a helical solid from another solid with irregular surfaces. Back then some $20,000 CAD programs couldn't do that!

I guess that is why I am able to tolerate the layer 0/Aluminum material bug. It is very easy to correct (in most cases). Still, I look forward to the day when we don't have abug to correct.

Phil
DesignCAD user since 1987

samdavo

#41
(edit - thanks Phil, and for your many tips - and please don't stop with your ideas, criticisms and comments lol)

ok - Slowly the many keys to this flaming Kingdom are dropping from the ether.

1. For Surface Patch, to end up with a 36x36 grid (grid points x grid lines), you start with a 35x35 planes (across and down - these are obviously internal planes).
(easy)

2. And for Surface Connect, to end up with 36x36 grid,
a. you start off with 35x70, (the first number must be odd to sort out the z dirn at least, but no matter whether the second number is odd or even you get that "wedgee" discontinuity down the centre (YZ plane).  Best to have lines parallel to YZ close together.
b. Then afterwards, you go into Grid Change , and make that 36x36.

And for both SC or SP you end up with a flat element at TDC (QED)

(PS maybe the right choice is 35x71 rather than 35x70, but I doubt that the difference warrants to time to check it out further .  I checked both incidentally, one gave 36x141, the other 36x143 - ( I notice there's a typo in the text of the dcd that says 35x70 gives 36x143 , which is not strictly true, but if I hadn't mentioned it, no one would know lol)... either way there was an odd number of grids for the second number - and it had to be changed to 36x36 in any case so ...

... the important thing imo - my immediate goal anyway - was to get a flat horizontal element at Top Dead Centre )

samdavo

#42
Quote from: Dr PR on May 04, 2013, 10:47:47 PM
Sam,
...  I am able to tolerate the layer 0/Aluminum material bug. It is very easy to correct (in most cases). Still, I look forward to the day when we don't have abug to correct.
Phil
PS As for the ALements - I sorta like the option of breaking the glass pane - with a bullet make that astreroid - through the gravity mesh for instance,-  and getting two layers in the surface - one of which can be deleted - and invariably there is a logic in the pattern of either layer 0 , or the original (1 in the above cases) - I refer anyone interested to the pattern on the saddle at start of this thread for instance - or the hammered Moon/Earth gravity field on the Hammer and Cycle Wheel thread - you can't do that with ACAD to this day !!! :))

PS I think it's called glass 110,010% full.   ( in binary :)  )
You know there are 2 types of people, those who think in binary, and those who don't.   cheers sam.

(edit) that's a much better joke when you don't screw up the punchline lol , should be "there are 10 types of people, those ,,, etc"  But it's also one of those jokes that only works when you write it down :)

samdavo

Quote from: Dr PR on May 04, 2013, 09:33:19 PM
Sam,
...
Here is a link to a really complex plated hull built up plate by plate using "Surface Connect:"
Phil
Thanks Phil,
As Dan Quayle used to say, so you say potato and I say potatoe...

So you say "Disjunction" and I say "the Solid inter-section-bit-shared-in-common"
you say "strake" (what the heck's that) , after I google it, I find that I  say "clinker plank" lol.

good old google ... "A strake is part of the shell of the hull of a boat or ship which, in conjunction with the other strakes, keeps the sea out and the vessel afloat. It is a strip of planking in a wooden vessel or of plating in a metal one, running longitudinally along the vessel's side, bottom or the turn of the bilge, usually from one end of the vessel to the other."

One day I'll draw a clinker-built aircraft carrier - just to show you up lol.

Serious question, did you really do that with DCAD?

"The plated hull model was a six month project. There are about 480 individual plates in 15 strakes. Five strakes at the bow were arranged vertically and the remaining were horizontal. Plating overlap was complex, with some plates overlapping their neighbors above and below, some overlapping the lower strakes clinker style, and some strakes just butted together edge to edge. In this drawing individual plates within a strake are shown in alternating dark and light tones of the same color. Port and starboard sides were mostly the same except for positions of hull openings. However, the A strake (red) just outboard of the keel (green) and keel riders (blue) had a slightly different plate arrangement so plate edges did not align on opposite sides of the keel. Click on the picture to examine the plating in greater detail. "

I assume the colours in the attached are relevant to how you drew it.  Did you make a stack of small surfaces - and somehow treat the boundary conditions to be relatively bumpless?

After all , these days, AFAIK, they build ships in "chunks between planes of bulkheads" and weld-em up. (?)

bUT CONGRATS, that is incredible (however you did it). cheers

samdavo

#44
Herewith some early attempts
a) one with one application of Surface Connect (the outline of all planks , zigzag somewhat smoothed, in one line) - horribly bumpy  (I have cheated, sliced it with horizontal planes, coloured them - at least it gives an idea of the plimsoll line / waterline whatever - empty and full (2 cents), which is another way of saying these are contours of sorts, to visualise the surface.  ( 2 cents).  Note that there is clearly a twist in the red "gunnel plank/layer".  Why? probably the way I drew those lines. Whatever, lol, thanks Bhuddha I don't draw ships for a living - I'd be begging for a hamburger.

b) another (getting better.png)  where I tried to do the clinker planks one by one using Surface Connect.  (At one point I thought about "extrude along a curve" because each plank is 150x20...
but clearly there is more to Surface connect that that , i.e. the twist as it extrudes -   

The error here was that I clicked on the wrong point for one of the cross sections, (probably top left where the others were top right or whatever) , and ended up with my clinkers in a knot :))

PS turns out that my free trial period with Sketchup7.Pro have come to an end. ahh well - fun while it lasted, but sheesh $500!!!