News:

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

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.

A question about technique, a problem to me.

Started by Steve Edwards, November 21, 2020, 06:27:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Steve Edwards

Hi,
I have a drawing technique problem (modelling issue). I'm trying to make a 3d printed sailplane as per the image below. I would like to join the wings to the cylindrical fuselage section so that the wing root to fuselage is blended (as per real aircraft).
How can I achieve this? your suggestions would be appreciated.
The aerofoil shape was plotted from CSV data (aerofoiltools.com) and the nodes linked using the "spline by control points"
Thanks Steve

TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

Don Cheke

Quote from: Wwwdotsteve on November 21, 2020, 06:27:34 AM
Hi,
I have a drawing technique problem (modelling issue). I'm trying to make a 3d printed sailplane as per the image below. I would like to join the wings to the cylindrical fuselage section so that the wing root to fuselage is blended (as per real aircraft).
How can I achieve this? your suggestions would be appreciated.
The aerofoil shape was plotted from CSV data (aerofoiltools.com) and the nodes linked using the "spline by control points"
Thanks Steve



I didn't look at your model, but I suspect you have to have the rear edge of the wing end in a point rather than a round, It might work then. You may be able to round the rear edge afterwards.
Don Cheke
My Blog: One Man's Meanderings

Steve Edwards

#2
Hi Don,
Thanks for the reply, with my problem the "Fillet" tool does not work or more correctly cope with the complexity of the task. I get a million nodes showing (slight exaggeration) and an inability to select the fillet line.


I have attached my .tcw model. I am working on the left wing which is "added" to the fuselage.


If you try the operation with a 3mm radius you will see what I mean
TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

Henry Hubich

It looks as if the wings were created by extruding a Polyline profile containing a zillion nodes. I'd redraw the profile as a Spline--and I think you'll get acceptable accuracy with 30 nodes or fewer.

Henry H

Don Cheke

Quote from: Wwwdotsteve on November 21, 2020, 09:23:47 AM
Hi Don,
Thanks for the reply, with my problem the "Fillet" tool does not work or more correctly cope with the complexity of the task. I get a million nodes showing (slight exaggeration) and an inability to select the fillet line.


I have attached my .tcw model. I am working on the left wing which is "added" to the fuselage.


If you try the operation with a 3mm radius you will see what I mean

I agree with what Henry suggests.
Don Cheke
My Blog: One Man's Meanderings

Steve Edwards

Thanks for the replies, the aerofoil was created as a spline by control points and I did create a lot of control points. I'll re-create the same as a Spline and see if this helps. Thanks.
I notice there is a "convert to curve" function, I might try this first.


Seems I'm in for a bit of re drawing. Luckily I have all the 2D profiles to use again.
Cheers
TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

Steve Edwards

Problem solved, and I have learnt something. I did not have to redraw the aerofoil profiles, just used the "convert to curve" tool which reduced the nodes to about 30! (from a zillion). Looks like a proper wing root now. Thank you
Steve
TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

murray dickinson

It's not going to make any measurable difference at small scale, but aerofoil definition coordinates lie on the surface, the curve should be interpolated, not control point.   If you format the coordinates with a spreadsheet program as I explain in reply #7 here: https://forums.turbocad.com/index.php/topic,26992.msg157443.html#msg157443, you can use macro recorder to draw the profile as a through point/interpolated curve.    Start and end at the trailing edge of the profile and don't close the curve to keep the sharp edge. 

nikkipollard

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Steve Edwards

Just for information.
1. I selected the aerofoil from the aerofoil.com site
2. Found the .cvs file that went with it.
3. In excel I tidied the data (limited the decimal places to 4) and added a Z column with a value of zero for all the lines of data.
4. I then used the terrain function in TC to plot the data, the result was clear enough for me to trace the nodes using "spline by control points"  making sure I did not Close which rounds off the end.
5. Unfortunately my technique produces a very smooth aerofoil section, but contains thousands of nodes and this makes it difficult to work with.
6. I found the "convert to curve" tool , selected the profile and then applied the tool.
7. The resulting curve is almost indistinguishable from the original, but, and this is the key, contains a fraction of the nodes.
8. Extruding and Boolean adding the cylindrical fuselage was easy, as was the 4mm fillet




I perhaps should have used the macro function to automate the initial plotting, something I will have a play with latter.
Just starting the 3D printer, let's see if it prints !
TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

murray dickinson

#10
Yes, Nikki. Anything can be scripted with it, actually. I've been exploring some of the VBS Samples in the SDK folder and there's an intriguing one that produces some solids, but it starts by trying to produce a mesh from a file of vertex Coordinates. The script has a path, but when run, it comes up with "permission denied" a couple of tines before it creates the solids, but no mesh and no request for the file name and path. I don't know anything about this, but I'm speculating that the external file reference is a security risk, which is the reason it chokes.  I think that macro recorder is surprisingly powerful, but it's unconventional, in that its formatting is more convoluted than simple .csv-style coordinate lists, so often ignored and dismissed because you do have to resort to external spreadsheet programs to format things, and I've had to discover that for myself, not finding any guidance or how-tos anywhere else.   Am I innovating or reinventing the wheel? 

lwpicking

