Best way to cut holes in pipes?

Started by samdavo, March 21, 2014, 04:27:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

Quote from: Dr PR on May 21, 2014, 08:59:12 AM
- too much bread and not enough meat.

All threads are BYOB.  (Bring your own bologna).




samdavo

#61
Quote from: Dr PR on May 21, 2014, 08:59:12 AM
Paul,
I haven't followed this thread much - too much bread and not enough meat. However, I have used the macro in this topic:
http://forum.designcad.com/index.php?topic=5548.0
It works only with grids, and you need to read the instructions to understand all of the options. But it does an excellent job unfolding just about any grid.
It is very useful for unfolding cylindrical and conical surfaces. It will even unfold spheres, boat hulls, etc, but the results are very complex assemblages of many tiny facets.
Phil
Phil
Well I tried the "unfold grid" option for this heat exchanger and it wasn't particularly successful.
Feel free to post your effort doing it that way - but for prismatic shapes, I prefer prl's "unwrap" macro ( 2 cents)

PS I haven't added the more advanced versions of prl's macro which convert the small planes into a single outline using improper solids - as discussed earlier in reply #35 of this thread - (but some will/might realise that I was doing something similar when I used the hatch-sandbox idea as an alternative).
cheers
sam

Dr PR

prl,

Forgive me, but there is a huge amount of irrelevant verbiage in this thread and I have been extremely busy and haven't had time to read through it all to get to the substance of the discussion. If your macro will unfold any solid it would be a very useful tool.

Way back in reply #35 you said you defined the polygons to be solids and used "Solid Add." When you unfold the original solid do you produce lines or planes? Since an exploded solid is made up of planes the "Polygon Add" function should work with them.

Phil
DesignCAD user since 1987

samdavo

#63
Paul
for your consideration ...

Phil
maybe you could add some meat to your claims. - i.e. post an example of a complex grid unfolded (?) - PS not just a cone  etc. 
Personally I found the first problem was that solid subtract etc gave solids , thence (exploded) it gave planes.   So turning these planes into a grid was a major extra addition to the work involved.   That's what I found with the heat exchanger - and what I would also find with this boiler I suspect ( 2 cents)

prl

#64
Pretty easy to skip over things you don't want to read. And if it is a thread with something I started or Sam started, you know pretty much what you are in for. For me the forum is a cross between a tabloid, DesignCAD beats Revit in Modeling, and a  dissertation titled A Discussion of Visual Communication with Interactive User Stimuli utiziling Drafting Information Software in a Vacuum-Free Environment.

The routines Sam and I have hashed out are limited to vertical objects with a base plane that defines a "follow me" unwrapping path.  Problem with unfolding any general shape solid or grid creation is I can't picture what the finished flatten product should be. Hence the difficulty of programming something that I don't know what I want the code to do.  Sam's pipe with numerous openings presented a practical challenge.  Then Sam pushed the envelope to vertical objects of any shape and the value and merit of the unwrapG code was immediately evident.  I don't have the energy to make them bullet proof so users with that hope shouldn't expect that.  Now if you like tinkering with DesignCAD and what it possibly can and can't do . . .

The routines require a certain level of user experience and comfort with DesignCAD. Hence I didn't post them for general use. Sam has done a fine job defining the "rules for use" but the user still needs to be intimate with the routine and know what they should be getting.

Edit:  And since I'm testing different flash software, here is a collaborative movie.  I took Sam's boiler model, added a few extra notches and openings and used Bd's vdd to have some fun.

A boilerunmaker

Dr PR

prl,

That's pretty cool! The "vertical" shouldn't be a problem - just copy a complex solid to a new drawing, reorient it with the main axis vertical and the unfold it. This is certainly better than nothing! Is it necessary to have a planar polygon at the base?

The other macro does an amazing job of unfolding grids of ANY kind! Of course, if you have perforated the grid with "Solid Subtract" it won't be a grid anymore.

Again, it isn't a case of skipping over what I don't want to read. I haven't had time for the last month or two to keep up with the long post. I was just looking for  an "executive summary" telling what it will do and how to use it. That's what most users will want.

****

As for what "Unfold.d3m" will do, here are some examples using intact grids. The most common problems are not the complex solids, but things like unfolding cones and other surfaces that you actually want to fabricate. Things like the unfolded hemisphere are cute, and you could actually cut out the pattern and fold it into a hemisphere, but is anyone really going to do this?

The "Unfolded skirt.jpg" shows a real example. I unfolded this manually several years ago with DesignCAD, moving each separate facet into a flat plane one at a time. It took about four hours (the"Unfold.d3m" macro did it in seconds). I used the resulting pattern to photo etch the skirt to be used in a larger assembly.

It seems to me that the two macros compliment each other nicely. One works with grids, the other with non-grids.

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on May 22, 2014, 10:11:59 AM
prl, . . .  is it necessary to have a planar polygon at the base?

At this point yes only because I needed some way to find a "guide path" and finding the "path" for a "guide plane" where all points are at the same Ymin is pretty easy in terms of code. 

Dr PR

#67
Well, that certainly isn't a problem. Considering the grief involved in manually unfolding a surface with holes in it, drawing a guide plane is pretty trivial.

Here is another practical example. This is a 2D drawing of hull plates on a ship hull:

http://www.okieboat.com/Copyright%20images/hull%20plate%20pattern.jpg

Each individual colored polygon represents a single plate. You can get an idea of what the finished hull looks like here:

http://www.okieboat.com/CAD%20hull.html

None of these plates is planar - all have some curvature, and very few are true conical sections (cylindrical surfaces). Some have holes in them. I want to create a flat pattern for each of the approximately 480 plates (some are mirror images so only about 250 patterns will be needed). Most are grids, so the "UnFold.d3m" macro will work perfectly. However, the plates with holes are a combination of grids and polygons assembled into a solid. I can explode the grids and combine everything back into a single solid.

Since these are not closed surfaces, nor do they have a polygon base, how should they be oriented and what kind of a polygon base would I have to add?

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on May 22, 2014, 10:22:06 AM
However, the plates with holes are a combination of grids and polygons assembled into a solid. I can explode the grids and combine everything back into a single solid.

Phil, attach one of these plates with holes as a "goby" and I'll give it some thought and let you know if it is possible with what I've put together.  I have a dozen theme and variation versions of the unwrap code.  Most are just "I wonder if I can do this or that".  Example, the version below maps the surface to a curved line (or any line for that matter).


Mapping the boiler surface to a curved line

Dr PR

prl,

I'm still trying to get a replacement cooler for the CPU on my main work machine. That's where the file is for the hull, so I can't get to it right now. Everything is backed up, but my old Vista machine is pretty slow, working from the USB backup drive is even slower, and it is a very large file.

However, it looks like your map to a curve would work OK. I could just make the curve a straight line (a 3 point curve with all points on a straight line).

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on May 22, 2014, 03:04:24 PM
so I can't get to it right now.

Phil, only looking for a single plate to examine, one with a hole or several holes in it, something that represents a typical situation for your ship.  I need to examine the curvature or warping of the steel plate and in what manner you have assembled various DesignCAD planes to model it.

samdavo

#71
Quote from: Dr PR on May 22, 2014, 10:11:59 AM
prl,

1.  That's pretty cool! The "vertical" shouldn't be a problem - just copy a complex solid to a new drawing, reorient it with the main axis vertical and the unfold it. This is certainly better than nothing!

2.  Is it necessary to have a planar polygon at the base?

3.  The other macro does an amazing job of unfolding grids of ANY kind! Of course, if you have perforated the grid with "Solid Subtract" it won't be a grid anymore.

4. It seems to me that the two macros compliment each other nicely. One works with grids, the other with non-grids.
Phil
1. agreed = prl's macro requires a vertical extrusion with a horizontal base, but that's not a problem (iyo or imo)

2. yes it currently needs the planar polygon at the base.  But hey, that's dead simple as well.  Just make the vertical extrusion (whether a solid cylinder, or just a cylindrical skin) into a solid - and, if it doesn't have a polygonal base (maybe after you've amended it a bit), then slice it horizontally.

3. agreed and thanks for the examples  - Also agree that Solid Subtract makes it very difficult to get a grid back however.  But ablincoe has done a brilliant job with that macro as well (provided you have a grid).

4. agreed

Further to point 2,  if you think of that elliptical tiara (below) as a mountain range around a lake in the Andes,  then you need to add the lake  to be able to unwrap the range.  And this can be done by a horizontal slice.    The lake with have the same number of lines in its perimeter as you have vertical planes.    Then make sure the slice (= lake) and the mountain range are all defined as a solid, then run the macro. 

Incidentally the order of points around the polygonal lake will determine the start point for the unwrap (2 cents).  If you are real keen to change it, then redraw the lake starting somewhere else I guess. (and define as a plane, then combine as a solid with the range).


samdavo

#72
Here's that "olympic rings" outline, where I clearly had to slice to get the outline of that lake.  (edit - or maybe it's just what I extruded in the first place - either way works).

In this case the lake is green.

(The dcd is back there a few posts in the unlikely event that anyone is gonna try to repeat this demonstration of a weird shape :)   It was done in a hurry, and the errors are mine, not DCAD's - or the macros).

samdavo

#73
A slightly amended version of that macro , called unwrapG2.d3m - together with two examples , namely a green tank and a blue tank.  - Entirely prl's work.

There are (or were) three copies of the tank in each file,  and I have unwrapped the central one.   I've added the bottom one is case you want to give it a go.

Also, if you click on the "baseplane" left after the unwrap, (**), then vc = vector convert, then combine (B) them all into one - and click on Infobox, you will find that the length is 406 (as per the [perimeter] dimension of the developed/unwrapped  prismatic planes).

(**) alternatively the perimeter of the plane is shown as 406 in INfobox without the vc and B steps.

prl

Thanks Sam and also Paul Craig for his model which let me see the problem with the original unwrapG.d3m routine. 

And of course, who wants a solid tank anyway when you can make it full of holes?  (An experminent for the unwrapG2.d3m routine).