[OpendTect_Developers] UTM to InlCrl

David d'Angelo david.d-angelo at iais.fraunhofer.de
Wed Nov 13 15:58:43 CET 2013


Hi folks,

I am currently porting some plugins to the trunk version of OpendTect 
(osg support).
I ran into a problem converting coordinates between utm and inlcrl 
coordinates. I used the following code to convert a utm coordinate into 
inlcrl space:

*Coord3 utm = ...
const mVisTrans* ic2disp = scene->getInlCrl2DisplayTransform();**
**const mVisTrans* utm2disp = scene->getUTM2DisplayTransform();**
**Coord3 disp;**
**utm2disp->transform(utm,disp);**
**Coord3 ic;**
**ic2disp->transformBack(disp,ic);*

This code worked correctly with the Coin based version of OpendTect. 
Unfortunately, this not the case anymore.
What am I missing?

Thanks and best regards,
David

-- 
David d'Angelo, M. Sc.
Adaptive Reflective Teams
Fraunhofer IAIS
Schloss Birlinghoven
53757 Sankt Augustin
Germany
Fon: +49 (0) 2241 14 3444
Fax: +49 (0) 2241 14 2040

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendtect.org/pipermail/developers/attachments/20131113/78dc4ab9/attachment.html>


More information about the Developers mailing list