<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi Beni,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">yes origin can be negative. And spacing can also be negative. It is just checked not to be equal to 0. </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I am just not sure - whether the orientation of 3D model triangles will not be messed if the negative spacing is used.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">S.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 24 Feb 2021 at 11:12, Benedikt Hallinger <<a href="mailto:beni@hallinger.org">beni@hallinger.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">So, after reading the thbook (p. 31) again, I think I can answer that to <br>
myself.<br>
But it would be good if someone could step in and confirm:<br>
<br>
> <origin x> <origin y><br>
may be negative, depending in used CS.<br>
<br>
> <x spacing> <y spacing> <x count> <y count><br>
Is not allowed to be negative:<br>
- origin is always lower-left (southwest) corner, and spacing is assumed <br>
to be from west to east and south to north, thus always positive.<br>
row and cols count cannot be zero or negative for obvious reasons.<br>
<br>
<br>
Stay safe!<br>
kind regards, Beni<br>
<br>
<br>
Am 2021-02-24 8:18, schrieb Benedikt Hallinger:<br>
> Good morning,<br>
> while debugging<br>
> <a href="https://github.com/hbeni/therionsurface2survex/issues/1" rel="noreferrer" target="_blank">https://github.com/hbeni/therionsurface2survex/issues/1</a> i stumbled<br>
> upon a format question i did not give tought until yesterday.<br>
> <br>
> With the "grid" command you specify coordinate origin and size of a<br>
> surface grid:<br>
>   grid <origin x> <origin y> <x spacing> <y spacing> <x count> <y <br>
> count><br>
> <br>
> <br>
> Until now i assumed that:<br>
> <br>
> a) these data has to be all positive.<br>
> But i'm not sure... origin may surely get negative (like in wgs89 and<br>
> for example western and southern of the 0-meridian/equator)<br>
> And also stepsize - might it get negative too (esp. with flipped grids <br>
> maybe)?<br>
> <br>
> b) the spacing might only be integer numbers, not floats<br>
> Is this true? I just got an example with not-round stepsize.<br>
> _______________________________________________<br>
> Therion mailing list<br>
> <a href="mailto:Therion@speleo.sk" target="_blank">Therion@speleo.sk</a><br>
> <a href="https://mailman.speleo.sk/listinfo/therion" rel="noreferrer" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><br>
_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk" target="_blank">Therion@speleo.sk</a><br>
<a href="https://mailman.speleo.sk/listinfo/therion" rel="noreferrer" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><br>
</blockquote></div>