From: Randall A. J. <Ran...@gs...> - 2001-08-24 20:18:21
|
Sure enough, it seg faults under RH 7.1. Let me see if I have the details correct. dot is provided by Numeric, vector is provided by visual. so the following code should break as well. -- from visual import * dot(vector(0,0,0),vector(0,0,0)) -- and this is equivalent to: -- import visual import Numeric Numeric.dot(visual.vector(0,0,0),visual.vector(0,0,0)) -- But... this code works; passing tuples to dot instead of vectors. -- from visual import * dot((0,0,0),(0,0,0)) -- It seems that Numeric.dot is not happy with visual.vector arguments. How much investigation has been done into the bug? Randy -- David Andersen wrote: > > Try the following short test program (extracted from colorsliders.py if I > remember correctly) > > from visual import * > value = 1.0 > pos = vector(-1.01475,0.0876125,0) > axis = vector(0,1,0) > value = value*dot(pos,axis) -- __________________________________________________________________ Scientific Visualization Studio _/_/_/_/ _| _/ _/_/_/_/ NASA Goddard Space Flight Center _/ _| _/ _/ Code 935 301-286-2239 _/_/_/_/ _| _/ _/_/_/_/ Randall A. Jones GST _/ _| _/ _/ Ran...@gs... _/_/_/_/ _|_/ _/_/_/_/ http://svs.gsfc.nasa.gov __________________________________________________________________ |