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 / 6351
6350  |  6352
Subject: 
Re: Sorting parts by location
Newsgroups: 
lugnet.cad
Date: 
Tue, 28 Aug 2001 08:10:27 GMT
Viewed: 
417 times
  
"Larry Pieniazek" <lpieniazek@mercator.com> writes:

Does anyone know if there exists a utility to sort parts in a model file by
their "cut plane" location?


No, I don't know of any utility.


Sorting using the origin is good enough, although sorting on the
vertex of the bounding box that is first intersected by the
cutplane might be better.


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...


Fredrik



Message has 2 Replies:
  Re: Sorting parts by location
 
(...) Well I am sort of doing that right now, although not in perl. I chose to use my company's product, sort of as a learning exercise. If someone has perl code that recognises the various line types that would be spiffy. If you have the formula (...) (23 years ago, 28-Aug-01, to lugnet.cad)
  RE: Sorting parts by location
 
(...) 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 (...) (23 years ago, 28-Aug-01, to lugnet.cad)

Message is in Reply To:
  Sorting parts by location
 
Does anyone know if there exists a utility to sort parts in a model file by their "cut plane" location? I know I can sort by X Y or Z values but what I am actually interested in is sorting using a cut plane that is perpendicular to the eye vector in (...) (23 years ago, 25-Aug-01, to lugnet.cad, lugnet.cad.dev)

7 Messages in This Thread:



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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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