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.

How do I create a fillet along a curved edge that is placed on a curved edge?

Started by ricknsharon, February 10, 2015, 10:59:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ricknsharon

DesignCAD ver 24.1  3D Drawing

Imagine a small ball stuck to the side of a larger ball.  How would I create a fillet where the two mate?  I've tried creating a fillet shape and extrude along a curved line but the outer edges of the fillet doesn't touch the solid surface in all areas because of the curved edges.  I've done this along straight edges but never a curved edge in two dimensions.

Is this even possible with DC?

Rick

samdavo

rick
how about doing an hourglass shape, (where the waist represents the fillet) - and sweeping around a vertical axis?

ps There was also some discussion on fancy fillets with surface connect here :-
http://forum.designcad.com/index.php?topic=5208.msg34441#msg34441
eg the loco chimney.  (2 cents)

PS I would have guessed that cylinders meeting cylinders was more difficult than spheres.

JJG

fast all is doable in DC.

For what you are asking for, use for example "Surface Connect" (found in "Draw"), after having placing all desired sections were they are usefull.

ricknsharon

Thanks for the replies, I will spend more time looking at the link provided.  I mispoke when I said a small ball on a large ball, it's really a small cylinder embedded into a large ball, but from the replies it looks like it can be done, I just have to learn it.

In the help link provided it mentions this link but it appears that the page is down. Does anyone know if it moved?  http://www.crossresolution.nl/3Dspace/premium.php

Ol' dogs learn slow....
Rick

samdavo

Rick
Still sounds pretty easy - Sweep (W) and spheres go well together.
And all the grid lines should be 'sealed' / waterproof
cheers
sam

Dr PR

It is easy if the axis of the cylinder passes through the center of the sphere. You just need to define an arc that is tangent to the surface of the cylinder and the sphere, and sweep this arc around the cylinder axis.

This is generally (but not always) true if individual objects have a single axis they are symmetrical about and these axes intersect.

But if the cylinder axis doesn't pass through the sphere's center you will have to do something like the smokestack in Sam's example. Create a sequence of tangent arcs and connect them with "Surface Connect."

****

There is perhaps a better way to accomplish what you want - see the attached picture. Draw the sphere and the cylinder, being careful to align the axis of the cylinder to the axis of the sphere from point to center - and use the same number of facets in the cylinder and sphere.

Then just draw a "template" line down the side of the cylinder to where it intersects the sphere, and then on around the sphere to the opposite pole. You can see the points of this line highlighted at the left.

If the facets of the cylinder and sphere don't line up you can draw a plane that has one side along the axis of the cylinder and intersects both the cylinder and sphere, and then use "Draw/Lines/Surface Intersection" with the cylinder and with the sphere to generate lines that follows along the surfaces of both. From these you can produce a single template line that follows the surfaces of both cylinder and sphere.

Next generate a circle of proper radius tangent to the template line (Draw/Circles/Circle tangent to two lines) where the cylinder and sphere intersect (second from left).

Now use the "Draw/Lines/Perpendicular to a line" function from the circle center to points perpendicular on the template line.

Then draw a segmented arc using the circle center and the perpendicular points (third from left).

Using the template line and the segmented arc, draw a plane (P) that follows the outline of the cylinder, segmented arc and circle. This is the light blue cross section fourth from left.

Finally just sweep the cross section around the cylinder/sphere axis and you end up with the "Florence flask" true solid shown on the right. It has no leaks or internal surfaces and is ideal for 3D printing.

****

This method illustrates two important concepts. First, you don't have to use the initial solids generated by DesignCAD for further work. You can use them as templates to create new objects, like the "template line" in this example. Then you can discard the original objects. For some objects it is often useful to repeat this process several times (successive approximation) to arrive at the desired surface. This can be MUCH faster than fiddling with the original objects to try to make them "better."

Second, this technique eliminates the need to edit the original solid and sphere and try to combine them with the surface "skirt" you get if you sweep an arc or use "Surface Connect" to create the fillet surface. Such extensive editing of solids can result in missing facets, internal surfaces and "leaks" and any of these will cause problems with future edits or 3D printing.

Phil



DesignCAD user since 1987

samdavo

Here's a more complex fillet - using the necklace method - that didn't work out very well, lol.  (2 cents)

(Just filling in time during the ads whilst watching a movie)

samdavo

