News:

Please remember to do a search before you ask a question!

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.

Lofting imported .igs contours

Started by GDC, February 04, 2020, 08:25:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GDC

Hello
I have a series of vertical contours (100+) that were made by slicing a 3D object in a digital measurement program (PolyWorks Inspector).  I am trying to loft these contours into a 3D model.  The contours are all saved in an IGES file.  My problem is that when I open the IGES, all of the contours are on the same workplane and TC2019 Platinum will not allow me to loft unless they are all on different workplanes.  Is there an easy way to separate these contours without moving each one individually?  I have attached an example.
Thanks
Greg

Jeff_in_90620

I tried selecting every other profile and moving them up 0.001".  This allowed me to select all the profiles and invoke the Loft command, but it failed with a 'self-intersecting' error.

I lofted each pair of profiles and this is the result.  The 3D Polylines bracing level 4 (from the bottom) need some tweaking, but even then, other adjustments will be needed to avoid the 'self-intersecting' error when you try to loft every profile at once.

While tedious, one way would be to manually trace each profile (placing each on a separate layer so that only one profile is visible at a time would help), keeping sure that you start at the same relative compass heading and use the same number of points for each Polyline.  Once done, try lofting the new profiles.


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)

GDC

Thanks Jeff
I hadn't thought of moving every other one, I was moving each one.  The file I posted is a subset of the larger file with ~70 contours.  only having to move 35 is better than having to move all 70 but I was hoping for some technique or command that would change the workplane for each 3d Polyline in one batch operation.  I have several of these files to do and am trying to determine if this is worth the effort.  I guess I don't understand why the workplane is an issue when each contour is at a different z axis location.   

Jeff_in_90620

I have a very tenuous grasp of Workplanes.  I can't think of a way to re-assign workplanes, even with a complex method.  I tried assigning Workplane by Entity, selecting the top profile, then Format / Place on Workplane, but that didn't work (I got the same error message when I selected the next lower profile for the loft pairing).


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)

AussieBloke

With that many zig - zag lines in Jeffs image post it reminds me of lofting on my ship sides and the conclusion to better lofting was to check and change the number of nodes in each loft profile. Having the same amount of nodes in subsequent profiles will lessen the amount of distortion and give a smoother result.

murray dickinson

Are the file entities polylines or splines?  Is the object mechanically/analytically surfaced, ie cylindrical, conical, toroidal, planar, ellipsoidal/spherical, or freeform, like a subD model?  What's the scan tolerance?  It might be worthwhile reducing the file to point cloud with MeshLab or similar and letting TC or MeshLab fit a TIN surface. 

Jeff_in_90620

Quote from: murray dickinson on February 04, 2020, 07:21:26 PM
Are the file entities polylines or splines?

They're 3D Polylines.  Don't know about the other possibilities.


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)

GDC

#7
Quote from: murray dickinson on February 04, 2020, 07:21:26 PM
Are the file entities polylines or splines?  Is the object mechanically/analytically surfaced, ie cylindrical, conical, toroidal, planar, ellipsoidal/spherical, or freeform, like a subD model?  What's the scan tolerance?  It might be worthwhile reducing the file to point cloud with MeshLab or similar and letting TC or MeshLab fit a TIN surface.

The are currently 3d polylines but we have the option of outputting splines or bezier curves.  What I ultimately want to do is take the contours of two mating parts and generate a model of the negative space, ie clearance, between them.  The point cloud is interesting,  I also have the option of exporting a point cloud, but am not sure how to move forward from there.  I will have a go with that this afternoon.

Thanks
Greg

Henry Hubich

Quote from: GDC on February 05, 2020, 06:20:38 AM
Quote from: murray dickinson on February 04, 2020, 07:21:26 PM
Are the file entities polylines or splines?  Is the object mechanically/analytically surfaced, ie cylindrical, conical, toroidal, planar, ellipsoidal/spherical, or freeform, like a subD model?  What's the scan tolerance?  It might be worthwhile reducing the file to point cloud with MeshLab or similar and letting TC or MeshLab fit a TIN surface.

