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 / 10145
10144  |  10146
Subject: 
Re: Sorting by line
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 16 Feb 2005 23:30:00 GMT
Viewed: 
2515 times
  
In lugnet.cad.dev, Travis Cobbs wrote:
In lugnet.cad.dev, Orion Pobursky wrote:
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?

I would tend to lean toward the centroid, but perhaps it would be best to be
user configurable.

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.

-Orion



Message is in Reply To:
  Re: Sorting by line
 
(...) 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)

8 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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