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.

Some 3D questions and observations

Started by pnb, January 02, 2020, 04:00:46 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

pnb

I am using version 25 so perhaps some of this old news and possibly corrected.
When I draw a cylinder I don't seem to be able to control the number of facets it is drawn with, it seems to determine it according to diameter. Is that correct?
I placed a cylinder in a solid rectangle using a reference line for its centre, then subtract the cylinder to get a hole through it. I then realised I positioned the reference line incorrectly and exploded it.  As soon as I try to snap on to the cylinder a web of lines appear between it and the rectangle. Undo removes them but also redefines the solid with its hole. Very odd.
Thanks
Peter
DesignCad 3D Max 2021, 64bit

Bob P

When drawing a cylinder, normally there is a dialog box asking for the number of "facets". 24 is the default for every size. If you are not seeing the popup dialog, your program may be corrupted.

Dr PR

pnb,

I'm not certain what the default number of facets is for cylinders - I thought it was 36, one for every 10 degrees around the circumference. But I have seen other numbers too. The diameter has nothing to do with it.

Circles drawn as lines default to something like 244 (?) segments after the program is started the first time. After that the program seems to remember the last number of sections you have assigned. This may influence the number of facets in a cylinder.

****

There are too many "its" in your description of what you did for me to know what you have exploded. If you have subtracted all of the cylinder from the rectangular solid (box), as you said, there will be no cylinder to snap to after the solid is exploded. There will be no lines for the nonexistent cylinder parts.

However, I can see a possible explanation for what I think you are trying to say.

If you position two solids (box and cylinder) so they have a common surface, and then subtract one solid from the other, the common surface may remain.

If the center of one end of your cylinder was placed at a point on one side of the box, the two solids will have a common surface.

Surfaces are two dimensional, with width and breadth but no depth - zero thickness. So what happens when you subtract a zero thickness surface from another zero thickness surface? Zero minus zero is zero. So, there are several possible solutions - should both zero thickness surfaces be eliminated, just one, or the other?  DesignCAD does not know what you want - it cannot read your mind.

If the end of your cylinder is co-planar with a side of the box and you subtract the cylinder, the end of the cylinder may remain in the hole in the surface of the box.

Often when this happens the end of the cylinder is broken up into individual triangles defined by the center of the end of the cylinder and the two end points of the individual segments around the circumference. Viewed in Wireframe view the end of the cylinder may look like a pie that has been cut into pieces.

However, when surfaces are fragmented by Solid Subtract some of the edges of the resulting facets may be "hidden." This is the rule, not the exception! Look up "hidden edges" in the Reference Manual.

Then, if you explode the solid some or all of the hidden edges become visible in the resulting triangular pieces.

****

My best guess to what you are trying to describe is that the end of your cylinder was co-planar with the side of the box. You subtracted the cylinder from the box, leaving the end of the cylinder across the hole in the side of the box, and that the remaining end of the cylinder has been broken into triangles.

YOU SHOULD NEVER CREATE TWO SOLIDS WITH CO-PLANAR SURFACES IF YOU INTEND TO SUBTRACT ONE FROM THE OTHER. NEVER!

Phil
DesignCAD user since 1987

pnb

A picture is worth a thousand words, and contains no 'its'.

The attached picture has been taken from the Main view of the attached file. It shows the steps I took.
The top image has the cylinder placed where it is to be subtracted, but has not yet been removed. As far as I can see there are no co-planar surfaces.
The middle image is a copy of the top image but after the cylinder has been removed.
The bottom image is a copy of the middle image that has been exploded and then I attempted to select the cylinder and the extra lines appeared. In my earlier attempts there were 10 times more of them.
Peter
DesignCad 3D Max 2021, 64bit

Lar

#4
Pnb,
I downloaded you dcd drawing. The cylinder is not, what I call, a 'Proper Solid'.

It looks like it was made by extruding a Circle entity... wait, let me check.... ... ... Yes, it is. If you select the 'Cylinder' Solid in step-1, open the info box, click the 'cycle entities' button (the red and black-or-blue cycling arrows up top) and then click the drop down list that appears just below the set of buttons, you will find two Circle entities are in the Solid. One is the center reference and the other is the source of the extruded cylinder sides. What actually did the Solid Subtracting were the four little Cylinders (that are proper solids, by the way). I moved the 'Solid' from step-1 away from the box and shaded to see the hollow sides.

It's best to have nothing other than Planes and Grid Surfaces in a Defined Solid. It could be all Planes, all Grid Surfaces (eg, a Sphere primitive is all one Grid Surface), or a combination of Planes and Grid Surfaces (eg, the Box and Cylinder primitives consists of 2 Planes and 1 Grid Surface).

The extrude should have been done with a Plane entity. Also, it's best to enable the 'Plane' option when creating the Circle, and then enter the amount of facets you want. 32 facets is usually good for me (whatever I choose is normally a multiple of 8 ). Experiment to see what makes you happy. Dcad's default is way too many, I think.