The are currently 3d polylines but we have the option of outputting splines or bezier curves.  What I ultimately want to do is take the contours of two mating parts and generate a model of the negative space, ie clearance, between them.  The point cloud is interesting,  I also have the option of exporting a point cloud, but am not sure how to move forward from there.  I will have a go with that this afternoon.

Thanks
Greg

3D Polylines can be touchy to work with. My own preference for loft profiles is 2D Splines.

Henry H

murray dickinson

I slightly prefer 3D splines even if they're flattened onto planes because in some instances when needed, you can node edit more than one of them simultaneously.  2D splines can only be node edited individually.  Try to use node edit selection on more than one 2D spline simultaneously and it reverts to object selection.

Dean

Quote from: murray dickinson on February 05, 2020, 05:47:39 PM
I slightly prefer 3D splines even if they're flattened onto planes because in some instances when needed, you can node edit more than one of them simultaneously. 2D splines can only be node edited individually.  Try to use node edit selection on more than one 2D spline simultaneously and it reverts to object selection.

Not entirely true,Murray
you can node edit multiple 2d splines if they share the same workplane.
"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

murray dickinson

#11
You're right, Dean, but you generally can't loft 'em when they're on the same WP.  Something to do with this file to get them onto separate WPs is to select them all, create surface from profile and explode them back down to polylines, which are 2D in this case.  Some sequences will  still selfintersect, but others will loft, and it is a quick'n'dirty way of switching them to 2D.
Thinking on it, there's no particular reason why it should be an interpolated loft.  A series of slices created from two adjacent profiles would fit the scan more exactly.  Scratch that, it's ugly!

Jeff_in_90620

Quote from: murray dickinson on February 05, 2020, 08:11:56 PM
Something to do with this file to get them onto separate WPs is to select them all, create surface from profile and explode them back down to polylines, which are 2D in this case.

In this particular file, with the latest version of 2019, I don't see the option of Create Surface / From Profile.  Is there something one could do to help this along?


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

#13
It's in modify|modify 3D objects|create surface|from profile.  I've confused myself, though, because now I find that it isn't working as I thought it had.  Change of tack, then, select the profiles, explode, then rejoin them as TC 3D plines which will actually loft.  If you look in selection info descriptions, the former "3D polyline" now has this little icon alongside it.  I've never noticed it before, but it seems that that's TC's own take on 3D polylines and they're less limited than imported ones.  They'll take thickness, be profiles, loft and facilitate things.  Who knew?  Not me. 

Dean

See attached images > imsi Design Cad 3D max had no problem creating a mesh from the profiles (saved from TC as dwg) though I have no idea of how the "organic" object is supposed to look  ;D
For this user case I think the only way is to used Jeff's tedious method tracing with 3D splines.
"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

GDC

Thanks for your help.  I'm still muddling through the suggestions.  Unfortunately I won't be able to get back at it until next week.

Jeff_in_90620

Quote from: murray dickinson on February 06, 2020, 05:32:27 AM
Change of tack, then, select the profiles, explode, then rejoin them as TC 3D plines which will actually loft.

Uhmm... no, not in my case, at least.

Chain Polyline refused the object type.

Join Polyline failed when in default 2D with Auto joining active.

Join Polyline in 3D mode with Auto joining active failed for some, but when it did join, it also moved the resulting object in Z (but its origin remained on the original Workplane), but Format / Place on Workplane doesn't work as one might hope.


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)

AussieBloke

Just seen Deans reply and thats interesting,  Im always on the lookout for alternate ways of working with 2D & 3D polylines and splines etc.

Murray could you post an example of your take on the howto with 3D polylines and the alternatives as you see it as youve piqued my interest in your methods.

murray dickinson

