To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10135
    Sorting by line —Orion Pobursky
   I'm implementing sorting in LDDP. Here's my question: Say I'm sorting by position using Y. When sorting linetypes 2-5 should I take the maximum Y, the minimum Y, the Y value of center of the triangle/quad/line, or something else entirely? -Orion (20 years ago, 14-Feb-05, to lugnet.cad.dev)
   
        Re: Sorting by line —Travis Cobbs
   (...) I would tend to lean toward the centroid, but perhaps it would be best to be user configurable. --Travis (20 years ago, 14-Feb-05, to lugnet.cad.dev)
   
        Re: Sorting by line —Willy Tschager
     (...) centroid was my first thought but leave it to the user would be better w. (20 years ago, 14-Feb-05, to lugnet.cad.dev)
    
         Re: Sorting by line —Orion Pobursky
     (...) Should this be a dialog that pops up when sorting in initiated, in the program options, or something else? The current method I'm using moves all type 0 lines to the top. Should I simply delete them instead? Also, what about sort order? Should (...) (20 years ago, 14-Feb-05, to lugnet.cad.dev)
    
         Re: Sorting by line —Larry Pieniazek
      (...) That's what I did in the map I did but if you can make them "sticky" meaning that they stay by some other line in the file (the one that they precede?) that might be interesting. Might not be useful though. (...) Those are good, Also if you (...) (20 years ago, 14-Feb-05, to lugnet.cad.dev)
    
         Re: Sorting by line —Travis Cobbs
      (...) It's hard to say what would be best. I personally think that having a dialog with all the sort options along with a quick way to apply the most recently used sort options might be the most flexible. That way, people who use the feature (...) (20 years ago, 14-Feb-05, to lugnet.cad.dev)
    
         Re: Sorting by line —Anders Isaksson
     (...) IMO, it would be best with a dialog when sorting is requested. Remember all the settings from the last time sorting was used. (...) If there is no choice for the user, I'd say keep them at the top as you do now. A checkbox for removing them (...) (20 years ago, 15-Feb-05, to lugnet.cad.dev)
   
        Re: Sorting by line —Orion Pobursky
   (...) Another thought, maybe sorting on the center of the axis-aligned bounding box for the line? For lines this would be the center of the line but would it be the center of the tri or quad? My visualzation skills are elluding me at the moment. (...) (20 years ago, 16-Feb-05, to lugnet.cad.dev)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR