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.

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.

Lar

Quote from: prl on April 02, 2014, 07:02:34 AM
Note to the basicCAD guys out there.  IMSI is tightening up some of the "rules" regarding improper solids.   I notice version 23 complains about some of the tricks I'm doing with basiccad which have worked up to version 22.
Prl, could you elaborate please... perhaps in a new topic, in the BasicCAD section.

Lar

samdavo

Quote from: prl on April 04, 2014, 10:44:01 AM
1. Okay, behind the scenes, Sam and I have been hashing out better code. 

2. He's pushing the envelope as usual. 

3. ... what-the-heck-am-I-looking-at album cover art.
1. Hey prl, you've clearly been hashing ! - I only had a couple of light beers!
2. As for pushing envelopes, whatever DT is paying you, it's not enough !
3. and if you don't know what you are looking at, how the heck ... (sorry, just a jest)

I would have said it was a museum piece door panel from a car once owned by  one of Al Capone's ex-friends.

PS but those jpegs are Shear genius.

prl

#47
Quote from: samdavo on April 04, 2014, 03:55:10 PM
2. As for pushing envelopes

Sam, I do enjoy the things we tackle.   "Pushing envelopes" is a strange expression if you put your mind to it.  :)


samdavo

#48
Well all I did was to come up with a plot and a thread "title" -
and to take you up on the offer to participate with "the script".
Most of my suggestions were riddled with holes,
and needed a ton of development by someone who knew the basics of basic
and the red carpet should be rolled out for the you alone,
and you should be roundly applauded.

(PS personally I'd have come COMPLETELY unravelled if I was asked to do that alone)

Back to details, herewith a tiara for both a circular head, and also an elliptical head - take your pick lol.  (not you prl, lol - anyone opening the jpeg!)




samdavo

#49
Just pushing the envelope  charf bag - if it works for ellipses, how about fancy almost random shapes ?

Here's one of Olympic rings (extruded horizontally) cutting through Olympic rings (extruded vertically).   Only a couple of bugs (done uqickly) - and probably human error - please be humane in your criticism.

As they say, to err is human,  to really f*** up is even more human.

But the sky is (arguably) the limit, and thanks again.

minstrel

Wow...this one got well away from just "cut holes in pipes?"

Nice explorations here...well done!  It caught my eye the moment 'unfolding' geometery entered the scene.
Some might ask why unfolding would be necessary and I'm sure there are quite a few good reasons and many specific needs.

For me it would be 'texture mapping'. 

So to push that 'envelope' a bit further, in yet another direction, notice my results.  DCAD geometry was processed in an external bitmap editor then imported back into the DCAD model as a texture. You can get some really 'decent' results... but, DCAD's shortcomings in the 'arena' quickly surface.  Perhaps current limitation will 'take a hike' when the new/upcoming 'render' engine steps into place.

samdavo

#51
Quote from: minstrel on April 05, 2014, 03:07:28 AM
You can get some really 'decent' results... but, DCAD's shortcomings in the 'arena' quickly surface.  Perhaps current limitation will 'take a hike' when the new/upcoming 'render' engine steps into place.
Minstrel,
thanks for your comments and the rendered hex hep (?) prism (reminds me of Xmas bon-bons :)  ) ...
But when you say DCAD has shortcomings - you are clearly referring to the "bells and whistles"   -and in that respect you are undoubedly right - that DCAD doesn't compare with some of the renderers;

however DCAD is good enough for me (in fact preferable) - because it gets the shapes of the holes in pipes (that need to be cut), and the ends of other pipes -  so that they meet neatly.   :)
(edit - and the value for money is unchallenged).

Horses for courses -
a) You are into presentations,
b) I am into engineering drawings ,  including reasonable dimensional accuracy. 
Cheers mate.

PS Having said that, I wouldn;t complain if we got better rendering capabilities in the future :)  - provided it didn't cost a lot.

samdavo

#52
ok - as for the heat exchanger, how to develop that curved shape when the green pipe is subtracted from the red pipe?
I decided one option (pretty time-consuming, but then it only happens once in the blue moon)  is to straighten up the pipe on a vertical axis.

So just to confuse, I have changed the final red pipe to a striped red-and-green sock.  Then straighten it into a vertical cylinder.

Then used prl's macro to unwrap it. 

This macro
a) works on planes which can be quickly made into a solid ( Ctrl+D).   THe solid is then selected before running the macro.
b) There has to be a plane on the base of the prismatic thingo (in this case a cylinder, but as above could be anything including the outline of the olympic rings).  And the plane should have the same number of edges as there are vertical facets in the prismatic shape.
c) the planes of the prism should be vertical, and the plane of the base should be horizontal.
d) the output (simplest version) is a set of planes in a flat sheet  - although it is possible to go on and turn this into "scrolls"- see the final step of the third jpeg, "heat exchanger unwrapped".   (personally I am happy with the simpler generic output of every plane being "pressed" out between two pages).
e) you should NOT have any grids present, in fact if you want them in the final developed shpe, you should explode the grids to planes first, before selecting the planes to define as a solid, and then to run the macro.

If anyone wants a copy of the macro please pm either prl or maybe better myself.   I suspect prl assumes that when a macro has a few woolly edges, or needs explanation (as this one arguably does), then it can raise more questions than answers. 

samdavo

Here's the dcd by the way, should anyone be interested.

prl

Quote from: samdavo on May 02, 2014, 10:01:19 PM
Then straighten it into a vertical cylinder.

Sam, so you're breaking out the cutting torches. Great job.




paul craig

HI guys,
been away from Dcad for a while, but this caught my eye, since it would allow me a much easier way of laying out the boilers of some of model locomotives.

I of course only work with simple things ;D but being able to flatten a cylinder which has cut outs on it would be really useful if I could understand it more easily. Does this thread basically agree that there is now a relatively easy to use macro for the purpose? if so how do I use it??
paul

samdavo

#56
I will guess that it is ok by prl for me to post this macro that he wrote.    It is a pretty simple version thereof, called unwrapG = "unwrap Generic", which can be used on all manner of prismatic shapes (even the olympic rings I used in an earlier post #49).

As I also say above, this macro :-
a) works on planes which can be quickly made into a solid ( Ctrl+D).   The solid is then selected before running the macro.
b) There has to be a plane on the base of the prismatic thingo (in this case a cylinder, but as above could be anything including the outline of the olympic rings).  And the plane should have the same number of edges as there are vertical facets in the prismatic shape.
c) the planes of the prism should be vertical, and the plane of the base should be horizontal.
d) the output (simplest version) is a set of planes in a flat sheet  - although it is possible to go on and turn this into "scrolls"- see the final step of the third jpeg, "heat exchanger unwrapped", reply #52.   (personally I am happy with the simpler generic output of every plane being "pressed" out between two pages).
e) you should NOT have any grids present, in fact if you want them in the final developed shpe, you should explode the grids to planes first, before selecting the planes to define as a solid, and then to run the macro.

(edit) If the macro tells you that the solid you selected includes grids, then you will have to explode that solid, then explode the grids then collect the planes and Solid Define Ctrl+D - then select that solid and run the macro. 

samdavo

#57
Completely incidental to the macro, but I find that prl's trick with hatching, then vector-converting, (as mentioned elsewhere)  can also be used here.  (2 cents)  - albeit not as neatly as when he demonstrated it.

http://forum.designcad.com/index.php?topic=5567.0  reply #9 refers.

prl

Sam, nice.  The hatchfill is a fun sort of 2d sand casting method.  Be careful, liquid hatches are hot.  Wear safety shoes.

Dr PR

#59
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
DesignCAD user since 1987