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.

Bending and twisting

Started by roger_c130, January 17, 2014, 04:23:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

roger_c130

Is there any way to create curving/twisting non-round rods?  Seems to me that aircraft and ships have a lot of such forms.  I've tried extrusions but the twisting beats me.


prl

Quote from: roger_c130 on January 17, 2014, 04:23:46 AM
Is there any way to create curving/twisting non-round rods?  Seems to me that aircraft and ships have a lot of such forms.  I've tried extrusions but the twisting beats me.

Roger, do you have an example in mind?  DesignCAD can do some tricks with twisting grids that are capped at each end with a plane and then defined as a solid. 

Here is a reminder of the general approach using the surface connect command with a twisting rectangular shape defined by ribs placed in 3d space.  A surface is purposely stretched across the twisting ribs creating a twisted solid.

http://forum.designcad.com/index.php?topic=4505.msg27073#msg27073

Dr PR

minstrel,

Your tutorials are nice, but they often use many unnecessary steps. Perhaps that is your way to acquaint new users with a variety of commands, but it doesn't always show the quickest and easiest way to do things.

For example, your "Twisted Array" tutorial shows how to array along a curve with rotation, and you make a good point about controling the position of the points with the "Surface Connect" function. But, the "Extrude Along A Curve" function will produce the same result much faster and easier.

1. Draw the curve.

2. Draw the box and set a handle anywhere on the box.

3. Position the (box) handle anywhere relative to the curve, depending upon how you want the extrusion (the box can be positionad as you show it, or it can be some distance from the curve).

4. Use "Extrude Along A Curve" to generate a grid (from a line box) or a solid (from a plane box).

You can define the amount of rotation, and even change the amount of rotation between steps. You can also use variable scaling with the extrude to change the diameter/cross section distance during the extrude.

****

There is one important consideration here. Extrusion can rotate the original around the curve in unpredictable ways. Each intermediate cross section will be rotated in a manner relative to how much the curve twists. It is as if the curve has a "top" or "up" at each point, and the position of the top rotates as the curve twists. Then the twist of the curve is added to the amount of rotation you specify for each step. You can't specify a single "up" for all points. This can produce unexpected results.

Your method MAY allow more precise control of the rotations, but I can't say for sure without experimenting more.

Phil
DesignCAD user since 1987

minstrel

Quote from: Dr PR on January 17, 2014, 09:13:24 AM
minstrel,
Your tutorials are nice, but...
Ah, you just got too many DesignCAD hours under your belt, Dr PR! ;D

