News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

Main Menu

Untwisting a Rail Sweep

Started by Henry Hubich, January 03, 2014, 01:57:45 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Henry Hubich

When a 2D profile is Rail Swept along a Helix, the result will be twisted. It can usually be straightened by adjusting the Twist Angle in the Sweep’s Properties dialog. The required value for this parameter is approximately

TA = 360 * n * H /L
 
where

TA = Twist Angle in degrees.

n = number of turns of the helix.

H = height of the helix.

L = curve length of the helix. This can be determined by exploding the helix one time, thereby converting it to a 3D Spline, and reading its Length in the “Metrics” listing in the Selection Info palette.

The formula generally yields the correct twist angle within five degrees or less. If greater accuracy is necessary, the user must tune the Twist Angle property by trial and error.

Be aware that if H/L is not constant â€" e.g., if the helix is tapered or if its pitch varies along its length â€" there is no way to remove all twist from the Sweep.

Henry H

Dean

Great Tip! Henry
I saved that formula in the variables palette for future use, Thanks
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

ttreker

TurboCAD Deluxe doesn't have a "Twist Angle" parameter in the Rail Sweep properties. I just use revolve which isn't as configurable but gets the job done without a twist.
Christopher C. Mills
-TurboCAD Deluxe 21.2 64 bit
-Windows 7
-Dell Precision M4600 Intel Core i7-2720QM CPU
   @2.20GHz, 4 Cores, 8 Logical
-NVIDIA Quadro 2000M

Jeff_in_90620

Quote from: Henry Hubich on January 03, 2014, 01:57:45 PML = curve length of the helix. This can be determined by exploding the helix one time, thereby converting it to a 3D Spline, and reading its Length in the “Metrics� listing in the Selection Info palette.

In version 2024, you do not have to explode the Helix to get its length.  Open the Selection Info palette, select the Helix and expand the Metrics sub-head to see the Length entry.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

lglauberman

Great info.

What about a simple 3D polyline? Is there a trick to that?
Lawrence Glauberman, LIG
TurboCAD 2024 Platinum, Lightworks
Bambu H2S w/AMS2, QIDI XPlus3

murray dickinson

Quote from: Jeff_in_90620 on March 17, 2025, 03:52:03 AMIn version 2024, you do not have to explode the Helix to get its length.  Open the Selection Info palette, select the Helix and expand the Metrics sub-head to see the Length entry.


Jeff



One rotation of a helix is sqrt(((pi*diameter)*(pi*diameter))+(pitch*pitch)), wonder if 2024 calculates a generic curve length function or a look-up?

Lig, I don't think there could be a generic 3D polyline twist, polylines with arc segments don't twist, arc segments are a rotation without twist.  If the polyline is a segmented approximation of a curve, the twist factor would have to be calculated for every pair of adjacent segments, or interpolate a 3D curve through its vertices.  And while Henry figured the twist factor for a helix, that's possible because a helix is regular, anything else would have to be figured piecewise.     

Jeff_in_90620

I was able to do a complex workaround with the Pattern on Curve and Loft commands (plus significant manual labor).

  • Make the Polyline (I chose a rectangle).
  • Generate the Helix.
  • Invoke Pattern on Curve.
  • Activate the Non Rotate icon (this avoids axial twisting of the Polyline along the Helix).
  • Specify the Count of elements (I used 24 in this example).
  • Select the Polyline followed by the Helix.
  • Select and Explode the Pattern.
  • Place a point in the center of the Helix.
  • As shown in the image Alignment of Rectangles on Helix, rotate each Polyline to be radial to the center.
  • Invoke the Loft command and (tediously) select each Polyline in order (a Group Select option would be nice, if the order reflects the pattern).
  • Voila.

Jeff


Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

murray dickinson

Oof, that's a lotta work considering Andy pointed out elsewhere that revolve with pitch builds proper helical sweeps near-instantly.  I think a two-rail sweep *should* indicate profile orientation with irregular arbitrary 3D sweeps, but ViaCAD and SharkCAD, presumably TC Mac as welingl, have two-rail sweep tool and it's not a universal satisfier.  Maybe lofting with two or more guide should be the same sort of tool, profile morphing optional too.

Jeff_in_90620

Quote from: murray dickinson on March 20, 2025, 06:45:34 AMOof, that's a lotta work considering Andy pointed out elsewhere that revolve with pitch builds proper helical sweeps near-instantly

Yeah, and it isn't even a proper sweep for the solid object, so the number of polylines is important.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)