News:

All posts discussing pricing or where to buy TurboCAD will be deleted.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

TC Crashes when trying to offset a Bezier

Started by Grogan_Jona, April 01, 2017, 06:47:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Grogan_Jona

Hi all,

I am trying to add an offset to a complex 2D bezier curve, describing the outline of a guitar body. I set the offset distance and number of copies, select the object and click inside the shape to create the offset. The offset never appears, the program freezes and after a few seconds the window reads '(not responding)' and my only option is to close TC! I have no such problem offsetting simpler shapes. I am using TC2015 Deluxe.

Any suggestions?

Thanks,

Jona


Alvin Gregorio

#1
Quote from: Grogan_Jona on April 01, 2017, 06:47:50 AM
Hi all,

I am trying to add an offset to a complex 2D bezier curve, describing the outline of a guitar body. I set the offset distance and number of copies, select the object and click inside the shape to create the offset. The offset never appears, the program freezes and after a few seconds the window reads '(not responding)' and my only option is to close TC! I have no such problem offsetting simpler shapes. I am using TC2015 Deluxe.

Any suggestions?

Thanks,

Jona

First thing I would try is splitting it in one or more places before doing the Offset.  (using the Modify/Split tool)

You might have to do some cleanup after the Offset.  Probably in the very area(s) that TurboCAD is struggling with in doing the whole Offset.

As always, it's best and most efficient if you'd upload/attach the drawing file here for others to diagnose the issue.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

Jona, please post the problem .tcw file.

Henry H

Grogan_Jona

Forgive my ignorance; how can I post the .tcw file?

Andy H

To attach file

Just below where you type the post, is 'attachments and other options'  click that, and further options will display,  click the browse button, and locate the file, note - the file size limit is around 4MB, (very roughly 4000KB)

Grogan_Jona

Thank you, here it is.

I have now managed to complete the offset by splitting the bezier as Alvin suggested. This is quite a fiddle though so I would still be keen to learn what is causing such a problem.

Thanks


Henry Hubich

Bezier curves can be troublesome. If your Bezier is converted to a Spline, offsetting is quick and easy. See the first attachment, below.

Other problems can arise with Beziers. For example, the second attachment shows an extrusion using your Bezier as the profile and another extrusion using your Bezier converted to a Spline as the profile. The numerous lateral facets on the extruded Bezier would cause problems if Boolean operations such as filleting or shelling are required.

Henry H

Andy H

#7
Quote from: Grogan_Jona on April 03, 2017, 05:37:38 AM
This is quite a fiddle though so I would still be keen to learn what is causing such a problem.

A couple of problems really,  you have a large number of nodes, and under curve properties (select object, right click, properties,  curve) you have it set to 100 segments between control points,   when TC said 'not responding', it hadn't crashed, just taking a very long time to decide if the object can be offset or not,  I could only try in TC 2016 deluxe, but when I tried at 5mm offset it took a very long time and eventually TC decided it couldn't offset it for me,  when I dropped the number of segments down to 30, TC offset to 5mm pretty quickly, with a 10mm offset I dropped it to 20 and it still took 30 seconds to offset,  basically (it seems to me) so many nodes x 100 segments gave TC a headache..   

That said, dropping it down to 30 does mean a slight bit of tidying up in places where the offset isn't perfect,  I'd suggest not using so many nodes when drawing an object, as well as not being necessary, too many can cause problems.

All this is fine for 2D,   but as you are using deluxe, I doubt it will look good if extruded. 

Note - Henry's suggestion of using Splines instead of Bezier is a better solution.

Grogan_Jona

I've tried converting to spline, which partially solves the problem: on this curve it works quickly with a 6.35mm (1/4") offset, but with 10mm it again went into (not responding) for more than 5 min before I gave up. I also tried offsetting 3.65mm from the first offset with the same effect. 5mm from the original curve also causes it to freeze for >5min so I can't see what's special about 1/4"! Reducing segments also helps but does make the offset deviate significantly from parallel to the original curve, so as with splitting it needs a lot of cleanup.

In future I will try to draw using fewer nodes, and use a combination of the above methods to help it along if necessary. I guess I'm just surprised that this operation would be so taxing on the program, considering the much more advanced features it is capable of which I don't need and have no idea how to use!

Thank you all for your input.


Alvin Gregorio

If you are ultimately trying to draw the guitar in 3D Jona, if you had any recent Pro edition, you could:

>Extrude the first Spline
>Use the 3D Shell Tool to create the thickness which represents the real-world material.

Pro editions are much more enjoyable and fun to use-- with less frustrations from limitations-- than Deluxe and Designer editions.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

