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.

What's the best way to find and fix open Polylines?

Started by Jeff_in_90620, August 01, 2018, 03:16:10 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Jeff_in_90620

In the attached file, I have a series of Polylines that were Exploded from Sections (taken from an STL file of sunglass frames).

When I Loft any number of these Polylines, the result is a hollow object (indicating that the Polylines are not closed).

These Polylines do not appear to be open and are not reported as such, so I need some help figuring out how to get a solid body.


Thanks in advance,

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)

Jeff_in_90620

Oh, yeah... I should point out that the filled Polylines do not Loft (or even Extrude).  That's odd in and of itself, but not germane to my problem.


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)

Andy H

That is a tough one Jeff. I'm not sure what you meant by 'the filled poylines'

I didn't have the same problem as yourself on this one,  On most of them I couldn't select more then 2 profiles or I got a self intersecting error.  I could loft parts of it using just 2 profiles at a time which came out solid,  but some wouldn't loft even just using 2 profiles.  I had a bit better result by converting to curves and then to spline.

The attached is just one part that lofted solid using 2 profiles at a time, but it twisted the loft.  I know it would be a lot of work, but personally I'd consider carefully redrawing the lot, using splines.  Even then, on some, there is such a large difference between profile shapes, it may still not loft properly.

Jeff_in_90620

I got self-intersecting errors, too, but not with smaller selections.  No twisting has been evident in the experiments I've done, so far.

Maybe I should divide the frame up into different groups to work on this.


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)

Henry Hubich

My results are the same as Andy's. My recommendation is the same as Andy's, too.

Henry H

murray dickinson

#5
Will you post a 2016 save so I can fiddle too, Jeff?  I'd try using branched lofting for half of the frame, trunks from one bow side and from the centre of the nose bridge that either branch into each other for addition, or leave a gap and loft face to face.

Actually, I wouldn't.  I'd combine the coplanar islands from the sections into single profiles, loft them, and build a loft to subtract the inner sections that the lenses occupy.  I sketched what I mean over your picture, but this site rejects my attempts to post it.

Tim Stewart

Hi Jeff,

my initial thoughts, are that the polylines contain far too many nodes.
So, doing as Andy suggests, looks like the best policy?

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

Jeff_in_90620

Quote from: murray dickinson on August 01, 2018, 10:27:33 PM
Will you post a 2016 save so I can fiddle too, Jeff?  I'd try using branched lofting for half of the frame, trunks from one bow side and from the centre of the nose bridge that either branch into each other for addition, or leave a gap and loft face to face.

Actually, I wouldn't.  I'd combine the coplanar islands from the sections into single profiles, loft them, and build a loft to subtract the inner sections that the lenses occupy.  I sketched what I mean over your picture, but this site rejects my attempts to post it.

Here you go.

How would you combine the coplanar islands (aka Polylines)?  After I 2D Add'ed two pairs of coplanar Polylines, the resulting Region would not Loft and Exploding it just got me the Polylines that I started with.
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)

Jeff_in_90620

It's taking some experimentation, but I am progressing by making some different Section Line choices.  In the attached image, I Lofted together the right lens frame, with the largest number of Polylines that could be grouped together being 14.  The rest of the Lofts ranged from 2-7 Polylines.


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)

Henry Hubich

I traced one of the sections with a Spline and placed copies atop just a few of the other sections and then edited each to fit the section on which it lies -- omitting the opening for the lens. Lofted these Splines. Traced the lens opening with another Spline; extruded it; subtracted the extrusion from the loft. Mirror-copied the result.

Henry H

Jeff_in_90620

Quote from: Henry Hubich on August 02, 2018, 01:16:46 PM
I traced one of the sections with a Spline and placed copies atop just a few of the other sections and then edited each to fit the section on which it lies -- omitting the opening for the lens. Lofted these Splines. Traced the lens opening with another Spline; extruded it; subtracted the extrusion from the loft. Mirror-copied the result.

Pretty close, except that the Draft Angle on the lens opening is not constant in the original.  Still and all, probably close enough.


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)

Jeff_in_90620

Quote from: Andy H on August 01, 2018, 05:55:55 PM
That is a tough one Jeff. I'm not sure what you meant by 'the filled poylines'

The result of a Section command is a Group of Graphics; one is a Polyline with a solid Pen and no Brush, the other is a Polyline that has an invisible Pen and a solid Brush (which I call a "filled Polyline"). 


Quote from: Andy H on August 01, 2018, 05:55:55 PM
I didn't have the same problem as yourself on this one,  On most of them I couldn't select more then 2 profiles or I got a self intersecting error.  I could loft parts of it using just 2 profiles at a time which came out solid,  but some wouldn't loft even just using 2 profiles.  I had a bit better result by converting to curves and then to spline.

I haven't had quite the problems you've encountered; all of the Section Polylines I've seen would Loft for 2 pairings, usually more.

Quote from: Andy H on August 01, 2018, 05:55:55 PM
The attached is just one part that lofted solid using 2 profiles at a time, but it twisted the loft.  I know it would be a lot of work, but personally I'd consider carefully redrawing the lot, using splines.  Even then, on some, there is such a large difference between profile shapes, it may still not loft properly.

As I have explored this, it is obvious that the selection process for Sectioning requires some thought.  I have seen little of the twisting you've mentioned and nothing to the extent you encountered.  Proper deployment of the Sections will minimize this.


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)