News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

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.

Accurate Parallel Curves and measurement

Started by Riftvalley, July 01, 2012, 10:41:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Riftvalley

I have two design issues that I need to resolve.

This first is how to create a curve within a Bezier curve that is a fixed distance from the curve.  In esssence this is like shelling but in two dimensions.  I can create a 3D version of a Bezier curve and then shell it to create the effect in 3D so I am sure TC ought to be able to do the same thing in 2D.  I need to do this to create an accurate model for generation of sectional properties.  At the moment I am forced to shell a small 3D section and then use snap to nearest point to create the inner contour (the outer one is known), but I am sure there ought to be a quicker and more accurate way to do this.

The second issue is related and is simply how to measure the distance between two points at greater accuracy than the values shown in the line dialogue box, i.e at machine accuracy.

I need to do this because we have to generate some contours at very high accuracy and precision.

Attached image shows that reasonable sections can be created but I am sure TC ought to be able to do this in a simpler way.

Kind regards and thanks in advance

Martin
MS Win10 Pro, i7-3770K processor, Nvidia GeForce GTX, 500GB SSD, 2T HD, 16GB RAM (32GB Virtual). Gigabyte Mobo.  TC since 3.5" floppy days.  Now 2018 Platinum although still use Ver 11 for beam tool (not compatible with Ver18, or version 21).   Cannot get TurboCadCam ver 3.0 to work on Win 10 machin

Kenneth Martin

What version of TC are you using? Have you tried the offset tool? & for measurement information, that can be found in the Selection Info pallette under the Metrics lable.
TurboCAD user since v3
TurboCAD on flickr || My twitter ||

John R

#2
re: This first is how to create a curve within a Bezier curve that is a fixed distance from the curve.
Use the Offset tool. It will create a Bezier offset from the original.

re: The second issue is related and is simply how to measure the distance between two points at greater accuracy than the values shown in the line dialogue box, i.e at machine accuracy.
To start, go to "Options / Space Units" and turn up the Precision; 10 is max.
If using the Dimension tools, go to the "Dimension Styles" in the Styles Manager palette. In the "Units" section, change the "Precision for primary unit" to a higher precision. Change the "Round off for primary" to a higher value. You need to experiment here. A precision of "17" and round off of "1e-17" gave me a dimension of "12.37280414691806400". It's probably best to make this a separate Dimension Style.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Riftvalley

Many thanks fo the quick response,

I am using Ver 19 Pro for most of my work but have to regress to Ver 12 or 16 if I am dealing with section properties as version 19 doesn't seem to like the .dll's that I have to import.

I will try these solutions as soon as I can get get back to my desk from a current visit.

Wow, I think 19 sig figs should sort me out, five will probably be more than sufficient!

Again many thanks

Kind regards

Martin
MS Win10 Pro, i7-3770K processor, Nvidia GeForce GTX, 500GB SSD, 2T HD, 16GB RAM (32GB Virtual). Gigabyte Mobo.  TC since 3.5" floppy days.  Now 2018 Platinum although still use Ver 11 for beam tool (not compatible with Ver18, or version 21).   Cannot get TurboCadCam ver 3.0 to work on Win 10 machin

Riftvalley

Hi, I have been exploring the use of the offset tool and I am getting mixed results, see attached drg.

Ideally I would like to draw a Bezier curve through a series of points and then define an offset distance and then get a similar Bezier offset curve.

What I find is that drawing an offset from a closed Bezier curve, in this case, through 61 points produces a resulant curve that in fact cuts the original curve and therefore is not an offset curve and is created with far fewer nodes than the original curve.  Is TC limited by the number of nodes that a resulant offset Bezier can contain, can these be increased?

I have tried joining the points with a polyline and this works fine.

The problem with a polyline is that I need to define the coordinates of the airfoil very accurately as it is an airfoil that relies on a good boundary layer and drag bucket effect in order to work at best efficiency and a polyline is too pointy (technical term!).

I have considered using a polyline to create the offset and then joining the vertices with a new Bezier curve, but this will yield a new contour that is not quite precise.

Any ideas how I can improve the Bezier offset curve as if thuis can be done it will be the best way forward IMHO.

Many thanks in advance, kind regards

Martin
MS Win10 Pro, i7-3770K processor, Nvidia GeForce GTX, 500GB SSD, 2T HD, 16GB RAM (32GB Virtual). Gigabyte Mobo.  TC since 3.5" floppy days.  Now 2018 Platinum although still use Ver 11 for beam tool (not compatible with Ver18, or version 21).   Cannot get TurboCadCam ver 3.0 to work on Win 10 machin

GregT