Also, v25 must have been when DT&Co first implemented Solid Surfaces. The 'Solid' breaking up like a 'Solid Surface' (the web of lines you mentioned... that's a bunch of 3-sided Planes...) is evidence of this. Later versions (from18 on?) corrected this early effect.

FYI:
Using a Circle entity to extrude into a cylinder is a common mistake. I've done it many times. You create a Circle forgetting to click the 'Plane' option, or intending to convert it into a Plane before you extrude it, and you forget to convert it. And Dcad don't complain, it just does the extrude. Far as Dcad is concerned, all you want is a hollow circular edge. Then when you define it as a Solid it doesn't say "This Solid is not actually solid"... well it didn't back in v25. It does it now, since about v2018(sometimes anyway, it says the Solid is not watertight. It didn't when I just tested by extruding a Circle and Solid Defining). This also explains your 2nd sentence in your opening post. When you extrude a Circle entity, dcad decides how many facets the hollow circular edge has, since the Circle entity has no facets. This also happens when you converts a Circle into a Plane, by the way. Dcad turns the circle into a Plane with a million and a half facets.


Lar

Dr PR

Those extraneous lines are the edges of the multiple polygons that make up the surfaces of the solids.

If you have a simple six sided box the "top" and "bottom" are rectangular planes, and the other four sides are rectangular facets of a grid. Together they make up the solid.

If you subtract another solid from the box the program reconstructs the affected sides with one or more new polygons. In DesignCAD (and some other CAD programs) a polygon only has an "outside" perimeter or one edge. It cannot have an interior hole (a second edge). So the boundary wraps around the outside of the polygon, then to the inner hole, and back to the outside. The "hole" and the outer edge are the same continuous line. For more complex cases with multiple "holes" in a surface, two or more polygons are created to cover the surface.

The edges of the inner lines in a surface are normally "hidden." They are not displayed. The "Edit/Show All Edges" function will cause all hidden edges to be displayed. CAUTION: this is not reversible! There is no "Hide All Hidden Edges" function. UNDO immediately after showing all hidden edges.

You can hide individual edges with the "Edit/Hidden Edge By Section" function. Just drag a small selection rectangle across the edge to be hidden and it will disappear. When you start this command all hidden edges are displayed in light yellow. This function will also cause any hidden edges crossed by the selection rectangle to reappear. It toggles visibility of affected edges on and off.

Note: There is also an "Edit/Hidden Edge" function where you just point and click on an edge to hide it. But this usually doesn't work the way you want. With solids in every case there will be two edges where neighboring polygons come together. In many cases one of these edges will already be hidden. If you click on the edge the visible edge will become hidden, but the other hidden edge will become visible! You can click on them all day long and always end up with one edge visible. The "Hidden Edge By Section" function ALWAYS hides both edges.

****

I want to repeat what Lar said. NEVER create solids with lines, curves and circles in them. Always use Planes/Polygons for extrusions. ALWAYS!

Lines, curves, arcs, circles, ellipses, etc. are 2D objects, for 2D drawings. Their only use in 3D drawings is for reference lines. They should be placed on separate layers from actual solids so they can be hidden by disabling the layers.

You can determine if you have any 2D objects in your drawing by clicking the Wireframe display button in the top tool bar, disable the "Wireframe Renderable Objects" option and enable the "Wireframe Nonrenderable Objects" option. Solids, planes, and grids are "renderable" objects, while lines, etc. are "non-renderable."

Non-renderable objects will display peculiarly (bright edges) in shaded views.

Phil
DesignCAD user since 1987

pnb

Thanks both for your input, some of it will take me a little time to digest.
One thing I do know is that the cylinder was not created from a circle (knowingly)! Its 'history' is a little protracted but was roughly like this.
1. A cylinder was created by choosing it from the fly-out button and sized from a point made in the Main window.
2. I needed a centre reference to be able to move it to a specific position so following your suggestion Lar, drew a 3 point circle on it and then a short perpendicular line from its centre.
3. It was then saved.
4. It was then copied onto the flat panel drawing Main window, positioned and subtracted.

When I came to physically make that panel and fit the Passive Radiator in the hole I found it too big by about 5 mm diameter so for future builds I went back into the cylinder drawing and;

1. Deleted the cylinder.
2. Drew a new cylinder on the back of the perpendicular line of the reduced diameter.
3. I think I then deleted the 3 point circle from the original as it was no longer needed and a halo to the new cylinder.

I am pretty sure those were my steps. A bit convoluted I am afraid but learning and making mistakes are all part of it. :-[


Peter
DesignCad 3D Max 2021, 64bit

Lar


Well, try again with 5 new Cylinders and then solid define them as one Solid, like you did in the file you uploaded, just make sure only the 5 Cylinders and nothing else get solid defined.


Before you put it in position to do the subtraction shade to make sure the cylinders are not hollow.


Just venting here, but this is why I'm always complaining about why we should be able to work dcad's shading mode normally (I mean, since dcad is so slow in shaded mode we are forced to work in wireframe mode). Shaded mode will show right away if we are trying to extrude a circle instead of a plane.


Lar

pnb

Yes I will try some of this again when I have some time, if only to improve my method of working!
Peter
DesignCad 3D Max 2021, 64bit