Quote from: Dr PR on February 11, 2015, 01:37:44 PM
It is easy if the axis of the cylinder passes through the center of the sphere. You just need to define an arc that is tangent to the surface of the cylinder and the sphere, and sweep this arc around the cylinder axis.
...
But if the cylinder axis doesn't pass through the sphere's center you will have to do something like the smokestack in Sam's example. Create a sequence of tangent arcs and connect them with "Surface Connect."
Phil
PROVIDED we are talking about a cylinder or cone that is intersecting a sphere, - AND their axes are vertically aligned - then it is dead simple to sweep a line about a vertical axis (as per either Phil's flask or my flask  - including the fillet.

OK - something I just discovered :)
PROVIDED we are talking about a cylinder or cone that is intersecting a sphere, - AND this time their axes can be at an angle - then it is STILL dead simple to get a fillet, albeit varying around the junction line.

Mission: To draw a tomato, with a green stalk out the top but not vertical and a fillet between.

1. Firstly (in 2D) draw a semicircle and a line and a fillet between them.  Make a plane. (MP).

2. then (in 3D) sweep the plane (i.e. everything!) about a vertical axis.  Think of this as a ball and a (vertical) cylinder / cone,  with a fillet between them that defines the start of a neck  (as per either flask above).
Note: If you hadn't already guessed, I am only sweeping 270 degrees, hence the quadrant missing

3. Select the flask and slice it horizontally at the low end of this fillet ( see the jpeg - you have a green head and a red ball below).

4. Now for the trick ... you have to distort this green neck so that its axis slopes to the right by eg 30 degrees.
Best way I believe is to go back to 2D,  then select just the green neck, with two handles at low left and low right ..  think of these as the two shoulders at the intersection of green neck with red ball ...

and then use Edit\Selection Edit\Four Point Move.     (This only works in 2D, but all points on the green stalk maintain their z coordinate) - whilst you stretch them  in x dirn PROPORTIONATELY compared to their y height -   It will need 4 handles - the first two should again be low left and low right - the the third and fourth should be the italic version of top left and top right.

5. Then when you go back to 3D you should have the cylinder (or cone) emerging from the top of the sphere, but now at an angle.  and a fillet between. (2 cents)

PS Infinitely neater than my previous example.

PS I add a third tomato that is just the second one rotated 180 deg about the vert axis - to try to show the neat mesh around the full (varying) neck.

cheers
sam

Dr PR

Sam,

Nice trick, but I would be VERY cautious about this. I used to do similar things to tweak an object just a bit, and it caused a lot of grief later.

When DesignCAD creates a grid (the fillet around the neck) it does so following some rules that produce grid facets with "proper" surface normals. If necessary, the program sometimes breaks the rectangular facets into triangles to ensure that every facet has one and only one surface normal (none of the planes is twisted).

I really don't know what your trick does to the facets in the resulting object. They certainly aren't what the program created originally. But if you have twisted some originally planar facets so they are not planar it can cause some really bizarre things to happen:

1. Solid Boolean operations may leave out some necessary facets and fail to remove some other parts when creating the new solid object.

2. Shaded displays may produce facets with a "bow tie" appearance where one part shows the proper illumination and the other shows the opposite side (shaded) illumination.

3. Facets with odd surface normals may cast shadows in the exact opposite 3D direction from where they should be (toward the light source instead of away from it). This causes odd shadow spots to appear on surfaces between the light source and the surface casting the shadow.

I have caused all of these problems in the past simply by moving individual points in a plane or a grid using Point Select mode. I have had to redraw months of work to flush out all of the messes that I created. I am far more cautious now!

Phil
DesignCAD user since 1987

samdavo

Phil
Fair enough.
In which case - and I suspect I read this in one of your posts - you could at least use it for a more accurate set of intermediate lines and use surface connect.   

You could either use
a) the "necklace" option,  where the lines (necklaces) to be connected are the horizontal contours;
or
b) small approx 90 degree fillets (well strictly varying approx 60 to 120 degrees).

Clearly a) would have a better "seal" with the neighbouring meshes below and above.

Back to that step that used four points for the "Four Point Move" - and just thinking aloud ok -
1. the first and second points will be horizontal (based on a sweep around a vertical axis)
2. and IF you choose the third and fourth points carefully so that they are also horizontal, and the same distance apart ( so that the points are the corners of a parallelogram), then each and every one of those contours (necklaces) will still be a horizontal circle.

ok- on this occasion, I believe I set the third and fourth points horizontal but not the same distance apart -  and hence the circles become more and more elliptical with progressively higher slices.

I'll add attachments as I do them - to avoid everything crashing and losing the work.

Firstly what happens when you slice the green stalk - which I assume qualifies as a Boolean operation - all the facets become triangles.

samdavo

I took a series of horizontal contours through that truncated stalk - with the 270 degree sweep, you find that each slice gives you the centre of the ellipse plus the minor and major axes - easily accessible.  (See points A B C ).

