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.

Fillets - cylindrical edges and spherical corners

Started by samdavo, November 04, 2013, 05:14:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

minstrel

Quote from: samdavo on November 05, 2013, 12:45:39 PM
The object is a triangular pyramid , like the randomly splayed random length legs of a tripod. 
The objective - radius 4 on eah of the vertical edges, plus a spherical cherry on top.

Ah-hah...now I see what you're after.  A 'cherry' on top!

Sam, you concocted some fine approaches [adding challenges within the challenges...that's just the kind of stuff you like, ain't it ;D.].  And though they are great for DCAD gymnastics they're just not practical solutions...especially if you intent to top all the different angled corners with those 'delicious' cherries...too difficult, too time consuming. 

Yet, Since I also enjoy a good challenge I gave it go.  Approached it basically with same approach as my 'ScreenCast' U-Tube for U - http://www.crossresolution.nl/3Dspace/tut_010.php.  Treated the triangle the same as if each corner was a tube...[never head of that before 8)].   First performed the 'fillet' on the sides then knocked [sliced] a circular chunk off the top.  Follow pretty my the same routine as seen in the ScreenCast...and finalized with an 'extrude along curve'. 

Sure it works, and it's a fun exercise, I personally choose to go elsewhere  for 'complex' fillet & blends like this...same way I do for final Renders...but if DCAD is all you have or intend to use [speaking to the masses] you can, indeed, get the job done!  That's where this forum shows it's greatest value...and posts like yours to 'stir' the waters ;)!

Last attachment reflects my point...model exported from DCAD, imported into Sketchup...fillets, smoothing, render...less than 4 mins..."No Muss, No Fuss"...

Dr PR

minstrel,

You can see in your example that not all surfaces are tangent to the "spherical" cherry on top. That really is the problem with most methods for attempting to round the point where three or more surfaces converge.

However, if you use tubes with rounded ends and then "Solid Add" you do get edges tangent to the sphere.

The "rounded cylinders" image shows the original gray cylinder at the left that was created using the Rounded Cylinder tool with a radius of 3 and eight sections - the cylinder had 36 sections and a radius of 3. Then I dupliated the cylinder three times, positioned all three with a common center for the hemispherical ends and rotated them about the axes to get the three-legged figure.

The "facets" image shows the shaded result before using Solid Add.

After adding the three solids the "extra facets" image shows the result. Lots of facet fragments like Sam got.

To be continued ...

Phil
DesignCAD user since 1987

Dr PR

#17
Next I created another "interior" solid with sides tangent to the cylinders - see "second solid."

Then I used Solid Add to combine the three-legged solid with the interior solid. The "solid add wireframe" image shows the result. The "solid add shaded" image shows the result after the new solid color was changed to cyan to get better rendering of the surfaces.

****

Of course to get the nice pyramid with all corners rounded I would need to create three more rounded cylinders between the ends of the legs of the three-legged solid and make the interior solid surfaces tangent to these cylinders before adding everything together. And for smoother facet intersections I could use a lot more facets in the cylinders and segments in the rounded ends (and get lots more facet fragments). Even then I'll bet the results wouldn't be as good as the SketchUp solid you generated.

But if DesignCAD is your only tool you can get a pretty good result with lots of work.

If the free version of SketchUp will do the rounded corners it would be a useful add on tool for DesignCAD just to be able to do this quickly and then import the result into DesignCAD.

Phil
DesignCAD user since 1987

samdavo

#18
Quote from: minstrel on November 08, 2013, 08:18:43 AM
... now I see what you're after.  A 'cherry' on top!
....  First performed the 'fillet' on the sides then knocked [sliced] a circular chunk off the top. 

...but if DCAD is all you have or intend to use [speaking to the masses] you can, indeed, get the job done!  That's where this forum shows it's greatest value...and posts like yours to 'stir' the waters ;)!
Thanks Minstrel.
  Appreciate your taking time to respond in detail like that.
You make a good point.  As often as not, these effects don't have to be perfect,  (or rarely have to be perfect) - especially if there's a note on the drawing "machine 3mm radius on all edges including corners". And as often as not, edges (for steel anyway) are simply ground, as a preparation for painting :).   

People using 3D printers may prefer something fairly accurate of course.

I think your simple slice is not itself circular at the intersection, (edit oops - of course it is when I look again at your wireframe jpeg :) - I thought you meant (in general) it was a horizontal slice, and I believe you have taken a shortcut by using a regular pyramid - in general it is not circular)  - AS YOU IMPLY, (think I'm right lol),  it is easier if one uses  the intersection of a larger spherical grid than necessary (eg 5mm radius instead of 4mm) and "the three-legged camel thingo",  -  in the end that "compromise approximation" -  should be a lot simpler than my method.   I'll give it a go "later". 

(edit - Something like chalking the end of a billiard cue.  But using 5mm radius concave sandpaper instead of chalk to wear away the point of a new 4mm radius cue) :) 

