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.

Make a chamfer (bevel) to a cylinder

Started by jym_ing, June 28, 2015, 12:00:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jym_ing

Hello,

I frequently have to make a bevel (chamfer) to a cylinder (see attached 3D in 3D max 23).
To do so, I make a boolean operation: cylinder - (cylinder - cone), which is quite boring.
Any suggestion welcome.... (I know, I can generate such volume with the sweep command, but for some reasons, I avoid it).

Same question with a rouded edge fillet....

Thanks in advance
JYM

samdavo

#1
JYM
Well one easy way is to sweep the half-cross-section through 360 degrees ( 2 cents) - as you suggested.
In the attached jpeg, I simply viewed your object from under, and then used the qs2.d3m macro. i.e. I haven't drawn anything, just presented it differently.  cheers


jym_ing

Thank you Sam, but, what is the qs2 macro?
JYM

jym_ing

The reason why I don't use the sweep command: Rendering is quite different.
The attached pdf-3D shows the same element, generated with solids (violin color) and sweep (blue color).

JYM

samdavo

#4
Herewith the qs2.d3m  (quick shade 2) written by prl
All you do is
a) set to Gourard
b) set OpenGL ( or otherwise graphics accelerator on)
c) shade the object (colour only at this stage), and
d) then run the macro, which will change the background to light blue-grey, and also add black lines around planes.
cheers

PS another example shown here :-  reply #9 '
http://forum.designcad.com/index.php?topic=4529.0

PS I'm not sure what you are saying about the difference between the violet and blue versions. - smoother shading?  -  what is the facet count in each case?  cheers


jym_ing

In both cases, 32  facets.
Use the zoom to check this out.
JYM
Quote from: samdavo on June 28, 2015, 03:02:09 AM
Herewith the qs2.d3m  (quick shade 2) written by prl
All you do is
a) set to Gourard
b) set OpenGL ( or otherwise graphics accelerator on)
c) shade the object (colour only at this stage), and
d) then run the macro, which will change the background to light blue-grey, and also add black lines around planes.
cheers

PS another example shown here :-  reply #9 '
http://forum.designcad.com/index.php?topic=4529.0

PS I'm not sure what you are saying about the difference between the violet and blue versions. - smoother shading?  -  what is the facet count in each case?  cheers

samdavo

Jym
herewith two copies of your drawing (again no change - other than to delete the flange),

The only difference between these is that one has lines added (using qs2.d3m) - you can achieve this by putting one on a locked layer, and that way it won;t have lines added.

Btw, I imagine you are familiar with View\ Display Types \ Smooth Shading. 
cheers

samdavo

#7
PS But I think I see what you mean - or otherwise one effect at least  - that adding (or subtracting) solids can give much fewer lines in wireframe compared to sweeping - in particular you can avoid all the radiating lines ( like the spokes of a bicycle wheel)

And when I look at the jpegs above, I notice that you have avoided these.

THe enclosed jpeg shows your blue chamfer versus a red swept chamfer - which has the extra spokes.     
Then again, it is pretty easy to delete those spokes-lines using "Edit\Hidden Edge by Section"

But to be honest I can't see any other difference. (2 cents)

Dr PR

JYM,

Here are some suggestions.

1. Use the "Solids/Rounded Cylinder" function to create chamfered or filleted cylinders. If you set the "Number of Sections" to 1 you get a chamfered edge. If you set the "Radius" to 0 you get no chamfer/fillet.

2. If you sweep a line you get a grid, not a solid. This doesn't necessarily render as a solid. If you select the object and use "Solid/Solid Define" it will then render exactly like any other solid with the same number of facets.

If you sweep a "Plane" around an axis you get a true solid. However, it will still have the faceted ends.

3. When you sweep a complete half section (line or plane) around an axis, if an end is flat, you get a multi-faceted flat surface, and not a single multi-sided polygon.

If you then define the object to be a solid and create another solid that does not overlap the first solid, and then you subtract the second solid from the first, DesignCAD will regenerate the original solid with a single polygonal end surface. It will also clean out any interior surfaces, etc., that might have accumulated. The resulting solid will work much better with subsequent solid Boolean operations.