Personally, I like the clean look of your wing-root without any filleting, as in your second photo. And, as your wing joins the fuselage nearly normally (ie; at a right-angle to transverse section tangent), there is no aerodynamic benefit to the filleting ("fairing", in airplane lingo).
Back in the day, one reason the old Corsair was designed with an inverted gull wing was to allow the wing-root to enter the fuselage normally, which would not need to be faired. And it was our (USA) first fighter to exceed 400mph in level flight.

Steve Edwards

Interesting, i suppose in my case it became a challenge to work out how to do it and the fairing adds some strength. I have found 3D printed parts, no matter how precise the printer is , nevertheless is made from one layer placed on top of another where  sharp corners can become stress raisers.
I like the gull wing idea though, maybe I can design one in the next version (not upside down though)


TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

nikkipollard

Quote from: murray dickinson on November 23, 2020, 12:31:45 PM
Yes, Nikki. Anything can be scripted with it, actually. I've been exploring some of the VBS Samples in the SDK folder and there's an intriguing one that produces some solids, but it starts by trying to produce a mesh from a file of vertex Coordinates. The script has a path, but when run, it comes up with "permission denied" a couple of tines before it creates the solids, but no mesh and no request for the file name and path. I don't know anything about this, but I'm speculating that the external file reference is a security risk, which is the reason it chokes.  I think that macro recorder is surprisingly powerful, but it's unconventional, in that its formatting is more convoluted than simple .csv-style coordinate lists, so often ignored and dismissed because you do have to resort to external spreadsheet programs to format things, and I've had to discover that for myself, not finding any guidance or how-tos anywhere else.   Am I innovating or reinventing the wheel?
Thanks Murray  I tested it it does work.
I haven't seen an example for a 3d spline by fit points in the Sdk examples. Is there one? The macro recorder  syntax doesn't work for me outside the macro recorder.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

murray dickinson

#14
Quote from: nikkipollard on November 24, 2020, 10:20:48 PM
I haven't seen an example for a 3d spline by fit points in the Sdk examples. Is there one? The macro recorder  syntax doesn't work for me outside the macro recorder.

I don't think there is, I haven't found one either, so I've settled on the macro recorder as being simple, obvious and doable right now.  Ironically, I'm using macros in Excel and Libre Office Calc to format coordinates for TC's macro recorder.

I just found something that might have some possibility: TurboCAD Test 3.vbs, a macro in the WshScriptPack folder of the SDK/Samples folder, adds vertices to the ends of the selected line/polyline/curve.  It might be possible to use absolute values in that script to create a curve or modify it.   

John R

Quote from: nikkipollard on November 24, 2020, 10:20:48 PM
Quote from: murray dickinson on November 23, 2020, 12:31:45 PM
Yes, Nikki. Anything can be scripted with it, actually. I've been exploring some of the VBS Samples in the SDK folder and there's an intriguing one that produces some solids, but it starts by trying to produce a mesh from a file of vertex Coordinates. The script has a path, but when run, it comes up with "permission denied" a couple of tines before it creates the solids, but no mesh and no request for the file name and path. I don't know anything about this, but I'm speculating that the external file reference is a security risk, which is the reason it chokes.  I think that macro recorder is surprisingly powerful, but it's unconventional, in that its formatting is more convoluted than simple .csv-style coordinate lists, so often ignored and dismissed because you do have to resort to external spreadsheet programs to format things, and I've had to discover that for myself, not finding any guidance or how-tos anywhere else.   Am I innovating or reinventing the wheel?
Thanks Murray  I tested it it does work.
I haven't seen an example for a 3d spline by fit points in the Sdk examples. Is there one? The macro recorder  syntax doesn't work for me outside the macro recorder.

When I look at a "Copy" of the Properties for a "3D Spline" ('Copy' button in Selection Info), it's listed as a Spline first, then a 3D Spline. Should it be listed in a PPM in a similar fashion?
John R.

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

Alvin Gregorio

Quote from: John R on November 26, 2020, 09:20:27 AM
... Should it be listed in a PPM in a similar fashion?

In PPM script, I just add a value for Z-- the third value-- for a (control) point, and it's now a 3D Spline. (assuming that Z value is other than 0).
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)

nikkipollard

Alvin can you get A 3d spline by fit points?
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

Quote from: nikkipollard on November 26, 2020, 01:39:32 PM
Alvin can you get A 3d spline by fit points?

Nope.  Still haven't figured that out.
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)

Alvin Gregorio

Quote from: Alvin Gregorio on November 26, 2020, 03:12:10 PM
Quote from: nikkipollard on November 26, 2020, 01:39:32 PM
Alvin can you get A 3d spline by fit points?

Nope.  Still haven't figured that out.

But I think the way to go about it might be to include in the script the math to get from control points to fit points.
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)

nikkipollard

ha ha i am still trying to figure it out too.
It is an old question that hasn't been answered in the SDK section too.
Quote from: Alvin Gregorio on November 26, 2020, 05:39:23 PM
Quote from: Alvin Gregorio on November 26, 2020, 03:12:10 PM
Quote from: nikkipollard on November 26, 2020, 01:39:32 PM
Alvin can you get A 3d spline by fit points?

Nope.  Still haven't figured that out.

But I think the way to go about it might be to include in the script the math to get from control points to fit points.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h