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.

Boolean operations on Surfaces?

Started by SManMTB, May 19, 2015, 10:55:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SManMTB

There are more elements in the model to the left.

samdavo

#16
True, and that could be partly to blame -  but equally there is a central "keel line" in each case, - the surface patch ( cyan) one is a smooth curve through this - whereas the surface connect (magenta) version has a major discontinuity of slope there. (2 cents) 

Furthermore, when viewed in elevation, the second one is more of a V than the first. 

samdavo

#17
SMan
Oops
when I redo those surfaces, surface patch and surface connect,
a) with the same / similar element size,
b) with 5 surface connect profiles (ends, centreline and quarter points), and
c) with "smooth" ticked in the case of surface connect ...

you do indeed get virtually the same surface.
I owe you (and DCAD) an apology.
(the left one has magenta behind cyan, the right one has cyan behind magenta, i.e. perfect match)
cheers

PS The main difference (if you look carefully) is that the width of those elements varies more in the case of magenta surface connect.  Hence at the end of the day, I still prefer surface patch for this application (2 cents)

SManMTB

No need to apologize. What is it for anyway?
:)

samdavo

#19
Just thought I'd reinvent the saddle.  I have a theory that it would be better for mankind if we left the wheel behind  :)

PS just playing around with hyperbolic parabaloids.   
Actually I would love to know the best way to add a surface (approx same plan dimensions 80x80) onto a surface that is "pretty much exactly" L/40 = 2 thick.   Here's one way - and that is to add small cones 2mm high, and draw curves through the apexes, then surface connect them.    You get there in the end, but it's pretty slow.   

prl

Sam, isn't this one of your Zen zingers?  If the world were a logical place . . . . .  Ouch.

samdavo

#21
Yep, not the first time I've looked into it  - and it's much easier and more accurate if you use a smaller grid - !? lol
(doh) 

Just that it's one of those procedures that Solidworks does easily. 

Speakin of Zenn I understand that the Canuks have a new car called the Zenn = Zero emissions no noise - made in Quebec - which incidentally they can only sell outside of Canada (with the exception of BC).   :)
Bit like the tesla (spelling ?) I guess. 

http://www.youtube.com/embed/Ri2BG2qOvCg?feature=player_detailpage

Next book will be Zen and the art of Zenn maintenance (?)

or maybe Yoga and the art of Yoda maintenance (?)

Homer Simplson maybe , DOH and the art of DOHC maintenance (?)

PS and speaking of DOH, I see that that youtube is 8 years old lol (!)

SManMTB

A bit of an update on this work and it might be useful to some working on similar projects.

The initial question in this thread is still valid and the answers here in this thread is and have been very useful. In this particular design case the sequence I used for designing a propeller was flawed from the beginning. Moving to a design method using surfaces and solids was done way to early. It worked out better to define the shape of the blade using a few simple lines. With just 10 profile segments spaced equally from the center of the hub to the edge of the propeller it was then easy to generate a tight mesh with quads using 'Surface Connect'.
Snap to intersection between Plane and Line is a great function.  ;)

The design is aimed at 3D printing which is the reason to generate a 3D object made up of a tight mesh to provide a high enough resolution of the surface so that the end result is not dependent on the model itself but rather the resolution of the equipment used to print the object.
For a classic subtractive manufacturing process (fancy word for CNC milling for example) this method is not 100% optimal since the resolution of a CNC is much higher than the resolution of the mesh generated here.

Attached are two screenshots. One is from the zero thickness DCAD design and the second is the blade after a simple thickness modifier has been applied. Look good doesn't it?!

The key step here was to mind the fact (as pointed out by DT I think) that there will be duplicate points generated when exporting a model containing polygons that share points in space. It was easily taken care of by built in functions in Blender to merge vertices located at the same point in space and also a function that removes duplicates.
The resulting model was perfect!  :)
Without doing that the model was a complete mess.

Exporting from DCAD and Importing to Blender was done using DXF (2013) files.

There is nothing wrong with DCAD if anyone thought I said that. It was just a bad way of designing. DCAD v24 did however crash several times when using operations on 'Solid Surface' items and I'll post a file that can repeat this in simple steps, it might be a while .....

samdavo

#23
Sman,
Thanks - must give Blender a go - one day soon.

As for propellers,
Phil (Dr PR) did one of those a while back - reply #14 here :-
http://forum.designcad.com/index.php?topic=6095.msg43295#msg43295
cheers

SManMTB

That's a nice propeller (an I have seen the utterly impressive ship model)  :).

The propeller design is still completely useless as a real working propeller. The cross sections of a submerged marine propeller needs to be made with real NACA airfoil shapes. This one is supposed to be a surface piercing Cleaver style propeller and they use a wedge style profile.
There are surprisingly affordable simulation packages ($500-$800) or so that will calculate, simulate and generate a model of an efficient propeller. Affordable is relative ;D


samdavo

#25
Wowo - interesting. 
Some want to be propelled into the 21st century,   ...  some get great satisfaction in  trying to squeeze the most out of every skill that was available in the 20th :)

PS Doubt I can afford USD 500 to design a new NASA propeller.  Get my teeth into it as they say (speaking of cavitation, reminds me I have to get a dental checkup one day)
I can tell you one thing!!  It will take a long time for a propeller-driven spaceship to get you to the moon !! :)

