<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
So if I understand right you just want a translation ?<br>
Take the geocentric point, subtract it with the origin of your
model.<br>
Build an affine transform and set the last column
values(translation) to the result of the operation above.<br>
That tranform will move your model to the geocentric position.<br>
<br>
Still you will have to solve the rotation and scale, <br>
You could solve it using 3 more points which will act as up, right
and forward vectors.<br>
<br>
johann<br>
<br>
<div class="moz-cite-prefix">On 01/04/2016 01:57, lucio Piccoli
wrote:<br>
</div>
<blockquote cite="mid:BLU172-W12A248E87221B00B6413AA9F990@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">hi all
<div><br>
<br>
i need some help on converting a mesh model from local origin
cartesian (from a modelling tool) to a geocentric one.</div>
<div><br>
</div>
<div>i found the nice transform from WGS to (ECEF) GEOCENTRIC
which i use to transform the model origin to a geocentric
point.</div>
<div><br>
</div>
<div>
<div> CoordinateReferenceSystem targetCRS =
PredefinedCRS.GEOCENTRIC;</div>
<div> CoordinateReferenceSystem sourceCRS =
PredefinedCRS.WGS84_3D;</div>
<div> MathTransform tr =
CRS.findMathTransform(sourceCRS, targetCRS);</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>i wish to use this point as my local origin for the rest of
the model in geocentric coordinates.<br>
<br>
i do NOT want to transform every point to ECEF (origin earth
centre) , as it will introduce jitter to the visualation.</div>
<div>but rather transform the points to GEOCENTRIC coordinates
*relative* to my own origin.</div>
<div><br>
</div>
<div>does that make any sense?<br>
<br>
-lucio
<br>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Geotoolkit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geotoolkit@lists.osgeo.org">Geotoolkit@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geotoolkit">http://lists.osgeo.org/mailman/listinfo/geotoolkit</a></pre>
</blockquote>
<br>
</body>
</html>