News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Making a flange

Started by MarkX, August 26, 2011, 09:20:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

Hi everyone!

Don't spend too much time on this -- its more of a curiosity question. This came up in a forum for another product and it was determined that it couldn't be done with a certain version of the software.

If you have two cylinders intersecting each other, and wanted to make a nice flange where the two intersect, how would you go about it? Is it possible? I'm thinking some type of surface patch followed by the hammer tool might be the ticket.

Thanks!
Mark

attachments

Dr PR

#1
Mark,

Do you mean a fillet - like you would get from welding?

I think of a flange as a flat, circular plate with bolt holes where two pipes come together.

If you mean a fillet at the junction of two cylinders, yes it can be done.

Phil
DesignCAD user since 1987

Dr PR

#2
Mark,

To elaborate, your initial idea is more or less what I used. I didn't use the hammer tool, however, because I have always been very unhappy with the results.

In the attached image I show the steps I followed. To simplify the image I used cylinders with a low number of facets, so the results are a bit crude.

1. The two cylinders.

2. I drew planes (green) from the central axis of the vertical cylinder to points on the outside of the cylinder. Then I moved the plane to the outer edge of the cylinder. I used the plane to find the intersection lines of the green plane and the cylinders (blue lines) with "Draw/Lines/Surface Intersection." The magenta line shows the intersection line of the two cylinders for reference.

3. I used the "Draw/Circle/Circle Tangent to 2 Lines" function to draw the tangent circles, using the same radius for all circles.

4. I then found the perpendiculars (Draw/Lines/Perpendicular to a Line) from the circle centers to the two tangent lines.

5. I used "Draw/Arcs/Arc (center, begin, end)" to create arcs between the ends of the perpendiculars, and erased the circles.

6. I used the arcs as template lines for the "Draw/Surface Connect" function.

7. I mirrored the surface on the X and Z axes to get four copies (could have used "Draw/Circular Array") and then combined them with "Solids/Solid Define" to get a smooth shading filet surface.

8. Here is what the original cylinders and the filet surface look like shaded.

Note: I made no attempt to trim the cylinders to the fillet with the solid Boolean operations. However, you could make a single solid out of the three objects with a bit more work.

Phil
DesignCAD user since 1987

Rob S

Dr, I tried to solve this, and I could not get "draw, lines, surface intersection" to work.

It kept either exploding the solids into grids, and then it failed.  I was using V20.

Are there any tricks to that??
User since forever

Dr PR

Rob,

I use the "Surface Intersection" function a lot and there are some problems with getting it to work, but not actually in the function itself.

If you have "virgin" solids or surfaces (unaltered in any way) the function always works more or less correctly for me, and has in every version from V12 on as far as I know.

However, if you use a solid Boolean function, such as "Solid Add" or "Solid Subtract" the resulting solid will be totally screwed up. The surface grid will be exploded into individual facets. If you try to use "Surface Intersection" on one of these modified solids you will have to execute the function repeatedly for every combination of intersecting facets, and it can be quite difficult to figure out which facets intersect when working in Wireframe view.

See the "surface intersection 1.jpg" image. I have found the surface intersection of the green plane with the red solid for every other facet of the solid.

When I need to find the intersection with a surface of a modified solid I normally just reproduce the original solids that existed before the solid Boolean operation. I do this on another layer, and then find the intersection of the surfaces of the new unaltered solids. This is a lot of work, but it is much faster than trying to find all combinations of intersecting surfaces.

This fragmented solid surfaces bug is so much of a PITA I often make two copies of solids and save one copy in a "junk" layer before using a solid Boolean operation. That way I have an original saved away in case I do need to find a surface intersection with a modified solid.

Obviously, the program should recognize all the facets of a modified solid and apply the "Surface Intersection" function to them all.

****

Another problem with "Surface Intersection" is that it puts a lot of intermediate points in the line between the places where the edges of surface facets intersect planes. The reason for this is that DesignCAD treats rectangular surface facets as a pair of triangles - this is how it generates smooth complex curved surface grids, which you cannot do with rectangular planes. When the "Surface Intersection" function creates the intersect line between a plane and a rectangular facet it generates three points:

1. A point where the plane intersects one edge of the facet.

2. A point where the plane intersects the hypotenuses of the two triangles making up the rectangular facet.

3. A point where the plane intersects the other edge of the facet.

See the "surface intersection2.jpg" image. The megenta line is the intersection of the green plane with the cyan surgace grid. The black arrow points to an intermediate hypotenuse point.

