Sweep along 3D poly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
(Previously posted on AutoCAD forum - I really need code to query the lines.)
Hi,
I'm encountering anomalies with the sweep command. See the attached files.
I have two 3D polylines, one cyan and one red. If I sweep the same closed polyline along each line the cyan path results in an upside-down solid. If I truncate the cyan line the result is correctly orientated. There's obviously some dodgy geometry in the cyan line so my question is, how can I query the line and correct it prior to sweeping?
A solution on the AutoCAD forum involved creating various forms of the profile and then selecting the one that gives the desired result but this is a purely manual solution. I'm really looking to investigate the geometry of the 3D polyline. The two lines in the attached drawing both appear to be the same - on the same UCS and travelling in the same direction but something's causing problems. In my lisp I now rip the simple XYZ coordinates of the 3D polyline and create a brand new one at WCS but I still get the problem. I've tried OVERKILL and there's nothing untoward.
S