Could you use a spline instead? If you use Spline by Fit Points... the actual nodes do not lie on the spline itself... so there is a huge benefit to this. Your solid has no stepping/faceting whatsoever about the curve. Offset works great with a spline as well.
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64

Riftvalley

Hi GregT,

Thank you for your reply.

I get a similar problem with splines, the so-called offset curve actually crosses the original curve.  Also, the offset curve is made up of a sparsly populated Bezier curve, even though the original curve was a Spline.

Many thanks for your interest in this problem.

M
MS Win10 Pro, i7-3770K processor, Nvidia GeForce GTX, 500GB SSD, 2T HD, 16GB RAM (32GB Virtual). Gigabyte Mobo.  TC since 3.5" floppy days.  Now 2018 Platinum although still use Ver 11 for beam tool (not compatible with Ver18, or version 21).   Cannot get TurboCadCam ver 3.0 to work on Win 10 machin

GregT

Could you post the file... would help a lot. I have not had this problem... so it could be the new settings in the offset tool throwing it off... but just guessing.
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64

Riftvalley

Hi Greg,

I am using version 15 as I will need to determine section properties when I get this to work and I know that the .dll's I use do not work in ver 19 and therefore I can only import forward and therefore don't want to have to renter all the coordinate data again (I can always go forward to ver19 but not the other way).

The file is a bit untidy as I am experimenting with the offset tool.

The offset tool seems not to work well for version 19 (or at all with this section!)

Thanks for the help.

Kind regards

Martin
MS Win10 Pro, i7-3770K processor, Nvidia GeForce GTX, 500GB SSD, 2T HD, 16GB RAM (32GB Virtual). Gigabyte Mobo.  TC since 3.5" floppy days.  Now 2018 Platinum although still use Ver 11 for beam tool (not compatible with Ver18, or version 21).   Cannot get TurboCadCam ver 3.0 to work on Win 10 machin

GregT

A few things:

1. See attached... the spline crosses itself... the Offset tool is not going to work correctly like this. After uncrossing the spline... offsetting was no problem.

2. If I recall correctly... v15 will turn a spline into a Bezier when offset... can't remember when they added the Advanced Offset tool which fixed this.

3. The bottom Bezier offset just fine in v17-v18, and kept the same node count... v19 is all screwed up.
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64

Riftvalley

Hi Greg,

I have tried versions 15, 17, 18 and 19 and in every case the so called offset  will cut through through the original contour.

It works fine for a polyline but not a Bezier, driving me nuts!

Attached file was done with version 17

M
MS Win10 Pro, i7-3770K processor, Nvidia GeForce GTX, 500GB SSD, 2T HD, 16GB RAM (32GB Virtual). Gigabyte Mobo.  TC since 3.5" floppy days.  Now 2018 Platinum although still use Ver 11 for beam tool (not compatible with Ver18, or version 21).   Cannot get TurboCadCam ver 3.0 to work on Win 10 machin

GregT

Posted the problem you were having in the Beta forum... and Henry to the rescue.

He copied a Bezier from the first drawing you posted, and pasted it into a new one... and it offset fine.

I did this with the last one you posted... and it too worked fine. This was with v19.
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64

Riftvalley

Hi Greg,

I opened the last file I posted in TC Pro 19.0 32 bit on my laptop and tried the offset tool on a copy of the primary Bezier curve.  I got a totally different result from the 64-bit version on my desktop machine. The program produced a very good offset curve - brilliant!

The only problem is that the offset curve is a series of separate short splines where the end point of each spline segement coincides with a node point on the original Bezier curve.  Yet another variation by TC.

I have reproduced the result in the attached .jpg and also a TC19 32 bit drawing of just the Bezier curve and the resulting 2mm offset spline.

If I could easily join the splines together that would be a solution.

Kind regards

Martin
MS Win10 Pro, i7-3770K processor, Nvidia GeForce GTX, 500GB SSD, 2T HD, 16GB RAM (32GB Virtual). Gigabyte Mobo.  TC since 3.5" floppy days.  Now 2018 Platinum although still use Ver 11 for beam tool (not compatible with Ver18, or version 21).   Cannot get TurboCadCam ver 3.0 to work on Win 10 machin

GregT

I think John R has figured out the problem There is a bug where the Bezier will only offset correctly when it is on the World Workplane.

Try this with the last drawing you posted.

1. Set the Workplane to World.

2. Select the Bezier, and place it on the World Workplane

3. Now offset the Bezier.

Offsets correctly... and remains a Bezier.
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64

John R

I think you got the steps out of sequence.


  • Select the Bezier object
  • Select "Plane by World" (Ctrl+Alt+W)
  • Select "Format / Place on Workplane" (Shift+Alt+W)

If you set World WP first, selecting the curve will return you to the other workplane.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

GregT

Quote from: John R on July 06, 2012, 01:23:22 PM
I think you got the steps out of sequence.


  • Select the Bezier object
  • Select "Plane by World" (Ctrl+Alt+W)
  • Select "Format / Place on Workplane" (Shift+Alt+W)

If you set World WP first, selecting the curve will return you to the other workplane.

Not if you're in 3D Selector mode it won't... works just fine in the sequence I gave.
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64

John R

Ah!! I was assuming that since the object is 2D, the user is working in 2D. I never got into overriding the selection, I like to know what an object is when I select it.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

GregT

I assumed too much as well... figured everyone works in 3D mode as I do. I very seldom every switch to 2D mode.
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64

John R

re: …I very seldom ever switch to 2D mode.

I don't switch either, I let the program do it automatically by using the "2D/3D depending…" setting in Selector Properties.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

GregT

I move 2D profiles around too much to do that.
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64

Riftvalley

#20
Many thanks for your continued assistance, much appreciated.

I can now create an 'onion' skin offset set of Bezier curves, as shown in the attachments.

I imported and moved the original Bezier curve to the 3D worplane and then to 0,0,0 (Work PLane by world).

However the first offset was displaced upwards and to the right as shown in the attachement.

I could move the original Bezier into position, but would prefer that the curves were in the correct position to begin with.

I now have an additional issue, if I create the Bezier curves as shown with TC19 can I re-import these curves back into a previous version (say TC15) because I find that my sectional constants and beam .dll's do not work in TC19.

I do realise that TC is doing a huge amount of work in genrating the new Bezier curves, but is it possible to alter the accuracy and number of Bezier nodes?

Note:
I just experimented by re-drawing the Bezier but with fewere node points, the new curve was arbitrarily positioned, but when I asked for and offset it appeared in exactly the same position as before.



Kind regards

Martin
MS Win10 Pro, i7-3770K processor, Nvidia GeForce GTX, 500GB SSD, 2T HD, 16GB RAM (32GB Virtual). Gigabyte Mobo.  TC since 3.5" floppy days.  Now 2018 Platinum although still use Ver 11 for beam tool (not compatible with Ver18, or version 21).   Cannot get TurboCadCam ver 3.0 to work on Win 10 machin

Riftvalley

#21
Hi,

I tried copying and importing the 'Onion skin' into Ver 15 (after I had repositioned the original contour around the derived Bezier curves).

Ver15 objected a bit claiming unhandled exceptions etc, but I chose to continue. The result was that the curves were imported OK.

I then chose a layer, in this case the second, and derived the sectional properties (I have tested this procedure to make sure that the results are corredt) as shown in the attachement.

Note, I have tried all the layers and can derive sectional properties for each  8)

So now I have a way forward.

It would be great to have all the anomalies cleared up and be able to import the Section prpoertied and the Beam analysis .dll's into version 19.

Martin

MS Win10 Pro, i7-3770K processor, Nvidia GeForce GTX, 500GB SSD, 2T HD, 16GB RAM (32GB Virtual). Gigabyte Mobo.  TC since 3.5" floppy days.  Now 2018 Platinum although still use Ver 11 for beam tool (not compatible with Ver18, or version 21).   Cannot get TurboCadCam ver 3.0 to work on Win 10 machin

GregT

Quote from: Riftvalley on July 07, 2012, 01:08:03 AM
Many thanks for your continued assistance, much appreciated.

I can now create an 'onion' skin offset set of Bezier curves, as shown in the attachments.

I imported and moved the original Bezier curve to the 3D worplane and then to 0,0,0 (Work PLane by world).

However the first offset was displaced upwards and to the right as shown in the attachement.

I could move the original Bezier into position, but would prefer that the curves were in the correct position to begin with.

I now have an additional issue, if I create the Bezier curves as shown with TC19 can I re-import these curves back into a previous version (say TC15) because I find that my sectional constants and beam .dll's do not work in TC19.

I do realise that TC is doing a huge amount of work in genrating the new Bezier curves, but is it possible to alter the accuracy and number of Bezier nodes?

Note:
I just experimented by re-drawing the Bezier but with fewere node points, the new curve was arbitrarily positioned, but when I asked for and offset it appeared in exactly the same position as before.



Kind regards

Martin

It still sounds as if you don't have the Bezier on the World Workplane. If you are in 3D selector mode, follow my instructions... if in 2D... follow John's.

If you are working in 3D selector mode... each time you move a 2D object... it moves off the current Workplane. So if you moved the Bezier after you put it on the World Workplane... you need to do a "Format : Place on Workplane (Shift+Alt+W)" of the Bezier before offsetting.
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64