To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 6355
6354  |  6356
Subject: 
RE: Sorting parts by location
Newsgroups: 
lugnet.cad
Date: 
Tue, 28 Aug 2001 13:37:08 GMT
Reply-To: 
<bram@po.*Spamless*cwru.edu>
Viewed: 
427 times
  
Fredrik Glöckner writes:
You could hack up a Perl script which computes the euclidian distance
between the viewing point and the origin of each individual part, and
concatenates this number to the beginning of each part line.  Then you
can sort the parts lines and remove the number again.  It's a
solution, albeit a bit dirty...

If an alorithm for this works fast enough, it could have multiple uses:
1) Sort with the parts furthest from the viewpoint first to make
instructions as legible as possible and make all parts visible.
2) Sort with the parts closest to the viewpoint first...thus requiring less
rendering of hidden parts and speeding up the render, possibly quite a lot.
Even if the render speed isn't actually increased much, the apparent render
speed is increased since the outside form of the model comes into view more
quickly.
Does that make sense?
--Bram


Bram Lambrecht
bram@cwru.edu
http://bldesign.org/



Message is in Reply To:
  Re: Sorting parts by location
 
(...) No, I don't know of any utility. (...) You could hack up a Perl script which computes the euclidian distance between the viewing point and the origin of each individual part, and concatenates this number to the beginning of each part line. (...) (23 years ago, 28-Aug-01, to lugnet.cad)

7 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