See the attached image.

Step 1. Draw three segment red line.

Step 2. Sweep the red line about the green line.

Step 3. Define the red grid to be a solid with "Solid Define." Then create the green cube with the "Solids/Box" function.

Step 4. Subtract the green cube from the red cylinder. Notice how this cleans up the end facets and creates a single end polygon.

Phil
DesignCAD user since 1987

samdavo

Step 4 - neat trick Phil :) , I keep forgetting that one.

jym_ing

Quote from: Dr PR on June 28, 2015, 06:35:26 AM
JYM,

Here are some suggestions.

1. Use the "Solids/Rounded Cylinder" function to create chamfered or filleted cylinders. If you set the "Number of Sections" to 1 you get a chamfered edge. If you set the "Radius" to 0 you get no chamfer/fillet.

2. If you sweep a line you get a grid, not a solid. This doesn't necessarily render as a solid. If you select the object and use "Solid/Solid Define" it will then render exactly like any other solid with the same number of facets.

If you sweep a "Plane" around an axis you get a true solid. However, it will still have the faceted ends.

3. When you sweep a complete half section (line or plane) around an axis, if an end is flat, you get a multi-faceted flat surface, and not a single multi-sided polygon.

If you then define the object to be a solid and create another solid that does not overlap the first solid, and then you subtract the second solid from the first, DesignCAD will regenerate the original solid with a single polygonal end surface. It will also clean out any interior surfaces, etc., that might have accumulated. The resulting solid will work much better with subsequent solid Boolean operations.

See the attached image.

Step 1. Draw three segment red line.

Step 2. Sweep the red line about the green line.

Step 3. Define the red grid to be a solid with "Solid Define." Then create the green cube with the "Solids/Box" function.

Step 4. Subtract the green cube from the red cylinder. Notice how this cleans up the end facets and creates a single end polygon.

Phil

Thank you Dr Pr....
- Suggestion 1 would be helpful in some cases.
- Suggestion to clean out the solid using a cube is a great trick, where did you find that???
JYM

samdavo

#11
Jym, that trick of Phil's (#4) can also be used to repair a grid solid.  (Now that he reminded me / us).

In the enclosed drawing, imagine the red sail of the Sydney Opera House has been damaged in a hail storm, with several missing tiles (in fact I exploded the grid and deleted some triangles).   

Repair Method:-
Firstly draw some triangular planes to patch these holes (same red colour and layer 2).
Then select all the red planes and Solid-Define them  (Ctrl+D)
Then draw a small box beside the red sail
Subtract it from the sail
and you find that the grids are now neat four-sided elements again.  (2 cents)   
cheers

PS The jpeg shows the three stages of this repair. - Note the irregular triangular elements in the middle one.

Dr PR

JYM,

Several versions back I noticed that during normal Solid Subtract operations the program would clean up unnecessary facets. I don't recall what version introduced that feature, and I don't think the programmers told us they had made that change. It just appeared, and was very welcome!

However, it was someone else who posted the idea of a fake subtraction - where the two objects don't overlap - to force a cleanup without actually changing the work piece. I thought that was pretty clever. Sorry I can't remember who posted that idea to give them credit.

It is just an example of how important this forum is. I have been using the program since 1987 and I am still learning new tricks from the other Forum members.

Phil
DesignCAD user since 1987

SManMTB

This 'feature' is a bug right?
It does work but it's like one of those illegal OP codes in assembly programming that works by chance.
:D

Dr PR

#14
I can't see how it could be unintentional.

Unnecessary facets and internal surfaces were obvious problems in earlier versions. They caused unintended consequences with solid Boolean operations. I suspect that the changes came about as a result of tracking down one of these bugs.

A few versions back another significant change was made to the program. When a plane (or side of a solid) was perforated with one of the solid Boolean operations it was originally broken up into two or more separate planes. A change was made to minimize the number of individual planes using some really clever edge routing. My guess is that this new polygon cleanup "feature" is the result of that improvement.

Maybe DT can enlighten us.

Phil
DesignCAD user since 1987