News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

extrude along a curve

Started by paul craig, February 06, 2013, 12:55:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paul craig

We all know I am not the best at 3d, but mainly that is because I do not need to practice too much. However, with the introduction of 3d printing, I need to upgrade my skills. I'd rather stick with dcad than learn another programme.

So I have created a small test piece that I need for a kit I am producing. It is a uk Model locomotive, and this is the cab roof of the loco.
It is what we call a pagoda. The two attached drawings show the side and end view, plus the work I have done so far.
Although I have been able to extrude along the flat surface well and am happy with that, try as I might I cannot get the front part to extrude
along the curve. Am I wrong in trying to extrude this and then solid subtract? I have never used the meshes or hammering, might that be a better way to solve the problem?

But for me, the question is why can I not extrude along the curve, I have used SHift ctrl x but it always seems to want to extrude vertically if in different ways, I cannot get it to extrude along the line of the curve. So help please guys

Paul


DrollTroll

All I see is the 2d profile drawing -- please attach the second drawing.

DT
25 years with DesignCAD

paul craig

sorry DT, thought I had
let's hope that gets it to you
Paul

MarkX

#3
Quote from: paul craig on February 06, 2013, 12:55:06 PM
We all know I am not the best at 3d, but mainly that is because I do not need to practice too much. However, with the introduction of 3d printing, I need to upgrade my skills. I'd rather stick with dcad than learn another programme.
Hi Paul,

If you're doing 3D printing, then you're on the cutting edge ;-)

I'm not exactly sure what you want, but I *think* you want to take the second profile, and extrude it along the curve formed by the first extrude in the 3D version. Then you want to subtract one from the other.

To make this happen, you'll need to break out a curve that matches the extrude curve. I don't think it will work to extrude off of the curve embedded in the solid.

Then you have to bring over the other profile, put it together as a plane, set it up along the curve you want to extrude. Then, you have to play with setting the handles. How the profile follows the curve will depend on the handles you set on the profile. Crazy, I know.

I've attached what I've made so far. There are two extruded pieces overlapping in 3D space -- your original plus the one I made. I'm not sure exactly how you meant for them to overlap -- or even if you did. I suspect that you want to find the intersection of the two parts rather than subtracting.

Am I close?

Mark
Edit: Attaching image of what I get when I align the two roof-lines and then find the intersection. Something like this the target? I changed to light blue because black doesn't render well in quick render shading.


paul craig

Blimey mark that is exactly what I was looking for, thanks.
not sure I understand what you have done, but it gives me one idea.
It would seem to me that you are saying draw the curve I want, extrude the shape i want along it the, move that  to the original shape, and solid subtract, or have I misunderstood.

As you may have noticed i have put the 0.0.0. at the far right corner and set the cooidinates as right hand. I get the feeling that I could then rotate through the y axis, and it would provide the best finish for 3d printing, I am thinking of using the 3d printer as a way of making relatively cheap masters for resin casting, so the print lines could be covered up with either filler or spray paint and then cleaned up for mould making.

Maybe you can explain it more clearly with step by step to help this simple englishman ;D
Thanks for taking the trouble. The other thing I need to do is add two shapes inset from the front and rear to act as stops when it is assembled. I have shown the shape, I guess this is where I should use construction lines on a second layer, then snap to them?
Would I get less points and therefore a smaller file if I laid out formers and then overlaid them with a mesh?
paul

MarkX

#5
In the attached, I've moved all the clutter to a hidden layer.

1st draw a line along the bottom edge as your guide curve.

Now copy over the profile. Combine it and make it a plane.

Place it as shown (FOR NOW) and then place handles (CTL-H) as indicated by the (1), (2), (3) handle bubbles. Placement of these handles makes a difference.

Use Ctl-Shift-X to begin the sweep. Click on the curve you created earlier. If all goes well, your top sweep should be created.


However, the objects aren't aligned.

I used object alignment to align them by their middles in the z and x directions, and then align them at their tops in the Y direction. This may be making too many assumptions! But it was fast ;-)

Now, what I did -- and I don't know it was right -- was to do a solid INTERSECTION between the two objects. Basically the two objects are trimming themselves against each other.

What I don't like is that the top is a little bumpy. I don't know if this the fault of my technique, or if the original profile(s) need to have more facets to represent a curve more accurately.

HTH
Mark


paul craig

thanks mark, i will practice with that and also see if there is an easier measure. I am obviously tying to reduce the number of points.
Paul

Dr PR

Paul,

"Extrude along a curve" has its peciliarities, and if you don't understand them it can drive you nuts.

Actually, it is the way DesignCAD works with lines and curves that cause the problem. Lines and curves are stored as a series of points with XYZ coordinates. The program works with the points in the order in which they were created. This has ramifications for extrusions, surface patch, and some other operations.

If the points are not in the "right" order when you try to do an extrusion along a curve odd things will happen. The point sequence matters in both the line/curve you are trying to extrude, and the line/curve you want to extrude along. If the point order of one or both of these is "backwards" the extrusion will be backwards or mirrored from what you were expecting.

When this happens, select the line/curve, open the Info Box, and click the button with horizontal red and blue arrows. This is the "Reverse Point Order" button. It renumbers the points starting from the opposite end.

Then try the extrusion again and see if it works. If not, reverse the point order on the other line/curve (both lines/curves reversed). If it still doesn't work, "unreverse" the point order of the first line/curve and try again. There are four possible combinations and one usually works.

Of course, this is a PITA, and, frankly, the fact that we have to do this, and that the program even has a "Reverse Point Order" button, are evidence of poor program design. The user shouldn't have to care about point order.

****

One other thing to remember about extrusions - the location of the handle of the line/curve to be extruded is all important. It doesn't have to be on the extrusion line/curve, but I have found that placing it there improves the odds for getting the desired extrusion.

****

When you are ready for a real mind bender, ask about scaled extrusions along a curve!

Phil
DesignCAD user since 1987

paul craig

Hi mark, that all looks good will hope to get round to testing it out over the next couple of days, and see if I can adapt your ideas to make it quicker and easier to do, hopefully with less points on it to ensure the file is as small as possible.

What I do not really understand is why you made the extrusion work off the lower edge rather than the upper one, what was your logic for that.

PR, thanks for that, it adds to my learning curve, yet more :( what I need to understand is how it is best to layout this. DO you suggest that one lays out points on a second layer then snap to them, because what I still find difficult to understand is sometimes you make a plane, and for instance extrude it, you seem to end with some odd lines, yet when you remove some the shape stays solid, move others and it dissappears. what is that all about?

The other question for my next test is to make a firebox/boiler/smokebox unit for 3d printing, and I believe that I saw in another post that a hollow tube might well cause problems, is this true for output to 3d printing? would I be better to have two solid cylinders and remove one from the inside of the other,?

The problem for me with 3d is that I do not use it often enough, rather like spreadsheets, so i tend to forget ::)
Still dcad 22 really has improved things for my basic 2d etch work.

Paul

MarkX

Quote from: paul craig on February 07, 2013, 02:11:01 PM
What I do not really understand is why you made the extrusion work off the lower edge rather than the upper one, what was your logic for that.
Logic? You want Logic?!!

It was a nice clean curve that I could trace along quickly. Somehow I thought it was the one you had in mind. Getting a copy of the upper curve may be more problematic.

Mark