Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Benefits of XSIUtils.QuickSort?

Benefits of XSIUtils.QuickSort?

2004-02-09       - By Rick Walia

 Back
Quoting Jerry Gamache <jerryg@(protected)>:
> XSIUtils.QuickSort was done for langages that do not have an easily accessible
> sort function. Python takes sorting very seriously: For 2.3:
> http://mail.python.org/pipermail/python-dev/2002-July/026837.html
> For 2.2 and earlier: http://py-stablesort.sourceforge.net/

[RW]
...which is why I was a bit confused when I saw an example in the sdk docs for
python.
Ahh, you posted a link for 2.3 as well. I can't get that working for me on Win32
with XSI. Maybe next release.

> For multidimensionnal sorting, you can either provide a complex comparator
> function or use DSU sorting:
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52234
> (Also discussed in more details in the Python Cookbook).

[RW]
That is a good read. Well to the best of my knowledge, there is no internal
standard function sorting for multi-dimensional arrays out of the box
( like array_multisort() ). Then again, I'm no master in this :->

Ultimately I think we would have to use a custom function or class like the link
you posted. It's not a problem though.

I was having problems with sorting a list of points and a list of polys. Either
way I'm all good now.

I really like that numarray module that I found.
http://stsdas.stsci.edu/numarray/Doc/node33.html#l2h-67

Thanks for the replies,

/R

---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi