On Feb 4, 2011, at 6:15 AM, Benjamin SCHWARZ wrote:
Hi Keren, and thanks for the answer
Just to be sure I got the full picture, you recommend something like :
i = get_dim_index_by_location( get_location_by_voxel(v) , 0 )
--Ben
Le 4 févr. 2011 à 15:08, Keren Lasker a écrit :
you can use:
//! Calculate dimension index of a given location /** \param[in] v The position (in angstroms) \param[in] ind dimension index (X:0,Y:1 or Z:2) */ int get_dim_index_by_location(const algebra::VectorD<3> &v,int ind) const;
On Feb 4, 2011, at 6:05 AM, Benjamin SCHWARZ wrote:
Hi list,
I couldn't find the function that computes the "index coordinates" of a voxel from its voxel index (somehow, the opposite of xyz_ind2voxel() function.) do you know if there is any ?