For someone to see how an 'Array' function [and it's deeper settings] actually works and then immediately be able to put it into practice..well, that's my calling. They can streamline their own workflow at their own pace as their skill levels progess.

I'd even venture a guess that some long time users as well as those new to DesignCAD 'smile' when they can finally grasp these basic concepts by seeing them actually performed.

Quote from: Dr PR on January 17, 2014, 09:13:24 AM
You can define the amount of rotation, and even change the amount of rotation between steps...
You do make me curious though...can you explain further, since it's so 'quick and easy' how and where you set the rotations you speak of?


prl


prl

I think the various sweeps and extrude commands are OK, but they don't give you as much power if you really need something specific and complicated.

If you can visualize your final solid in terms of planar slices, say ribs along its length, you can get DesignCAD to do some really great and predictable shapes using the surface connect methodology.   Think of it as an armature at various points along your solid.  It isn't instant since you need to know the shape(s) you want at the various control locations, but it can build things the other commands can't.

roger_c130

WOW.  Ask and ye shall receive.  Great site Minstrel.  I'll see what I can do.

Dr PR

Minstrel,

I also smile when I get one of these complex DesignCAD functions to work since it often takes a lot of failed attempts to figure out how to get them to work!

Rotation with the "Extrude Along A Curve" is almost impossible for me to control. Actually, I think it is just plain luck when the function does what I want it to do. But, when I am desperate, I keep at it until something works.

As I said, the program calculates a "normal" (a perpendicular to the tangent to the curve at the point) for the curve at each point along the curve. If the curve does not lay in a single plane, but curves in 3D space through multiple planes, as the curve twists and curves the normals rotate about the line, so the normals ARE NOT parallel to each other.

Then the program generates a copy of the object to be extruded along the curve at each point, rotating the copy so that it has the same orientation relative to the normal as the original has to the normal at the original's point. This causes the cross-sections of the extrusion to rotate about complex curves.

You can find illustrations of the extrude behavior here:

http://forum.designcad.com/index.php?topic=4580.0

****

But there is more!

The "Extrude Along A Curve" dialog gives you several Orientation options:

Original
Forward
Backward
Left
Right
Perpendicular

These control the orientation of the cross section as it moves along the curve. Forward, Backward, Left and Right cause the cross section to be rotated around the direction of travel - the tangent to the curve. This allows the extrusion to rotate around the curve.

I think left/right cause the cross-section to rotate around the tanget to the curve creating a spiral. I think forward/backward cause the cross-section to "tumble" head over heels along the curve (can anyone imagine a use for that?).

If the original object's handle is on the curve the extrusion is like a twisted string. But if your original object does not lay on the curve but the handle is on the curve the extrusion will spiral around the curve with the curve at the center of the spiral and the extrusion some distance from the curve - more or less like a helix.

But you get the unpredictable "normal" rotation mentioned above PLUS the defined Forward, Backward, Left or Right rotation.

If you choose the Perpendicular orientation the extrusion cross section will be perpendicular to the tangent to the curve, BUT you will still get the "normal" rotation mentioned above.

****

For me the results of anything but the Perpendicular orientation are totally unpredictable and I have never gotten them to work for any useful purpose. The Perpendicular orientation is fairly predictable but it almost never generates what I want with curves that do not lie in a plane because of the "normal" rotation.

****

Note: This is how past versions have worked and I have not had the chance to wring out V23. However, there has been no mention that "Extrusion Along A Curve" has been modified for V23.

Phil
DesignCAD user since 1987

minstrel

Nice write up, again...thanks DR!

Yet I am still struggling with getting your 'mini' tutorial to match the results of my "Twisted Array" ScreenCast.
So I'm, as yet, not finding it much faster or easier [truth is, it's taking too much time already! ;).

Quote from: Dr PR on January 17, 2014, 09:13:24 AM
For example, your "Twisted Array" tutorial shows how to array along a curve with rotation, and you make a good point about controling the position of the points with the "Surface Connect" function. But, the "Extrude Along A Curve" function will produce the same result much faster and easier.

1. Draw the curve.

2. Draw the box and set a handle anywhere on the box.

3. Position the (box) handle anywhere relative to the curve, depending upon how you want the extrusion (the box can be positionad as you show it, or it can be some distance from the curve).

4. Use "Extrude Along A Curve" to generate a grid (from a line box) or a solid (from a plane box).

You can define the amount of rotation, and even change the amount of rotation between steps. You can also use variable scaling with the extrude to change the diameter/cross section distance during the extrude.

I can get 'twists' to occur when the curve lies in 'multiple' planes but not when the curve lies in a 'single' plane [as in the ScreenCast].  So what am I missing?

Regardless, when all the 'dust' settles, I'll be sticking with my technique of using the 'array' and 'surface connect' functions. They offer, not only, the quickest, easiest and most accurate/predictable approach but allow for extensive modifications of each of the 'planes' prior to 'surface connect'...Yes!

...Oh, just to 'jog' your memory, I attach a 'snap' from the original ScreenCast...a 'twisted' single plane curve.



minstrel

Quote from: prl on January 17, 2014, 11:59:13 AM
Minstrel,  it has been a while since I checked out your site.   VERY NICE!!!

Quote from: roger_c130 on January 18, 2014, 03:41:40 PM
WOW.  Ask and ye shall receive.  Great site Minstrel.  I'll see what I can do.

Thanks for the encouragement!
...and just think, the best is yet to come!

cavelamb

If the "extrude along a curve" function didn't do what yo need, then probably the best thing to do is loft the shape.

Draw cross section shapes where they go and do a simple surface connect.
(not that surface connect is actually simple)

You can draw pretty much anything you want that way.


minstrel

uhh, cavelamb - I assume you are addressing me...

...have you actually been following this thread? :o

cavelamb

You guys look so much alike I got confused.
That's my story and I'm sticking with it...

:)