News:

When replying to a specific statement be sure to quote the previous post.

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.

Boat Hull via Import Terrain .txt or .xyz file

Started by Alvin Gregorio, December 13, 2020, 08:21:40 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Alvin Gregorio

Hello All,

I recently suggested to Forum member Ruedi to try to use the Architectural Import Terrain feature to import points from an .xyz file.
Browsing Ruedi's past posts, I see they might be into boat hull designs.

So I started experimenting with it.
I found a very small xyz boat hull file online (I think it was intended for feet space units; I just left mine at inches).
I opened that file in Wordpad; cleaned it up a bit by getting rid of semicolons and extra spaces, just putting spaces between the coordinates.  My revision of that file is the attached .txt file.

Then, in TurboCAD, I used the Import Terrain tool to import those points.  Worked good.  It results in a loft from the World plane, but I can live with that.  I'm just going to use it for the next step, which is what I'm inquiring about here.

What is the best way of getting from that triangulation of points to a smooth-ish surface, actually representative of a boat hull?

You can see from the attached .tcw file what I did-- traced over the points with 3D Polylines and 3D Splines, then Lofted with Guide Lines.
But I don't know if that is the best or most correct way of going about it.  I thought current versions of TC Platinum had some "profile to surfaces" or "surface to Surfaces" tools, or something like those.

What do you think?
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)

Jeff_in_90620

My initial suggestion would be to create some outlines and Loft them together.  To do that, I would place Splines along the horizontal demarcations, but there aren't any in your model.  Creating 3D Splines won't help because they cannot be lofted (at least, not by TurboCAD).

First, Mirror copy (in World view) the detailed boat half-hull using the bow as the horizontal reference (otherwise, you'll get some overlap).

Second, in the World view, I would place Splines (the 2D version) by Vertex snapping as needed around the perimeter for selected elevations.  Each Spline will not be at the desired elevation, so each one will have to be re-positioned.  Three elevations (top, bottom and somewhere near the middle) should provide enough for a smooth hull but, because you have a sharp demarcation around the (I'm guessing) water line, you may want to use 3 Splines for the two sections of the hull that are seemingly above and below.

Third, create another Spline in Front view and use that with the Simple Extrude to get your vertical rise in the hull as desired.

Perform a 3D Intersect on the two pieces (the Loft and the Extrude), then Shell Solid to hollow it out.


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)

lwpicking

Quote from: Alvin Gregorio on December 13, 2020, 08:21:40 AM


What is the best way of getting from that triangulation of points to a smooth-ish surface, actually representative of a boat hull?



The secret to smooth-ish-ness is the KISS principle. Use as few control points as possible to develop the curve(s) that define your hull.  I traced the curves of your boat with three splines, each spline with four (4) control points: two end points and two on-line points.  The keel is a 2D spline drawn on a vertical workplane through the centerline of the hull. The chine and gunwale are each 3D splines.
Finesse the control points of these splines until they are super smooth-ish and yet honor your data points as closely as possible.  Some compromises on the original data points are in order here, as they are in real-life boatbuilding.

Now loft the sides using the 3D gunwale and chine splines, then the bottom using the 3D chine and 2D keel splines.  Examine your work.  You probably won't like the bottom loft, but you can improve it by adding 3D lines running from gunwale to keel and using them as guidelines, in a loft redo.

When you get the shapes you want, then mirror image it, create a workplane for the transom, and draw it.

As an alternative to lofting you can use the cover tool if your version has it, but in this case I see no advantage over simple lofts.

First photo is loft per the red loft lines, second photo is cover per same red loft lines. The tcw file is your original file with my machinations.

Hope this helps -- LW


Dean

She's a beauty,   :) Alvin

Lw has got it covered as a solid object.

my way, being the few points reference a surface.
Ruby script > import as lines.
Lofted as a surface
covert to smesh
"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

Alvin Gregorio

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

Jeff, we can loft with 3D Splines in v27.0.19.6 and later.

Henry H

murray dickinson

#6
Most small dinghies are designed as ruled surfaces because they unroll naturally and easily to be cut from sheets, glued and stitched together and then reinforced as needed.  As this guy impressively does, without software, here: https://www.youtube.com/watch?v=zBGk5FQvg6w
Deriving smooth nurb surfaces from meshes is like raster-to-vector tracing extended into 3D, and although we complain about how marginally-successful that is with TC's trace tool in 2D, the truth of it is that others aren't better to the point of being automatic, and that's the same in 3D.   The PowerPackPro plugin that was available for TC Mac V9 and V10 had a mesh-to-nurb capacity that works very well - with quad-dominated meshes, which are what most subdivision modellers produce, TC's smesh tool, PunchCAD's subD modelling, Blender, Wings3D, many others too.  If meshes are triangle-dominant, they have to be converted to quad-dominant, a process that subD modellers call retopology.  Some subD modellers have automatic retopology tools, ZBrush, 3DCoat are a couple.  Blender has a couple of methods built -in, one's called "Shrink wrap" and it snaps a regular, parametric (in the sense of being able to declare the subdivision density and extrusions) quad-dominated mesh to the surface of a tri-dominant mesh or even a messier quad-dominant one.   There are semi-automatic means in Blender, too, where you can "paint" quad faces over other meshes.  Blender has some methods built-in, some are sold on the Blender market, but the cost of them is low by CAD program standards.    There's a plug-in on the OnShape site that uses the same NPower libraries that TCMac/PunchCAD used for mesh-to-nurbs, and it has a Blender-style "shrink wrap" tri-to-quad-dominant tool associated with it. There's also a remeshing program called "Instant Meshes" out there, that works pretty well.  One issue with remeshing is that it can be difficult to define where there are hard creases instead of blended edges.   
Fusion360 has another way of doing it: Autodesk bought T-Splines technology, originally available as plug-in for Rhino and SolidWorks.  T-Splines works by turning each facet of a mesh into a nurbs surface, and it includes its own modelling paradigm, which is something like subdivision but with each face/t curved and continuously blending into its neighbours.
Marcus Bole's PolyCAD software, which I've mentioned many times over the years, can switch regular-grid, .dxf-type meshes, like those produced by TC's 3D mesh tool, backwards and forwards between mesh or a B-spline surface that uses the mesh coordinates as control point coordinates.  TC Mac Pro and PunchCAD can produce b-spline surfaces directly as a so-called GRID import format, where you format coordinates into a .dat text file that tells you its u x v ranges, and the coords at the intersections, similar to how TC does 3D meshes.
 


   

Tim Stewart

Murray, thanks for the link.

Just goes to show that you don't need software to build what has been created for millennia without. 
It's all too easy to get hung up on minutiae, when, in practice, it may not be necessary.
As they say, a picture is worth a thousand words, or, in this case, about 450!  ;D
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200

murray dickinson

I roared at one of the comments: "At first I was sceptic, but then I saw the beard.."

lwpicking

I've been evaluating a trial copy of 2020 Platinum and am quite impressed with the Covering Tool.  It sure beats lofting when it comes to complex shapes like round-bottom ("soft-chine") boat hulls.

In the 1st photo below are lines "laid down" from an architect's table of offsets for a 10' dinghy. All are 2D splines except the sheer which is a 3D spline.  The other three photos are these lines covered with the Covering Tool and then shelled inwardly 1/2".

Of course, in typical IMSI Design fashion, there are errors in the Users Guide.  It states that the Covering Tool complements other tools like the "Skinning" tool.  Near as I can tell, there is no such thing as a "Skinning" tool.  Oh!  And it is "TurboCad," not, "TorboCad."