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.

Directional extrusions along curves.

Started by Dr PR, June 02, 2015, 01:20:54 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

After DT and company have perfected the 64 bit version, implemented all RedSDK functions, and have fixed any remaining bugs, here is something to think about.

Everyone who has used the "Extrude Along A Curve" function very much knows how frustrating it can be. If the extrusion curve doesn't lie in a plane the extrusion twists and spirals uncontrollably around the curve. Unless the extruded object is symmetrical around the handle the results are essentially useless. Further, getting the variable scale to work requires a sorcerer's incantations. And if you get past these obstacles, about three fourths of the time the extrusion is upside down, backwards, or both! "Extrude Along A Curve" would be better named "Frustration Along A Curve!"

Here are some suggestions for an expanded version that would be much more user friendly.

1. Direction points. At each position on the curve set two points. The first will be the point to extrude through and the second would tell which way is "up." In this case "up" is relative to the object being extruded, and this will be determined by the first pair of points. This will allow the user to control the orientation of the extrusion.

It would be nice if the function displayed an arrow at each point set, staring at the first of the two points (on the extrusion curve) and pointing in the relative direction of "up."

2. Scale points. Use the distance between the two points at each position to tell how to scale the extrusion at that position. This should be an option. If "Scale" is disabled just extrude with no scaling. If it is enabled use the relative distance between point sets to determine the amount of scaling at each point set, where the distance between first point set determines the reference distance.

NOTE: This is a relative distance. It has nothing to do with the actual measurements of the object being extruded. In this way we could set the distance between the first point pair to something convenient, such as 1 inch, 1 cm, whatever. At each successive point set we would make the distance between the points a distance relative to the first point set (N:1). So we would make the distance between the points (N) 1.5 inches, centimeters, whatever, for a scale of 1.5:1.

3. Start at the first point. Always extrude from the first point pair the user sets through to the last point set.

Any other thoughts?

Phil
DesignCAD user since 1987

Rob S

In 3D space, most people would have great difficulty determining the required co-ordinates or offsets for these points.

Maybe it could work if there was some way to fix cursor movement to be perpendicular to the line/curve at that particular point,  without considering what happens at sharp bends, and even then as Sam always says (in the border of his posts), the trick is knowing which way is up!!!
User since forever

Dr PR

Rob,

True, for some operations it would be difficult. But now it is impossible!

However, it isn't as difficult as you might imagine. It can be done. With "Extrude Along A Curve" as screwed up as it is, it is almost useless. Instead I place template lines along the curve and use "Surface Connect."

Take a look at the anchor in this image:

http://www.okieboat.com/Copyright%20images/anchor%201%201024%20C.jpg

Every curved edge was made with "Surface Connect" because "Extrude Along A Curve" screwed up by rotating the surface around the curve. So, think how much more work it was to place all of those template curves and then stretch a surface over them.

However, for most things I might want to do all I would want is for the extrusion to not rotate - "up" would always be the same, and the scale would always be 1:1. It would be an extremely simple thing to draw a vertical line at the first position, and then duplicate it at every other position along the curve. Then set the two points of each set at the ends of these lines and extrude.

Think of a bannister along a curving staircase, or a curb along the edge of a curved street going over a hill. In most cases "Extrude Along A Curve" fails for this sort of fairly common construction.

Another option would be to automatically maintain the original orientation of the object being extruded ("up" is always the same - no spiraling around the extrusion curve). Just this alone would be a MAJOR improvement.

Phil
DesignCAD user since 1987

samdavo

Valid request, no doubt about that.

Short of IMSI coming to the party - some day I plan to write a macro that would correct a twisting extrusion, by permitting you to
a) go to point-select mode
b) select the extruded grid or solid
c) lassoo the points on one cross section
d) rotate it back;
e) repeat for every cross section
more thought required.
cheers

Dr PR

#4
Sam,

That is a VERY bad idea! Trust me, I have tried it and I speak from experience.

If you twist a grid (or even just move a single point) you can create nonplanar surfaces. These will have more than one surface normal, and when you try to shade the drawing the results may look like a kaleidoscope. That may be OK of you are just playing around to see what happens, but it can ruin a real design drawing.

If you shade with shadows the results are even worse. The surface normal helps determine the direction that a shadow will be cast. A twisted surface may cause the shadow to be cast back in the direction of the light source. The result is that surfaces on the bottom of an object will cast shadows on the top of the object, and not on objects below (relative to the light source). I have posted several examples of these wayward shadows. In large designs with lots of modified grids these wayward shadow spots create a "leopard spot" pattern all over everything.

I have had to redraw many drawings to eliminate twisted grid facets that I naively created as a shortcut to getting a surface that I wanted.

Don't do it!!!!

****

However, if you first make the grid a solid surface, your idea might work, especially if you first convert it to triangular facets. Then, no matter what you do, each facet will have only one surface normal. All bets are off what it will look like!

Phil
DesignCAD user since 1987