Exemple #1
0
 def select_fcoords(self, dobj=None):
     # This computes centroids!
     mask = self._get_selector_mask(dobj.selector)
     if mask is None: return np.empty((0, 3), dtype='float64')
     centers = fill_fcoords(self.connectivity_coords,
                            self.connectivity_indices, self._index_offset)
     return centers[mask, :]
 def select_fcoords(self, dobj = None):
     mask = self._get_selector_mask(dobj.selector)
     if mask is None: return np.empty((0,3), dtype='float64')
     centers = fill_fcoords(self.connectivity_coords,
                            self.connectivity_indices,
                            self._index_offset)
     return centers[mask, :]