These become the necklaces for Surface Connect (full set of 4 quadrants, 360 degrees, 10 degrees per point, hence 36 facets when connected).
Finally I superimpose first draft (green triangular facets) - done with FourPoint Move
with the second one (cyan "rectangular" facets) - done with Surface Connect.
(2 cents)

Dr PR

Sam,

That is an excellent point! Even though you may have created some warped facets you can use that surface to generate template lines to be used with "Surface Connect." Then you can discard the warped surface and let the program create a good grid.

I get the feeling that many people don't fully appreciate the "successive approximation" approach for creating complex curved surfaces. They may keep trying to modify an existing surface or solid when it may be much faster and easier to start over using the first approximation as a template for making the next step.

When creating boat/ship hulls from a table of dimensions I have found it to be necessary to generate many successive versions with each being closer to the specs. Often I create a surface with "Surface Connect" and then examine it for "wrinkles" or other deformities. Then I delete the surface, modify the original surface template lines, and create another surface. I suppose I could use the "Hammer" tool to try to correct the surface deformities, but in my experience it creates as many problems as it solves. It is just easier to discard the imperfect surface and start over.

One other thing. You can move points around in the template lines for "Surface Connect" with a lot of freedom. There is not requirement that they all be in a plane. Then when you use "Surface Connect" the program will generate a "good" surface with correct surface normals. So it is better to move the points in lines or curves, where there is no restriction, than in planes or grids where you can create problems.

By the way, those are nice tomatoes! I guess it is just about the prime part of the growing season in Australia!

Phil
DesignCAD user since 1987

samdavo

Quote from: Dr PR on February 13, 2015, 01:57:05 PM
Sam,
... By the way, those are nice tomatoes! I guess it is just about the prime part of the growing season in Australia!
Phil
Phil
They just ripened  :)

PS I tried Hammer, but just ended up with bits of tomato all over the place !

PS Reminds me of Zen teachings :-
When the only tool you own is a hammer, every problem begins to look like a nail.
I used to be indecisive but then I read that statement.

PS What if there were no hypothetical questions?

more Zen here :)
http://forum.designcad.com/index.php?topic=5505.msg37384#msg37384

samdavo

Phil
Speaking of "smoothing", here's a post of yours from the archives :-
http://forum.designcad.com/index.php?topic=3812.msg21223#msg21223

It would be a nuisance - and of doubtful benefit -  to do it multiple times (more than once) for the tomato example in reply #7 - but it would no doubt help for the more complex fillet in reply #6 (i.e. macaroon with headphones). 

Quote from: Dr PR on July 28, 2011, 08:37:46 AM
Getting the surface perfectly smooth is mostly a matter of repeated fiddling with points on the original template curves.
Another trick for shaping a surface quickly is to alternate between horizontal and vertical template curves.

1. Draw the original template curves and create a surface.

2. Use the surface as a pattern for drawing a second set of template curves perpendicular to the first. So if the first set of lines were vertical sections, make the second set horizontal, and create a new surface from this.

3. Use the new surface to draw a third set of curves, again perpendicular to the last, and create another surface.

4. Repeat 2 and 3 until the surface is smooth.

This uses the tendancy of the "Surface Connect" algorithm to produce smooth surfaces between the curves to take out the kinks.
Phil

Dr PR

I guess the answer to "how many times" you should repeat the process depends upon how much patience you have.

The attached image of a propeller is a good example. The blueprints call for a varying radius fillet where the blade attaches to the central core. When I did this drawing five years ago I was just learning how to tame the surface connect function. Just drawing the variable pitch and varying width blade was quite a challenge. I think it took me about a week to create the template lines for the blade (one set for each side of the blade) using the alternating horizontal/vertical template lines.

Then when I tried to figure out how to flair the base of the blade to meet the curvature of the core it all went astray again, with ripples and waves propagating all over the place. I tried a separate fillet surface but I couldn't eliminate the visible crease where the fillet and blade joined. Then I created template lines for the blade and fillet and made one surface.

Eventually I got tired of repeating the same thing over and over again and just settled for the best result. As you can see, there are still some ripples at the base of the blade.

One of these days, when I'm feeling like a glutton for punishment again, I'll try to get those ripples out. I think what I may have to do is create a continuous surface from one blade surface across the central core and up the adjacent blade surface. That way there will be no seams at the base of the blades. So the surface will the adjacent sides of two blades and the core between. The part of the core from the point back to the blades and the other part from the blades to the base of the core will be two additional surfaces.

Phil
DesignCAD user since 1987