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 / 6356
6355  |  6357
Subject: 
Re: Sorting parts by location
Newsgroups: 
lugnet.cad
Date: 
Tue, 28 Aug 2001 16:31:49 GMT
Viewed: 
1246 times
  
"Larry Pieniazek" <lpieniazek@mercator.com> writes:

>  If you have the formula for euclidian distance that would be great
>  too.


Bram Lambrecht gave you the formula.


Depending on what you want to do and what kind of viewing
transformation (if any) you are using, the euclidian distance _may_ be
the wrong kind of measure to use.  But it is probably an ok
approximation...


>  I am using the approximation of taking the X Y anx Z values and
>  summing them. If the viewpoint is in the right place that's an
>  excellent approximation.


That's probably good enough for some applications.


Fredrik



Message has 1 Reply:
  Re: Sorting parts by location
 
(...) Whoops, duh. This thread didn't have any posts for a while and I missed all the other ones, thought yours was the first! (...) Seems to work for me for now. Mostly I am trying to get a rough ordering of a large model so I can refine it to put (...) (25 years ago, 28-Aug-01, to lugnet.cad)

Message is in Reply To:
  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 (...) (25 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

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

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