Looks like someone already axed the get_sphere method, so I went and
pulled out the get_box stuff.  Its get_sphere and get_box should now be
inheriting from CoordSys, right?  It seemed like a really easy
"housekeeping" bug to do...let me know if it's not sufficient.  I'm
still learning Pyrex.

Also, are there test levels, models, etc. to run new builds on?  I'd be
interested in using something like that to test, and I wouldn't be
averse to helping maintain them.  I'm pretty good with Blender.
Index: pysoy/src/pyrex/pysoy/node.pyx
===================================================================
--- pysoy/src/pyrex/pysoy/node.pyx	(revision 227)
+++ pysoy/src/pyrex/pysoy/node.pyx	(working copy)
@@ -138,17 +138,6 @@
   #cdef void _get_sphere(self, float* sphere):
   #  sphere[0] = sphere[1] = sphere[2] = sphere[3] = 0.0
     
-  cdef void _get_box(self, float* box, float* matrix):
-    cdef float matrix2[19]
-    if matrix == NULL:
-      matrix_copy    (matrix2, self._matrix)
-    else:
-      multiply_matrix(matrix2, matrix, self._matrix)
-    
-    cdef CoordSyst child
-    for child in self.children: 
-      child._get_box(box, matrix2)
-    
   def raypick(self, Position origin not None, _Vector direction not None, float distance = -1.0, int half_line = 1, int cull_face = 1, _Point p = None, _Vector v = None):
     """Node.raypick(ORIGIN, DIRECTION, DISTANCE = -1.0, HALF_LINE = 1, CULL_FACE = 1, P = None, V = None) -> None or (Point, Vector)
 
Index: pysoy/src/pyrex/definitions/pysoy/node.pxd
===================================================================
--- pysoy/src/pyrex/definitions/pysoy/node.pxd	(revision 227)
+++ pysoy/src/pyrex/definitions/pysoy/node.pxd	(working copy)
@@ -34,6 +34,5 @@
   cdef void _raypick(self, RaypickData raypick_data, CoordSyst raypickable)
   cdef int _raypick_b(self, RaypickData raypick_data, CoordSyst raypickable)
   cdef int _contains(self, _CObj obj)
-  cdef void _get_box(self, float* box, float* matrix)
   cdef void _search_all(self, predicat, result)
   cdef void _collect_raypickables(self, Chunk* items, float* rsphere, float* sphere)
_______________________________________________
PySoy-Dev mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-dev

Reply via email to