Quote from: Dr PR on November 08, 2013, 11:30:34 AM
Next I created another "interior" solid with sides tangent to the cylinders - see "second solid."

... And for smoother facet intersections I could use a lot more facets in the cylinders and segments in the rounded ends (and get lots more facet fragments). Even then I'll bet the results wouldn't be as good as the SketchUp solid you generated.

But if DesignCAD is your only tool you can get a pretty good result with lots of work.

If the free version of SketchUp will do the rounded corners it would be a useful add on tool for DesignCAD just to be able to do this quickly and then import the result into DesignCAD.
Phil
Thanks also PR - your drawing looks pretty much like I was getting.

Is it possible to use a coarse effect at that stage,  and then use "smooth shading" later to compensate ? 

PS One wonders if the day will come when we can interchange files with Sketchup (as against Sketchup Pro) = all as discussed a few times now (?)  (edit - two directionally?)

samdavo

#19
I understand that the Egyptians used DCAD V-2600  - and there was no chatroom then folks - you hit a problem, you were on your own :)
Quote from: wikipedia
The pyramid remained the tallest man-made structure in the world for over 3,800 years,[6]unsurpassed until the 160-metre-tall (520 ft) spire of Lincoln Cathedral was completed c. 1300.

The accuracy of the pyramid's workmanship is such that the four sides of the base have an average error of only 58 millimetres in length.[7] The base is horizontal and flat to within ±15 mm (0.6 in).[8] The sides of the square base are closely aligned to the four cardinal compass points (within 4 minutes of arc)[9] based on true north, not magnetic north,[10] and the finished base was squared to a mean corner error of only 12 seconds of arc.[11]

The completed design dimensions, as suggested by Petrie's survey and subsequent studies, are estimated to have originally been 280 cubits high by 440 cubits long at each of the four sides of its base. 
lol, whenever I hear the word cubit, I am reminded of Bill Cosby's skit about Noah's Ark :)  "righttte,   what's a cubit?"
http://www.youtube.com/watch?v=bputeFGXEjA
QuoteThe ratio of the perimeter to height of 1760/280 cubits equates to 2.pi to an accuracy of better than 0.05% (corresponding to the well-known approximation of pi as 22/7). Some Egyptologists consider this to have been the result of deliberate design proportion. Verner wrote, "We can conclude that although the ancient Egyptians could not precisely define the value of pi, in practice they used it".

Personally I believe that they were simply trying to preserve as much of the pi as possible. 

minstrel

Quote from: Dr PR on November 08, 2013, 11:23:32 AM
You can see in your example that not all surfaces are tangent to the "spherical" cherry on top. That really is the problem with most methods for attempting to round the point where three or more surfaces converge.

What a tough teacher you are, Dr PR!  Making me go back and redo the whole assignment... :D. 

It came out much 'cleaner' than the first effort, but as you point out the tangent [cherry top to sides] is still a bit out of wack.  This happened, no doubt,  because I used a 'half circle' to construct the 'cherry' and not a better shaped [tangent] profile.  Thanks for your clear presentation!

...and Sam,  the circle 'slice' appears to be symmetrical, in truth it does vary depending upon the degree of the fillets for the sides.   I did use a few, as of yet 'UN-advertised',  tips and tricks to pull it off...definitely "ScreenCast' worthy so I'll add it to the list 8)

...regarding 'pi', a few thousand years later, silly Marie opted to just "let them eat cake"!

samdavo

#21
Here's an example of the "degree of difficulty" when you have random legs of this particular three-legged giraffe.

I have set the "working plane" as the three points made by the apexes of the "nett triangles".
Aint no way that's a circle.  ( 2 cents).

Btw, in the course of setting the working plane, I manage to set everything upside down :).

PS I only say this because I'm having trouble compromising on the true "cherry". 