Oops NACA, not NASA

Dr PR

Sman,

I was trying to translate a late 1930s to early 1940s blueprint into a DesignCAD file. The drawings defined how to make a wooden plug to be used for sand casting, using a series of lines and arcs of defined radius. The foundry would have used saws and files to create the final shape - not nearly as sophisticated as modern computer generated surfaces.

I still haven't gone back for the "final" pass, but I have given it some thought. In order to create the double radius surfaces at the base of the blades it will be necessary to make a single grid surface that extends from the tip of one propeller blade down to the base, then across the surface of the hub and back up to the tip of the adjacent blade. An array of four of these will define the surfaces of the blades and the hub between them. Separate grid surfaces will be needed to produce the 0.0625" radius around the edge of the blades, and to complete the hub.

As you have discovered, the secret to creating a complex surface like this is getting the template lines right. That involves a sequence of lines, grids, lines, grids, etc., where each new grid serves to create new template lines until you get the final grid that models the surface. It is a successive approximation technique.

One purpose is to illustrate the propeller, but I also want to generate a NC machine file to drive a three axis milling machine we have at work. For modelling at 1:96 scale it will be necessary to fatten the blades in order to machine them. At 1:96 scale the thickness of the blade would be only 0.0068" thick at 0.95 radius (near the tip) and about 0.035" thick at 0.5 radius, with a 0.00065" radius edge. I suppose there might be 3D printers that can work with this resolution, but the result would be very fragile.

Phil
DesignCAD user since 1987

SManMTB

PR,

That propeller from the (amazing) ship project has some complex curves. Can't be easy to draw the curves by hand and make a surface fit to it without wrinkles. From what you've described it sounds like some good old manual lofting technique was used. I've drawn a few hulls by hand in this way and it's quite ingenious in its simplicity.

I haven't done this in a long time but IIRC three views are needed for a hull. Top, side, and front/rear view with a few key profile curves in the side and top views followed by the profiles of all hull sections in the front/rear view. To check for a smooth shape a few diagonals are drawn in the front/rear view. The profile curves are then adjusted until all points line up correctly (cryptic explanation  ???).

For some reason I found this to be easier to do by hand than using CAD. There are limitations to the Curve/Bezier tools that simply doesn't exist with a pen.

The shape of a propeller is pure geometry and as long as the pitch lines on the radial sections are calculated correctly a blade profile can then be applied. The blade profile in it self is a different story. It takes some serious studying to be able to calculate this with any great success.
For a surface piercing cleaver type propeller this seems to be a bit easier (not the blade profile calculations itself....) since there are a few profiles that are commonly used. I have no PhD in this subject but it's fun learning about it.

The 'Surface Patch' command in DCAD is actually a very nice lofting tool. It's got some quirks but once wrestled into submission it makes very nice shapes. It is way better than the Loft command in Blender for example. There are however other ways to do that that results in something very similar to lofting in DCAD.

After some more playing around with this it turned out that using the snap to line-plane intersection tool was the absolute best way to define the shape of the propeller blade and working with surfaces and solids only resulted in a substandard mesh.
I'm probably also going to stop using the OBJ export macro or at least use it less often. DXF export is just easier to use when working on a drawing/model with many layers as each layer ends up being a separate object in Blender. Very handy indeed.

Christian

Dr PR

Christian,

"Surface Connect" works OK if you don't have sudden changes in surface cross section. See the attached image. At the end of the keel the hull surface ends, but higher on the hull it continues to the stern. I tried many different ideas and could find no way to make "Surface connect" work over this transition. It always produced a really twisted and wrinkled surface grid.The solution was to create several different grid surfaces - each shown in a different color.

Getting a smooth transition between the joining surfaces is tricky. I used vertical cross section frames as the template lines for the surface grid. Inspection of the shaded surface revealed wrinkles in the surface,  but it is hard to decide just which template line to tweak.

The solution was to create horizontal (XZ plane where Y is up) contour lines (water lines) at different elevations with the "Draw/Lines/Contour Line" command. I did this on a separate layer, and after all other layers were turned off I could rotate the view so I was looking down the length of the contour lines. This revealed even the slightest irregularity in the curves. With the template line layer visible it was clear which lines needed to be modified.

Then I generated new hull surfaces and repeated the process until all the contour lines were smooth curves. This usually requires three or four iterations to get a really smooth hull. The final test is visual inspection of the shaded surface with lighting from different angles.

Phil
DesignCAD user since 1987

SManMTB

The end result after a ton of calculations.
It's a 48mm diameter Cleaver type propeller with progressive pitch and a slight cup on the trailing edge. Rake angle is 15 deg.
(leading edge pitch 69.7mm, 77.7 nominal pitch and 11mm cup).

The blade has a wedge type profile. The profile was calculated in LibreOffice Calc (Open Source Excel) for each pitch line and exported to an '.xyz' file.
Opened up in DCAD 24.1 and then using 'Surface Connect' on the imported profiles for minor lofting and then exported to Blender with '.dxf'.
Final tweaks and smoothing/lofting/render in Blender.

Not much of a DCAD exercise. It was a 90% math problem to calculate the blade profiles.