Quote from: Grogan_Jona on April 04, 2017, 01:21:38 AM
I've tried converting to spline, which partially solves the problem: on this curve it works quickly with a 6.35mm (1/4") offset, but with 10mm it again went into (not responding) for more than 5 min before I gave up. I also tried offsetting 3.65mm from the first offset with the same effect. 5mm from the original curve also causes it to freeze for >5min so I can't see what's special about 1/4"! Reducing segments also helps but does make the offset deviate significantly from parallel to the original curve, so as with splitting it needs a lot of cleanup.

In future I will try to draw using fewer nodes, and use a combination of the above methods to help it along if necessary. I guess I'm just surprised that this operation would be so taxing on the program, considering the much more advanced features it is capable of which I don't need and have no idea how to use!

Thank you all for your input.

In my 2015 Deluxe installation, Offset just does not work properly with this curve, even after converting to a Spline. But in 2017 Pro, it works beautifully and almost instantaneously.

Henry H

Alvin Gregorio

In my version-19 Deluxe, Offset on this guitar perimeter spline doesn't crash TurboCAD; but the resultant offset spline is incorrect-- unless I do the Split thing first.

And...  the resultant offset entity isn't even a spline.  It's a polyline with a whole bunch of nodes; do you guys get that in 2015--2017 Deluxe as well?

I'm trying to figure out a workaround in Deluxe for creating this guitar body perimeter offset; and assuming that the ultimate goal is to make it 3D.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

Quote from: Alvin Gregorio on April 04, 2017, 05:37:52 PM
In my version-19 Deluxe, Offset on this guitar perimeter spline doesn't crash TurboCAD; but the resultant offset spline is incorrect-- unless I do the Split thing first.

And...  the resultant offset entity isn't even a spline.  It's a polyline with a whole bunch of nodes; do you guys get that in 2015--2017 Deluxe as well?

I'm trying to figure out a workaround in Deluxe for creating this guitar body perimeter offset; and assuming that the ultimate goal is to make it 3D.

This worked for me in 2015 Deluxe: After converting the original Bezier into a Spline, change its properties as shown in the first attachment, below. Offset works quickly on this modified curve, but the offset copy is a Bezier that doesn't quite track the original (second attachment.) However, it's a fairly simple job to edit this copy so that it does track the original well enough.

Henry H

Alvin Gregorio

Quote from: Henry Hubich on April 04, 2017, 05:56:38 PM


This worked for me in 2015 Deluxe: After converting the original Bezier into a Spline, change its properties as shown in the first attachment, below. Offset works quickly on this modified curve, but the offset copy is a Bezier that doesn't quite track the original (second attachment.) However, it's a fairly simple job to edit this copy so that it does track the original well enough.

Henry H

Then, to make 3D:
Extrude the first Spline. Extrude the other a little larger, top & bottom.  3D Subtract the second from the first.

-right?
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

Quote from: Alvin Gregorio on April 04, 2017, 06:08:53 PM
Quote from: Henry Hubich on April 04, 2017, 05:56:38 PM


This worked for me in 2015 Deluxe: After converting the original Bezier into a Spline, change its properties as shown in the first attachment, below. Offset works quickly on this modified curve, but the offset copy is a Bezier that doesn't quite track the original (second attachment.) However, it's a fairly simple job to edit this copy so that it does track the original well enough.

Henry H

Then, to make 3D:
Extrude the first Spline. Extrude the other a little larger, top & bottom.  3D Subtract the second from the first.

-right?

That'll work, but here's an alternative that has some advantages...

After modifying the Spline as suggested in my earlier post, place a copy on a hidden layer and then explode the Spline into a Polyline. Make an Offset of the Polyline, which gives you another Polyline. Then convert this object into a Bezier (Format>To Bezier, accepting the defaults). In its Properties dialog, change "The number of segments between adjacent control points" to 20. This curve will track the original very nicely, with no need for tweaking. Delete the outer Polyline and make the original Spline visible again. Now, instead of Extruding, assign a 3D Thickness to each of these curves and subtract the inner from the outer. The result will be much smoother than if the profiles had been extruded, even with the "Number of approximation lines" set to the maximum.

Henry H

Alvin Gregorio

Quote from: Henry Hubich on April 04, 2017, 06:49:41 PM
...  Now, instead of Extruding, assign a 3D Thickness to each of these curves and subtract the inner from the outer. The result will be much smoother than if the profiles had been extruded, even with the "Number of approximation lines" set to the maximum.

Henry H

That's right...  It's been long enough now that I've been working with version-20-Pro, that I somewhat forgot about that tip when working in Deluxe.  With circles, curves, arcs, etc., that one wants to make 3D, it often produces a better result if we assign a Thickness to the 2D object rather than use the 3D\Extrude tool.

Thanks for that refresher Henry.

(And sometimes-- per Murray's tip-- it's even better to use a very-multi-segmented polygon instead of a curve.)
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)