Results 1 to 8 of 8

Thread: Sweep not sweeping properly...?!

  1. #1
    Join Date
    Feb 2008
    Location
    Maryland, USA
    Posts
    224

    Default Sweep not sweeping properly...?!

    Am struggling a bit with the sweep tool, as it doesn't seem to sweep the 2d vector properly. Two issues really. (See attached MPC.) The first is that as the spiral tightens, for both the Lower Bezier and Upper Bezier, the 2d vector being swept seems to be clipped. (Hide each alternately, and this first issue is more apparent.) Secondly, despite the Lower Bezier having the 0 depth and 1/8" depth 2d swept vectors being 0.192" wide, they are clearly not equal in width, as they are in the Upper Bezier which shows an equal width to the 0 depth and 1/8" depth 2d swept vectors (until, of course, the spiral tightens). Am using 1.187. Anyone else seen this behavior? If so, is there a trick to resolve?
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2008
    Location
    Maryland, USA
    Posts
    224

    Default

    It would have probably also helped if I included screen snapshots, in the event that the sweep is working fine for others...
    Attached Thumbnails Attached Thumbnails Ionic Capital Upper Bezier 2014-08-22.png   Ionic Capital Lower Bezier 2014-08-22.png  

  3. #3
    Join Date
    Nov 2008
    Location
    Vancouver Island
    Posts
    8,193

    Default

    This seems to me to be a bug. Strange things happen whenever the path gets too close to itself. Look at the attached mpc for simpler examples.
    Attached Files Attached Files

  4. #4
    Join Date
    Feb 2008
    Location
    Maryland, USA
    Posts
    224

    Default

    So is that a recent bug find, or has that been lingering for some time? (Ie, is there hope of it being fixed soon?)

  5. #5
    Join Date
    Nov 2008
    Location
    Vancouver Island
    Posts
    8,193

    Default

    I think you have discovered the bug. I do not remember seeing it before. I have reported it. 3D tools bugs usually get some priority; so I hope it will get fixed soon.

  6. #6

    Default

    All i see is a mishmash of green numbers and splines. lol

    Click image for larger version. 

Name:	Messysh.jpg 
Views:	37 
Size:	190.3 KB 
ID:	71271
    Last edited by liquidguitars; 08-23-2014 at 01:55 PM.

  7. #7
    Join Date
    Feb 2008
    Location
    Maryland, USA
    Posts
    224

    Default

    Thanks for reporting the bug. And yes, you might have to break out the jeweler's loupe! ; -)

  8. #8
    Join Date
    Feb 2008
    Location
    Maryland, USA
    Posts
    224

    Default

    After looking closer at Dan's samples, it appears that the general sweep algorithm is suspect, and will probably take some time to correct...

    Actually found the problem of sweeping a curve an interesting challenge, and spent a few hours here and there over the past three weekends brewing up an algorithm that generates desired sweep paths quickly. I'm actually quite pleased with the algorithm, as I think it's an elegant solution, which reduces anomalies. It also uses vector math, thus avoiding the more compute intensive trigonometry functions, and handles sweeps of intersecting segments cleanly. (See attached frame of an ionic capital with a line segment tossed in cutting through the spiral.) The algorithm is not 100% complete, as it's shy of bounds checks, does not currently handle curved corners, nor closed figures, but these are easily incorporated into the framework. I post the critical code excerpt here (with a simplified BSD license) to make the code open source (it's written in VB6 and should be an easy port to C++), and in the event that LHR is interested...
    Attached Thumbnails Attached Thumbnails ionic outline with line.png  
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •