Home | History | Annotate | Download | only in BVH

Lines Matching refs:Dim

18 template<typename Scalar, int Dim>
21 EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(Scalar, Dim)
22 typedef Matrix<Scalar, Dim, 1> VectorType;
70 enum { Dim = _Dim };
74 typedef AlignedBox<Scalar, Dim> Volume;
170 typedef internal::vector_int_pair<Scalar, Dim> VIPair;
172 typedef Matrix<Scalar, Dim, 1> VectorType;
175 VectorComparator(int inDim) : dim(inDim) {}
176 inline bool operator()(const VIPair &v1, const VIPair &v2) const { return v1.first[dim] < v2.first[dim]; }
177 int dim;
181 //This routine partitions the objCenters in [from, to) along the dimension dim, recursively constructs
183 void build(VIPairList &objCenters, int from, int to, const VolumeList &objBoxes, int dim)
194 objCenters.begin() + to, VectorComparator(dim)); //partition
195 build(objCenters, from, mid, objBoxes, (dim + 1) % Dim);
204 objCenters.begin() + to, VectorComparator(dim)); //partition
205 build(objCenters, from, mid, objBoxes, (dim + 1) % Dim);
207 build(objCenters, mid, to, objBoxes, (dim + 1) % Dim);