|
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 the 3D
view... so that the parts first in the list are the ones "most hidden".
One thing I thought of doing to hack it was to rotate the entire model 45
degrees in all three of the axes, sort (and reorder the model) then, then
rotate back. But that seems not the greatest way. Better to calculate the
cut plane intersection.
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.
Apologies if there's a utility out there already that does this.
|
|
Message has 1 Reply: | | 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
|
|
|
|