#18
There are SO many alternatives, but one that intrigued me is that opening the original file in 2019, saving as 2016, open and explode the 3D polylines in 2016 and the profiles will loft as compound profiles of segments without having to try to rejoin, where the sequence isn't selfintersecting.  2019 won't do that.  Backward step in behaviour, IMO.    But if you GOTTA have 2D polylines, another way you can obtain polylines in 2016 but not 2019 is to simple extrude the compound profiles, then explode the extrusions (can do 'em altogether, 3 x Shift+Alt+E, quicker than I can tell you how) first to ACIS solid, then to TC surface, then to polylines and left-to-right select and delete the polylines except those that are in the positions of the original profiles.
I just had a crack at doing my first ever Youtube demo: https://www.youtube.com/watch?v=6SCb5JmVvTE&feature=youtu.be
and I've just learned that menu rollouts don't show up in the capture.  FYI what's missing is explodes.

Dean, is the DesignCAD surface a smoothed loft or an interpolated faceted mesh? 

murray dickinson

Quote from: Jeffin90620 on February 06, 2020, 01:06:21 PM
Join Polyline in 3D mode with Auto joining active failed for some, but when it did join, it also moved the resulting object in Z (but its origin remained on the original Workplane), but Format / Place on Workplane doesn't work as one might hope.
Jeff

I've noticed a change in behaviour vs. 2016, in 2019 you can fence select segments to be joined polylines and finish with flag.  No fence selection in 2016.

Tim Stewart

Another way (don't you just love choices), to obtain 2-D polylines, if that's what you're after:

1.  Extrude each 3D polyline (both sides).
2.  Create Section By WorkPlane through the extrude.
3.  Delete extrude.
4.  Explode section.
5.  Save/use 2D polyline of perimeter.

Lofting might be an issue, but, who said life was easy!   ;D

Regards Tim
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

The original imported 3D polylines won't extrude in 2019 either, Tim.   

Jeff_in_90620

Quote from: Tim Stewart on February 07, 2020, 12:04:57 AM
Another way (don't you just love choices), to obtain 2-D polylines, if that's what you're after:
2.  Create Section By WorkPlane through the extrude.

That option is ghosted for me.  I made certain to Extrude Both Sides (Section wasn't available otherwise).


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)

Tim Stewart

Quote from: murray dickinson on February 07, 2020, 03:25:36 PM
The original imported 3D polylines won't extrude in 2019 either, Tim.
Murray,

it works ...

    https://youtu.be/FnA9zXwe74Y

... but, IMO, it shouldn't! 

Those "3D polylines" are 3D, in name only.
There appears to have been some confusion, in the conversion process.   :-\
Without the original .iges file, it's a bit difficult to see what that might be.

Regards Tim
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

#24
Huh!  I missed that.  All polylines can be 3D polylines in AutoCAD, the vertices can be z-shifted off-plane, I had a coordinate-measuring-machine scan of a car done more than ten years ago and the .igs and .dxf files were like this, and also notionally part of the world coordinate system, recognised as being on one WP.  With your double-sided extrusions, you don't have to pass sections and explode, though, you can explode the extrusions three times down to 2D plines. 

I have some TC inconsistency happening.  I went back to 2019 today and it'll extrude the 3D polylines with no complaint.  No need to section the extrusions at all, explode them down and delete unwanted 2D plines. 

Not an inconsistency, or at least not the inconsistency that I thought it was!  Can't extrude 3D polylines as components of compound profile in 2019, you can in 2016, and 2016 will extrude ALL of the segments, in ALL of the profiles with their differing Z heights, in one action, although you've gotta pick them individually - and the discrete extrusions are one part, so they hafta be exploded one additional operation to be reduced to plines.

The colour scheme of that file is the worst I've ever seen.  The only way you could obscure visibility more is to turn it off altogether. 

AussieBloke

Hey Murray can you grab a screen from 2016 re extrude of 3D polylines?

murray dickinson

I like this a lot. 2307 segments at multiple z coordinates.

Dean

#27
My thoughts are that the slices were taken from a mesh. I don't think TC is designed to read the data, maybe if smesh could skin profiles  ;D

I think the reason why Designcad 3d max had no problem creating a mesh from the profiles is Dcad can create ruled surfaces using linear interpolation,there are a few fit/smooth options when creating the surface.There are options regarding  point order.The ruled surface can be triangulated later.

DesignCad 3d max and meshmixer make a nice team for working with meshes.  :)
"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

GDC

Quote from: murray dickinson on February 08, 2020, 02:10:40 PM
Huh!  I missed that.  All polylines can be 3D polylines in AutoCAD, the vertices can be z-shifted off-plane, I had a coordinate-measuring-machine scan of a car done more than ten years ago and the .igs and .dxf files were like this, and also notionally part of the world coordinate system, recognised as being on one WP.  With your double-sided extrusions, you don't have to pass sections and explode, though, you can explode the extrusions three times down to 2D plines. 

I have some TC inconsistency happening.  I went back to 2019 today and it'll extrude the 3D polylines with no complaint.  No need to section the extrusions at all, explode them down and delete unwanted 2D plines. 

Not an inconsistency, or at least not the inconsistency that I thought it was!  Can't extrude 3D polylines as components of compound profile in 2019, you can in 2016, and 2016 will extrude ALL of the segments, in ALL of the profiles with their differing Z heights, in one action, although you've gotta pick them individually - and the discrete extrusions are one part, so they hafta be exploded one additional operation to be reduced to plines.

The colour scheme of that file is the worst I've ever seen.  The only way you could obscure visibility more is to turn it off altogether.

This is an interesting thought,  I don't have 2016, but i do have 21 Pro Platinum, maybe they will loft in that package

GDC

Quote from: Dean on February 10, 2020, 09:32:20 AM
My thoughts are that the slices were taken from a mesh. I don't think TC is designed to read the data, maybe if smesh could skin profiles  ;D

These were indeed taken from slices through an .stl file  I originally tried to use the stl files directly but the boolean subtraction always crashed with a degenerated surface error.  These stl files have about 50K polygons each and converting to solids is very time consuming.   I thought I could loft the contours of the outside of one part and subtract it from a loft the inside of the inside contours of the other part and get a model of the negative space.  It actually worked in one instance, but i haven't been able to replicate this success, nor find any obvious differences between the files.

In case you haven't figured it out yet, this is new to me.

Thanks Again
Greg

murray dickinson

What sort of booleans were you attempting?  TC's one of the better apps for true mesh booleans, rather than going through conversion to solids.  If the .stl is a scan of a void between mating faces, it's a notional point cloud and IMO a truer interpolation of the void than you're likely to get lofting, or even of the ruled surface mesh that Dean got from DesignCAD

Dean

Quote from: murray dickinson on February 10, 2020, 03:56:32 PM
What sort of booleans were you attempting?  TC's one of the better apps for true mesh booleans, rather than going through conversion to solids.  If the .stl is a scan of a void between mating faces, it's a notional point cloud and IMO a truer interpolation of the void than you're likely to get lofting, or even of the ruled surface mesh that Dean got from DesignCAD
Yes, Murray  :) how far does the rabbit hole go...
Pointcloud will generate a more precise mesh and TC platinum has the import pointcloud tools but this doesn't help GDC with the profiles posted. He would need to generate the pointcloud data.
Have you worked with TC pointcloud tools, Murray?
"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

murray dickinson

I much prefer to work with grids and quad meshes, so I do use point cloud tools occasionally as intermediate data, but these profiles are a million miles from smooth in x,y, so why the determination that they'd be more regular in z?   From Greg's description, this scan is of an arbitrary volume, there are no features per se, so why not use the original scans and avoid the rabbit hole if possible?   TC used to top out handling 255 x 255 mesh grids, but it's been able to deal with vastly more data at once in 64-bit with good RAM for years.

GDC

Okay,
I think I have found a solution to my problem, but I don't understand why it is working.  If I export the contours as an Autocad 2000 / 2000LT dxf file, I can loft the resulting polylines even though they are on the same workplane.  I don't want to look a gift horse in the mouth, but can anyone think of a reason this would work?  I will post a file when I get back on my drawing machine.

Thanks for all the help and suggestions. 

Greg