[OSGeo-Discuss] TIN file formats
Martin Dobias
wonder.sk at gmail.com
Mon Feb 10 01:29:37 PST 2020
Hi Pierre
On Sun, Feb 9, 2020 at 8:17 PM Pierre Abbat <phma at bezitopo.org> wrote:
>
> Again: how does MDAL represent TINs internally? I looked at the code and got
> lost.
MDAL stores TIN as a vector of vertices (XYZ) and a vector of faces
(where each face is a vector of indices of vertices). There is no
topological representation like half-edge data structure as this has
not been needed so far (the library so far has been mostly used for
rendering, deriving datasets and conversion between formats). MDAL now
supports vertex and face iterators, so drivers can use whatever
representation they want (including not keeping the mesh in memory at
all) as long as they can provide those iterators.
Regards
Martin
More information about the Discuss
mailing list