From: Coroian, Cristian <ccoroian@ad...>  20050627 19:42:07

With regards to mapping a real space point back to computational space, what do you think of this idea: =20 In the PointLocatorStructure::init(), build an ndimentional container where n is the dimension of the Point, containing Elem constant refferences. For example, in a 2D case I would have =20 E :: ndimensional container where references are stored delta :: ndimensional container where cell size (a conversion factor) is stored. =20 for all elements =20 E[floor(element.centroid(0)/delta(0))][floor(element.centroid(1)delta(1) )] =3D &element; =20 Then have the point locator operator() function would=20 =20 return E[floor(Point(0)/delta(0))][floor(Point(1)/delta(1))] =20 which is the constant reference to the element.=20 =20 Outside of space inefficiency can you provide any suggestions as far as this method is concerned? =20 Cristian Coroian Software Engineer I Advatech Pacific Inc 