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 follies.

Started by kirktierney, February 03, 2015, 02:42:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kirktierney

We badly need some simple instructions related to "extrude along a curve". Let me capitalize "SIMPLE". I will relate my experiences, which are pretty unhappy.

First off, let us all admit that the XAC feature is both badly designed and badly documented; in other 3D CAD programs, this function is a snap. If you read the various forum tricks that advanced users are trying to do -- mostly incomprehensible to less skilled newbie users like me -- and you compare these tricks to the DC documentation, you find a truly huge gap. I'm not saying XAC  cannot work, but I am saying that making it work can be two orders of magnitude harder to fathom that almost any other command. And that means bad feature design, implementation and documentation. I think we need to admit that so that people who get lost don't think they are stupid.

Second, the XAC works fine in very simple things. I had no problems extruding a circle plane around a circular path. But XAC goes awry as soon as it is not totally simple, requiring various attempts to trick DC into not producing jibberish.

Third, the setting of handles on the profile shape seems to be a key undocumented and ill-explained skill in XAC. This is frankly glossed over in the forums, with jargon, without explanations, and with few concrete examples.

Fourth, the "reverse the order of the points" fix that is put about in various forum posts is an "it might work or not work" fix. It is not a magic answer, but it is a part of the voodoo that surrounds XAC.

Here is my own simple challenge for those who can help: DC 3D Max V24.

a) Produce a rectangle in 2D. Fillet the corners to round it a bit, Combine it all, making it a vector. Switch to 3D and rotate it as you wish -- it will be the track that we extrude a profile shape along.
b) Produce a profile as a plane. I used a sort-of-J shape, because my desired result is a filleted vertical wall following the track. Rounded at the corners, and rounded at the bottom where it wraps under to become a floor.
c) Place whatever the handles on the profile, in whatever order that works, and then document the placement and the order of placing the handles.
d) See if you can generate the desired shape solid.

I have reduced this to a simple angle and a simple profile in the attached graphic. http://prntscr.com/60ic07

Here is what I found. If the track was not filleted, you get one result -- a workable result -- but only by screwing with the placement of handles and using the "reverse the order of the points" kluge fix. -- i.e., if it is a simple angle, XAC works in some fashion. I do not understand exactly what works, or why it works -- just that after a few minutes of permutation attempts, something worked. None of this was anything like the DC documentation.

But then fillet the track. It didn't work in any permutation that I tried over about half an hour.

That doesn't mean DC cannot be coerced into delivering, but it does mean that this critical command is beyond me, wasting days. Other CAD systems will do it in a few seconds. We are supposed to be designing things, not conducting a black mass in the hopes that this critical command graces us with a result. I think it is just a failed feature. Gawd I hope that I am wrong.

Help if you can?

KT

Rob S

#1
I feel your pain.

Looking at your posted screenshot, one thing that almost inevitably will cause more than normal problems is if part of the object to be extruded has to move backwards over itself to wrap the corners, this results in weird lines with anything other than a very simple shape.

So, is there a way to achieve your result by setting the entire shape to be extruded outside the curve it has to follow, to avoid this overlapping issue?

On the example below, quick test I did with the J placed outside the shape to see what might happen, it did still have some trouble overlapping onto itself on the tight inside radius.

ps I drew the filleted box, combined it, rotated about x-axis to place it horizontal, drew the dogleg, filleted it, combined, placed the handle on the end of the short leg, placed the leg by its handle against the curve, and extruded.
User since forever

kirktierney

Rob, thanks very much for your reply.

Please pardon my brutally-simple and explicit comments; I need to be accurate or else I might not understand what you have written.

a) In my case, as per my example, (http://prntscr.com/60ic07):

o The plane that is oriented along the XY Axis is the "J shape" that I referred to.

o The filleted (and unfilleted) angles in the XZ plane represent variants of a portion of the desired track for the extrusion -- a vector that is sufficient to reveal the problem (or solution).

o So I am extruding that plane around the vector, which represents an overall exterior dimension for the desired solid that I am trying to extrude.

To me, this does not seem to be the same in your example. Would you please verify that we are talking about the same thing?

Quoteone thing that almost inevitably will cause more than normal problems is if part of the object to be extruded has to move backwards over itself to wrap the corners, this results in weird lines with anything other than a very simple shape.

b) I do not understand this comment. If I move a circle through the same path, it works. If I don't fillet the path, it works. Can you describe what you mean by the captioned comment; it may be be critical info, but it leads me to wonder if we are talking about the same thing.

Thanks, Rob,

KT

Rob S

No, I interpreted your sketch backwards of what you intended, I tried extruding a line a long the edge of a shape which looks like your plane.

So, I have tried the inverse using similar shapes to those you have drawn, except positioned the L-shaped object as a plane on the outside of the J-shape, see below

That way it extrudes just fine. 

If you need it to extrude with the dog-leg inwards, you might have to make the leg shorter than the radius of the inside curve of the extrusion. 

I will try a sample next to see how that works
User since forever

Rob S

#4
Not sure if the below is quite what you intended, but the key point is that the radius of the curve along which it extrudes is large enough that the width of the plane toi be extruded is less than the radius of the curve along which it must go.

That way all parts of the extruded plane move forward along the path even as it rounds the corner.

Not quite the same but maybe as an analogy, try to picture a train going around a curve with a radius smaller than the width of the cars, it would have some difficulty, as the cars would run into themselves going the other way!
User since forever

minstrel

Rob is doing a fine job of covering all the bases...yet, I'll toss this into the mix...perhaps this is what you are after?

samdavo

#6
Rob
neat trick to whittle down the sides of the rail wagons to be narrower  - (turning an L cross section into a lower case j) and you could always add the horizontal leg of the L later.   -

I agree, it is imperative that the radius is larger than the shape extruded (as you say).

Another simple way to demonstrate, draw an L shape (in 2D) with a fillet radius R20.   Use B to combine all.
Now use F2 (parallel by distance) to draw a parallel line 40 distant - on the inside of the other (the red line).  You get a "three point turn" of sorts - including a change of direction in the middle.  (2 cents)

PS But I concede you can get some weird results with  L-shapes extruded along curves with tight radii lol.


kirktierney

Okay, these posts were excellent.

Rob, the dogleg is indeed inward. So thanks for the second example, and I see what you have done in shaving the profile's dogleg. I need to think about this a bit to incorporate it into what I will be actually doing. I can easily add in the floor after.

Minstrel, thanks for the clear sketch info on the handles. It may seem obvious, but this clarity helps clear the fog.

SamDavo,  your comments show the problem and the way of thinking to spot the problem in future design.

Okay. I will try this, and write a summary for the forum in a day or two.

Thanks!

KT

DrollTroll

It may be helpful to illustrate using Array Along A Curve instead of Extrude Along A Curve, just to help visualize what the profiles are doing.
Here are three arrays, using a different point of the profile as the "groove" that hugs the extrusion path.
Cases 1 and 2 clearly have profiles that intersect one another as they move along the rail; DesignCAD can't properly deal with this because it creates a nonsensical shape.
Case 3 does not result in self-intersecting profiles and will extrude correctly.

In the simplest case where you have a simple 1-point bend, instead of a fillet, DesignCAD can usually figure out what to do, but if the bend is more complex it gets lost.

So it's all down to the size of the profile versus the tightness of the curve, and where you set your selection handle.
25 years with DesignCAD

kirktierney

DT, yes, this is an excellent illustration.

It leads me to wonder why the non-filleted version "worked". Or did it work? -- I never seriously checked it out because I wanted the filleted variant. Still, your illustration makes sense of how to think in order to avoid this problem. I'll include this in the summary.

KT

DrollTroll

In the very simple case of a non-filleted path, DesignCAD can usually figure out what to do; calculate a cutting plane that bisects the intersection, and trim each end of the extrusion against that bisector. It's when there are multiple path segments that involve intersecting geometry that it gets confused.
25 years with DesignCAD

Dr PR

#11
KT,

"Extrude Along A Curve" has confused everyone who has tried to use it.

Here are some more things to keep in mind.

1. There are six "Orientation" options. I have never gotten any to work predictably except "Perpendicular." Or maybe I should say they are very predictable in that they produce weird results nothing like what I am trying to do!

2. In your example the curve to be extruded along lies in a plane. So at any time it curves in two dimensions only. When you do get the extrusion to work the "up" direction for the extruded elements is always perpendicular to the plane the curve is in.

But if the curve bends in three dimensions, like a helix, "up" is recalculated at each step relative to who knows what! As a consequence the extrusion spirals around the curve. You have no control over this so it is unlikely that you will ever get a satisfactory result - except when you are extruding a circle (where the rotation may not matter).

In some cases you can get satisfactory results with the "Sweep" function. It works with spiral and helical curves, and you can change the helix radius to get a conical sweep. With "Sweep" up is always in the same direction.

3. Believe it or not, I have actually gotten the varying scale extrusion to work! But, like everything else with the "Extrude Along A Curve" function it is all guesswork, repeating time after time until everything works right.

4. A better way to "extrude" along a curve, but requiring a lot more work, is to create cross section lines at intervals along the curve and use "Surface Connect" to create a grid surface. This is perhaps the only way to control which way is up at each iteration.

Here are some examples. All of the radiused edges of the anchor wrapped along complex curves. They were all made by positioning "C" shaped curves and connecting them with "Surface Connect." All of the items on the boat that are marked with arrows also wrapped along non-planar curves, and they all had to be aligned to the underlying surfaces at each point. Again, cross section lines or planes were positioned manually at each increment, and the surfaces were created with "Surface Connect."

Actually it wasn't as much work as you might expect. I positioned a small plane at each point and used "Surface Intersection" to create a line on the underlying surface. The cross sections had three handles and that allowed me to replicate (N) the original over and over, snapping to the line on the surface to position the cross section correctly. Still, it is a PITA to have to do all of this instead of just extruding the things.

Phil
DesignCAD user since 1987