Curve disappears when zooming out Curio.

Next
 From:  bemfarmer
6930.1 
Here is the 3dm of a practice polyskelion, with zero whorls.

When zooming out, the blue curves, and later the red curves, shrink and disappear from view.
Presented as a curiosity, not a problem.

The points are still there. There are a lot of points.
There are about 1000 points in each Blue curve, and the point density is higher for the Blue curves.
There are about 1000 points in each Red curve.


Rebuild with tolerance of .01 corrects the effect.
Rebuild with tolerance of .000000001 also causes the Blue curves to disappear from view.
So too many points must contribute to the effect.

- Brian

(The script has a second curve factory shoehorned in with commit, so it does not update.)

EDITED: 2 Apr 2015 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6930.2 In reply to 6930.1 
Hi Brian, yeah that is strange. I investigated it, and it does have to do with the heavy density of the curve.

The way curves are drawn is that they're converted to polylines and then the polyline gets drawn. But the polyline draw engine ignores line segments that are really tiny on screen like less than 0.01 pixels in length. In your case here at certain zoom out levels you're getting on screen lines that are all smaller than that cutoff limit, so nothing ends up getting drawn.

It would not be difficult to tweak this value to something tighter to allow say lines of 0.001 in length, the only thing that I'm not so sure about is what effect that will have on performance on heavy scenes, it's not bad for heavy model performance to have little things drop out really...

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
6930.3 In reply to 6930.2 
No tweak needed. :-) My 1000 points was excessive, and a rebuild is a good idea anyway.

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All