This image was made with V21.0 4/27/2011, and I must say this is a MUCH better result that earlier versions have been producing. V19 and V20 would have generated the intermediate hypotenuse points for every facet.

If you are trying to use the intersection line to snap to the edges of the facet the intermediate hypotenuse points can be an extreme nuisance and a cause of drawing errors. The distance between the edge point and the hypotenuse point is greatest at the midpoints of the facet and hypotenuse, and reduces to zero at the corner of the facet.  Where an intersection line passes close to a corner of a facet the distance between the edge and hypotenuse points maye be extremely small. If you accidentally snap to the hypotenuse point when you are trying to snap to the facet edge you will have an error in your drawing.

In some cases you may want to see the hypotenuse points, especially if you need a good fit along a complex curved surface. But if you are trying to find the edges of facets the hypotenuse points are bad. I wish there was an option in "Surface Intersection" to omit the hypotenuse points and just mark intersections at edges of facets.

Phil
DesignCAD user since 1987

Rob S


Thanks Dr, now I feel better  ;D
User since forever

Dr PR

Rob,

I realized that the example I posted earlier of the extra hypotenuse points was misleading. I chose an angle for the plane that was almost parallel to the hypotenuse lines so there was only one intermediate point.

In the attached picture I rotated the green plane so it was about perpendicular to the hypotenuse lines. I have added the red hypotenuse lines to show how DesignCAD divides the rectangular facets. As you can see, the magenta line at the intersection of the green plane and the cyan grid has extra points where it crosses the hypotenuses of the triangles.

The black arrow points to the problem caused by these extra points. There are three points very close together at this location, two at intersections with the rectangular facet edges and one with the hypotenuse. It would be very easy to snap to the wrong point.

V21 really isn't any better than earlier versions.

Phil
DesignCAD user since 1987

MarkX

Hi Dr. Pr,

That's a beautiful explanation of how to go about this task!

Well, so far I've only made one one of the little "collar" pieces. Its taking me a long time to make the parallel planes, There are so many lines. Any tips on this part of the process? What are you snapping to? How do you keep lines from snapping to the wrong parts.

Also, I wasn't able to make the perpendicular lines called for in the steps. It kept giving me a "command failed" message. I hate that message -- it never tells you what you did wrong!

But then it seemed like I didn't really need the perpendicular lines. Instead just drew the arc using the tangent-snap at the two prior tangent points. This seems to do the same thing ... right?

Thanks!
Mark

Dr PR

Mark,

I have no idea how to use the "Tangent Snap" function. The Reference Manual is no help. I follow the instructions exactly and no points are set. No box appears to show the snap point. No matter what I try it does absolutely nothing.

****

For the perpendicular lines, first select the "Draw/Lines/Perpendicular to a line" function from the menu or tool bar. Then set the first point at the center of the circle. Now move the cursor near one of the lines tangent to the circle and the perpendicular line will appear. Left click to complete the line.

Note: You must have a line to snap to. It doesn't work with the edges of the facets on the cylinders.

****

To create the planes used to make the intersect lines I first drew a line along the axis of the vertical cylinder (actually, this line was drawn first, and used to make the cylinder).

Then to make a plane I snapped to the top end of the center line, then to a point on the top end of the cylinder, a third point at the bottom end of the cylinder on the same facet edge, and finally back to the bottom end of the center line. This produced a plane along the radius from the center of the cylinder to the edge of a facet on the cylinder surface.

Then I selected the plane, set a handle at a point at the top of the vertical center line, and moved the plane to the top edge of the cylinder, snapping to the point at the top of the facet edge. Now the plane extended outward from the facet edge of the cylinder surface.

I then used "Surface Intersection" to find the intersection of the plane and the surface of the lower cylinder.

I drew another vertical line along the facet edge, and used "Draw/Circles/Circle Tangent to 2 Lines" to get the tangent circles.

After this I used the "Draw/Lines/Perpendicular to a line" function to draw lines from the center of the circle perpendicular to the intersect line and the line along the facet edge. These perpendiculars mark the end points of the arcs used as the template curves for the fillet surface.

You may get several possible perpendicular lines to the intersection line because it flows over more than one facet, so it has multiple segments. Choose the perpendicular that connects to the closest part of the intersect line to the circle center.

****

This is a lot of work, and I haven't found a way to simplify the job. To get good results you need to use more facets in the cylinders than I have shown, and that means more planes, circles, arcs, etc.

You can simplify the process by doing each step (cylinders, planes, intersect lines, circles, arcs) on different layers. As the work proceeds turn off the layers you don't need, and this will reduce the chance of snapping to the wrong part.

Also, in my example I rigged the results a bit by choosing an even number of facets on the cylinders and using cylinder diameters that made the job simpler. A number of facets divisible by four (16, 20, 24, etc.) is necessary if you want to create 1/4 of the fillet and then mirror/circular array to replicate it four times.

If you have an odd number of facets you can create arcs for 1/4 of the fillet and mirror them to get arcs for 1/2 of the fillet grid. Then just mirror the resulting half fillet.

The orientation of the cylinders and the number of fillets has a big effect upon how easy it is to create the fillet. If the cylinders intersect at other than aright angle (90 degrees) you will have to create half of the fillit grid and mirror it. If the cylinder center lines do not intersect you will have to create the entire fillet, either as a single grid or in pieces, but each piece will be unique.

Phil
DesignCAD user since 1987

MarkX

It seems to me that the surface intersect draws a vector with multiple lines. So when you place the circle tangent to the intersect it is more or less randomly picking one of the lines. By zooming in, you can make a pretty good guess where the true tangent should go, but its really you doing the picking. If you have running snaps on, you can see the pointer box dance along the multiple choices.

When I tried to do the perpendicular snap to the existing parallel plane, it wouldn't work. I had to draw a line over the edge of the plane, and then repeat the perpendicular process to get it to snap. I thought it was odd that it wouldn't just snap to the edge of plane.

There's a lot of little mysteries that seem to gobble up time  :'(

Mark

Dr PR

Mark,

The "Point/Plane Snap" (F7) function will snap to the nearest point on a plane. You can use it to draw a perpendicular line to the surface of a plane or to the edge of the plane. Start a line (V), set a point, and use F7 to snap to the plane and set another point.

Caution: If the cursor is somewhere over the surface of the plane the line from the cursor position to the plane surface will be perpendicular to the surface. However, if the cursor position is off to the side of the plane the line from the cursor will be perpendicular to the edge of the plane, but not to the surface of the plane. Some people consider this to be a feature and others think it is a bug.

And, yes, there are endless mysteries in the program. I have been using it for 24 years and I am still learning!

Phil
DesignCAD user since 1987

MarkX

Hi Phil,

Quote from: Dr PR on August 29, 2011, 10:32:26 PM
The "Point/Plane Snap" (F7) function will snap to the nearest point on a plane. You can use it to draw a perpendicular line to the surface of a plane or to the edge of the plane. Start a line (V), set a point, and use F7 to snap to the plane and set another point.
Is F7 what you used in step 4 of your instructions?

Ok, here's what I got (attached). It looks a little like the shop guy was a somewhat drunk while applying bondo, but ... at least it was doable.

Thanks for all your help!

Mark

Rob S


I notice the vertical cylinder is displaying as flat "facets" rather than round.

This means the cylindrical "solid" was exploded into a grid of facets at some time during your work, and I had the same problem when I tried to do it.

This also results in the fillet following those facets as well.

I think you might get better results in future if you started with native solids, which render circular, instead of faceted.
User since forever

MarkX

Hi Rob,

The first time I tried this, I did it as an extrusion of a circle. But this didn't work because the extrusion wouldn't let me control how many sides were created. The one here I believe is an actual cylinder, created using the cylinder tool with the number of sides set fairly low because I didn't want to do that much work  ;) The info box reports it as a solid, and when I shade it and look from above it isn't hollow like it would be if it were exploded. Maybe. Or could I have accidentally exploded it, and what remains is still considered a solid?

BTW, is there a way to set the number of sides if you do it as an extrusion of a circle ? Hmm, I'm guessing I have to do it as an extrusion of a polygon.

Mark

Dr PR

Mark,

When you create the circle (O) select "Plane" or "Line" and you can set the number of sides. If you select "Circle" and then extrude it DesignCAD creates a grid with 36 facets. At least that is what it does on my machine, but I may have changed the default some way in the past. You can do this with any of the circle or arc functions.

Note: The circle functions are another way to generate polygons of three or more sides.

The upper cylinder in you example appears to have 16 facets. It should render with a smooth surface. Have you used it with any of the solid Boolean functions? They can mess up the way the surface of a solid renders.

Even if you exploded a cylinder (Solids/Solid Explode) the cylindrical surface would still be a grid, and it should render with a smooth surface. Only if you then selected the grid and exploded it (Edit/Selection Edit/Convert/Explode) would it become a bunch of individual planes.

Phil
DesignCAD user since 1987