The quest to comprehend the compromise cherry :) Cheers
( But "let em eat cherries" doesn't have the same ring yes ?)


edit - by way of explanation, if you look at the third jpeg - how efficient would it be - for say a 3D printer - if we could just find a better way to represent the spherical part of this venture (compared to the cylindrical bits).

edit - I am tempted to try Dr Phil's idea of setting a "surface connect"  version of that "dome" based on the first-iteration-grid.
   


Dr PR

Probably a better way to do this is to first generate accurate geometry for the tangent lines to circles at the corners. This is moderately complex 3D geometry but not all that difficult once you get the hang of it.

You can start with the basic shape with non-filleted edges and corners, and use this to determine all the angles. After generating circles in the proper planes for the corners you can create the tangent lines between each pair of circles. Then you can extrude curves along the tangent lines to create the filleted edges.

Draw a sphere at each corner and determine the intersection of the filleted edges with the sphere. After finding the intersections reconstruct the filleted edge using Point Select mode to bring the end points of each facet to the intersect point with the sphere.

After all the ends of the facets of all fillet edges are repositioned you can explode the sphere and delete all of the interior facets. This will leave only one set of facets for the "cherry," but there will be a few holes where the filleted edges meet the sphere. Draw triangular planes to fill in these gaps.

After all corners are finished, select everything and use Solid Define to make it a solid.

This is a lot of work but it will eliminate all the scrambled tiny facets on the rounded corners. If done correctly it will also create a non-leaky solid that can be used for 3D printing.

Or, just use SketchUp to create the solid and make the STL files for printing.

Phil
DesignCAD user since 1987

samdavo

#23
Phil
I go along with all that. Thanks.  I suspect you end up with something not dissimilar to my earlier reply (see third jpeg - I draw the white triangular facets as is they were white wool to stitch up the "transition seams"). 

But - just for fun, (a self-admitted diversion, and I end up ignoring this), I thought I'd try to set a new 2nd-generation-grid, based on the fly-eye-grid;  starting with horizontal slices through the cherry, and surface connecting these.   But clearly I wasn't careful enough, because twists started to creep in - and I am assuming that those coarse twists would be unacceptable for 3D printing. 

So in summary, I end up with either
a) the fairly accurate version with manually-stitched-up seams, (third jpeg) or 
b) the one you and I both drew with multiple small fly-eye facets, faster easier but more hungry on memory. (fourth jpeg).   (Maybe an imagined problem? So What?)

My question then is directed to a 3D-printer-person, how hard would it be to print option b (fourth jpeg)? 


samdavo

#24
Phil
PS - I've actually tidied up the white hand-sewn seams since I first posted them on this thread, (reply #8) trying to have triangles as equilateral as possible, as against narrow isosceles or worse  -  it gets easier with practice,  P= plane, 3 points;  P=plane, 3 points :)   -  although some "splinters" can't be avoided - I used to read your posts about this process, thinking it sounded like a nightmare lol, - but in fact it's not that bad - cheers

Dr PR

Sam,

That looks pretty good.

I'd bet there is no chance the fragmented pixel end surface would print in 3D. There are too many redundant little extra fragments for the STL translation to work. Your latest post just might work though.

The hand stitching is a bit of work, and on really complex surfaces it can be a bit of a mind bender. But if you just must have the surface it is often the only way to get it.

Phil
DesignCAD user since 1987

Dean

Quote from: Dr PR on November 10, 2013, 12:49:29 AM
Sam,

That looks pretty good.

I'd bet there is no chance the fragmented pixel end surface would print in 3D. There are too many redundant little extra fragments for the STL translation to work. Your latest post just might work though.

The hand stitching is a bit of work, and on really complex surfaces it can be a bit of a mind bender. But if you just must have the surface it is often the only way to get it.

Phil

Phil,
how about accutrans 3D and meshlab for mesh repair
> export the 3D entity as an dxf from Dcad
> import into accutrans 3d >export binary stl
> import into mesh lab > repair mesh
>save.
> Great set of tools. These people are generous enough to write these programs.
You can't expect Dcad to do everything, it comes close though.....
Sketchup is a great program. I've been using it since the company started but there are many other free programs or low cost programs that produce similar results if not better.  Design cad works well with sketchup because they're both polygonal modelers. Been using this combo for years but I find when I need to figure something out it's always in Dcad.....
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

samdavo

#27
Quote from: Dean on November 10, 2013, 05:58:02 AM
Phil,
how about accutrans 3D and meshlab for mesh repair
> export the 3D entity as an dxf from Dcad
> import into accutrans 3d >export binary stl
> import into mesh lab > repair mesh
>save.
> Great set of tools. These people are generous enough to write these programs.
You can’t expect Dcad to do everything, it comes close though…..
Sketchup is a great program... Been using this combo for years but I find when I need to figure something out it’s always in Dcad…..

Thanks Dean - the only problem I have with Sketchup is that SU-Pro costs $500.   (Would be good if DCad could export SKU files).
At this stage I persevere,  and check out exactly how close Dcad can come to "doing everything".  (and these problems are rare and arguably extreme , i.e. random pyramids etc ).

A bad workman always blames his bools as they say :) 

Dr PR

Dean,

The DesignCAD --> AccuTrans 3D --> Meshlab might work, and it is an inexpensive ($$$) way to do the job. I'd have to try it to see how it works though.

But all of those little solid "flakes" make the file huge, and the process will be very slow. I also suspect that not all of them are true 3D solids or are a part of the domed end. If this is the case the 2D surfaces will cause the STL translation to croak. Getting rid of them will require looking at each facet one at a time.

In the long run using Sam's approach to stitch a single curved surface onto the corner will produce an object without redundant facets and 2D surfaces that will pass through AccuTrans without problems. I suspect it will take less time and produce a satisfactory result.

Phil
DesignCAD user since 1987