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.

Piercing a tube

Started by Shipmodeler, September 22, 2012, 06:50:26 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Shipmodeler

I know DC3D V-20 can do this, but for the life of me I can't find the command.  I want to pierce a tube I created by extruding two 2D circles.  I want to pierce the tube with a straight sided oval shape creating a hole in the tube (an ironclad turret).

Any help would be much appreciated.
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

MarkX

Can't you extrude the oval and then subtract it from the side of the tube?

Probably I'm completely not understanding ;-)

Mark

Shipmodeler

Don't know.  I've never done this before, so I thought I would ask.  What command would you use to subtract the oval extrusion?
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

Shipmodeler

Quote from: MarkX on September 22, 2012, 07:39:15 PM
Can't you extrude the oval and then subtract it from the side of the tube?

Probably I'm completely not understanding ;-)

Mark

Yes, solid subtract seems like it would work.  Thanks for the advice.
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

Dr PR

Shipmodeler,

This may just be semantics, but if you extrude circles you will not get solids - you get grids. "Solid Subtract" will not work with grids.

1. If you want to create a thick walled cylindrical turret, such as on the monitors, first use the "Solids/Tube" function to create the turret shell of the proper dimensions. This creates a proper solid with a single function - it is MUCH faster than messing around with extruding circular polygons and subtracting them.

2. Create a 2D "ovoid" plane by making a vector arc with "Draw/Arc (center, begin, end)," mirroring it vertically, connecting the two arcs with lines, and then combining all four lines with "Edit/Selection Edit/Convert/Make Plane."

Use "Draw/Extrude" to extrude this 2D polygon to create the ovoid solid.

3. Position the ovoid solid with respect to the tube and duplicate it.

4. Use "Solid Subtract" to subtract the ovoid soilds from the tube.

Phil
DesignCAD user since 1987

JJG

Phil,

Just as an aside, one can note that once the tube has been perforated, the shaded rendering is not as good as before (I mean, the smoothing is no more so good as before being perforated), I have often noticed this ...

MarkX

Quote from: Dr PR on September 23, 2012, 01:09:59 AM
This may just be semantics, but if you extrude circles you will not get solids - you get grids. "Solid Subtract" will not work with grids.
Is there some utility in being able to extrude grids? In other systems, you always get solids when you extrude an enclosed polygon, no matter if its a circle or plane-circle.  This is what most people expect.

This remember-before-you extrude is like a ticking bomb for newbies (and sometimes not-so-newbies).

Mark

Rob S

Quote from: MarkX on September 23, 2012, 10:06:03 AM

Is there some utility in being able to extrude grids?

It is often useful to make tubular surfaces as part of a drawing, not all objects in life are solids

I think it would be great to have an option for the extrude command to create either "solids" or "surfaces" regardless if a "perimeter line" or a "Plane" is selected for the extrusion, just like we have options for copying or mirroring or dimensioning.

Little programming would be required.  Designcad would merely create the required plane from the selected line, or the perimeter from the selected plane, and then perform the extrusion.
User since forever

prl

Quote from: Rob S on September 23, 2012, 10:18:41 AM
I think it would be great to have an option for the extrude command to create either "solids" or "surfaces" regardless if a "perimeter line" or a "Plane" is selected for the extrusion, just like we have options for copying or mirroring or dimensioning.

Yes this would be nice.  I often screw up by not first checking whether or not the thing I'm extruding is what I need it to be.

JJG

note that it is so easy to convert  a grid in a solid : Solid/Solid define, and done !
after that, solid substract (or other) will works.
;)

Dr PR

JJG,

Loss of fidelity of surface rendering is a potential problem with all of the solid Boolean operations. Basically, it is the result of having too few facets.

If cylinders used with "Solid Add" and "Solid Subtract" have two few facets the intersecting surfaces will meet at sharp angles. The resulting quadrilateral "planar" facets aren't planes, but are two triangles at different angles, and they render differently.  This causes fits with DesignCAD's rendering and the two ends of the facets shade differently. The solution is to redraw the cylinders with lots more facets so the angles between the planes of the triangles are smaller.

See the attached image. The cylinders on the left have 18 facets, and the resulting Boolean solid has poor smooth rendering. The cylinders on the right have 144 facets and render smoothly.

DesignCAD used to default to 36 facets/segments around circular polygons, cylinders, etc., or one every 10 degrees. This usually works OK, and it mu defult. But if you are creating a large object (one that will be viewed from a distance of one or two diameters) 72 or 144 facets render better. Actually, the surface renders the same for 36, 72 or 144 facets, but the edge is less "chunky" with higher numbers. The same is true for objects produced with the Boolean functions.

If you have followed any of my posts you know that I am almost paranoid about file sizes. More facets means larger files, so I often stretch things by using 12 to 18 facets for surfaces that will not be viewed closely. This is where I have big problems with the Boolean operations. I have to make a trade-off between file size and asthetic rendering.

Phil
DesignCAD user since 1987

prl

#11
Quote from: Dr PR on September 23, 2012, 10:36:06 AM
. . .I am almost paranoid about file sizes. More facets means larger files, so I often stretch things by using 12 to 18

What is your overall approach to large models?  Are all your assemblies in one file or do you have a master drawing which "builds" your Okie boat using externally referenced files?  I'm toying with this concept for some buildings I'm working on. Externally referenced files would allow me to work on smaller files and also revise things as needed.  The Master drawing is there for holding all the parts together and for displaying.

Dr PR

About the confusion about the results of extrusions - I have said repeatedly that if you are going to create a 3D drawing, work in 3D! You cannot create a 3D object by sketching on a sheet of paper - just the 2D "shadow" of a 3D object. 2D drawing and 3D drawing have VERY little in common. The single greatest mistake I see on the Forum is people trying to flip/flop between 2D and 3D drawing. That is asking for trouble!

Lines are 2D objects - they have zero width. This is a geometrical definition going all the way back to Euclid. In 3D work avoid lines like the plague! DesignCAD has lots of polygon tools that create true planar surfaces. Use them!

3D objects are made up of surfaces, and never lines. This should be obvious, and should not be a source of confusion.

Note: I use lots of reference lines* for generating frameworks for 3D geometric constructions, but I never create polygons by first drawing a bunch of lines and then converting them to a plane if there is a 3D tool to do the work (it will be MUCH faster and will always produce a legitimate 3D surface).

* Note: in any other case I would call these "construction lines" but DesignCAD has a useless Construction Line" of infinite length that needlessly clutter a drawing. My reference lines are just simple vectors that I use as construction lines.

****

However, it is often necessary to construct complex 3D objects piece by piece. In these cases ALWAYS work with planes. You may create frameworks out of lines and curves to help with the construction, but the goal is to produce a planar polygonal surface to be a part of a solid. Lines can NEVER be parts of solids.

Extruding lines/curves to create grid surfaces is often necessary. Just be sure to get rid of the lines and curves (or move to another layer) before defining a solid using the grid. Buried lines and curves can cause problems.

****

You can define a grid surface to be a solid, but obviously it is not a true solid (it has zero thickness). Then you can use "Solid Subtract" to punch holes in the grid by subtracting "tool" solids. However, the result will no longer be a grid. It will be a huge number of triangles, and the file size will explode. I have posted a few tips here:

http://forum.designcad.com/index.php?topic=3814.0

After exploding the grid I use the pieces as templates for constructing a few real grids around the hole with "Surface Connect" and then I erase all of the triangles. This greatly reduces file size.

Be warned that sometimes the result of an exploded grid can be very strange! Some parts will end up on different layers, and the material may be changed for some parts. You may select all of the parts and move them back to the desired layer, and you may redefine the material in the Info Box. But I have one complex object I created from an exploded grid that has occasionally reverted back to odd materials, even when copied to new drawings in versions newer then the version it was created in! There is a hidden gremlin somewhere in the object that keeps screwing it up, years after it was created.

You have been warned!

Phil
DesignCAD user since 1987

Dr PR

prl,

I work in smaller files whenever I can. For example, I built a large complex winch (burtoning winch.jpg) in a file with many layers, with each part of the assembly on a separate layer, with extra layers for construction reference lines, "junk" layers for things I may want to use again - or may not, etc. File size is 5 Mbytes.

Then I enabled only the layers for the final product, selected everything and copy/pasted it all into a larger composite drawing (midships deck house.jpg). Immediately after pasting I used the "A+" button on the Layers tool bar to move all parts of the winch to the desired layer in the composite drawing. Then, while everything was still selected, I grouped all of the pieces so the winch was a single object. The winch is just visible in the deck house image, along with dozens of other subassemblies created in smaller files (boats, doors, lights, ladders, life rafts, smoke pipes, etc.). File size is 155 Mbytes (and growing).

I could have made the winch into a symbol or block, but I have had problems with these so I don't use them. They are totally unnecessary in this case since the winch appears only once in the composite drawing.

The final drawing (CLG5 ship assembly.jpg) is made up from several large drawings for the hull, missile house, aft deck house, midships deck house, forward deck house, three radar towers, gun turrets, etc. The image ws created in January, 2009. That was the last time I have tried to put it all together. File size is 371 Mbytes! It took about 90 minutes to render with shadows. Most of that file was just temporary parts that have since been redrawn with much more detail, like the midships deck house.

All of the 8 major files add up to 617.5 Mbytes at this time, with a lot of work still to go. Unfortunately, the current version of DesignCAD will not work with a file that large. The 371 Mbyte file is the largest I have worked with, and then it could only be rendered. ANY attempt to edit it crashed the program (V19). I am building the large component files with the hope that someday I will be able to work with the whole in DesignCAD. If not, I will have to switch to a program that can handle really large files.

I suspect that DesignCAD has a maximum address space of 1 Gbyte.  Within this space it keeps the working drawing, a backup, all rendering information, working variables and shadow maps. If the drawing gets larger than about 275 Mbytes (my best guess) and is edited (backup copy) and rendered (shading information), all of the available address space will be used up. I constructed the 371 Mbyte file by adding each large sub file one at a time without rendering, and saving it. Then I shut down DesignCAD, restarted, loaded the last version and added another large piece by cut and paste, and saved the larger file.

Eventually I got all of the parts into one working session and saved the whole. Then I shut down, restarted, reloaded and rendered - it worked! I made several images from different views. But when I tried to draw one additional line (just one wafer-thin mint) the program crashed.

Phil
DesignCAD user since 1987

prl

Phil,  your work is simply amazing.  Thanks for the write-up of how you approach it.