<html><head></head><body>That's nice indeed, thanks for the update!<br>
<br>
I suppose there is no way to convert a Box3D to a TIN geometry without SFCGAL in a similar fashion? Specifiying vertices and triangles using ST_{X,Y,Z}{Min,Max} is no problem, it only gets pretty verbose and we can't add SFCGAL to our dependencies at the moment.<br>
<br>
Cheers,<br>
Tom<br><br><div class="gmail_quote">On July 24, 2018 10:20:09 AM UTC, Felix Kunde <felix-kunde@gmx.de> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">I was hoping for a news like this. Great. Thanks! <br> <br><br>Gesendet: Montag, 23. Juli 2018 um 20:17 Uhr<br>Von: "Darafei \"Komяpa\" Praliaskouski" <me@komzpa.net><br>An: "PostGIS Users Discussion" <postgis-users@lists.osgeo.org><br>Betreff: Re: [postgis-users] Convert Box3D to TIN geometries<br><br>Hi Felix,<br> <br>This was fixed in PostGIS 2.5. <br> <br>There your query ends up with geometry like this:<br> <br> GEOMETRYCOLLECTION Z (TIN Z (((0 0 0,0 1 0,1 1 0,0 0 0)),((1 0 0,0 0 0,1 1 0,1 0 0)),((0 1 1,1 0 1,1 1 1,0 1 1)),((0 1 1,0 0 1,1 0 1,0 1 1)),((0 0 0,0 0 1,0 1 1,0 0 0)),((0 1 0,0 0 0,0 1 1,0 1 0)),((1 0 1,1 1 0,1 1 1,1 0 1)),((1 0 1,1 0 0,1 1 0,1 0 1)),((0 0 1,1 0 0,1 0 1,0 0 1)),(<br>(0 0 1,0 0 0,1 0 0,0 0 1)),((0 1 0,0 1 1,1 1 1,0 1 0)),((1 1 0,0 1 0,1 1 1,1 1 0)))) <br><br>ср, 18 июл. 2018 г. в 11:21, Felix Kunde <felix-kunde@gmx.de[mailto:felix-kunde@gmx.de]>:Hi,<br>thought that's easy to do with the postgis_sfcgal extension, but no:<br>SELECT ST_Tesselate('BOX3D(0 0 0,1 1 1)'::box3d::geometry));<br> <br>ERROR: Solid is invalid : PolyhedralSurface (shell) 0 is invalid: not connected : SOLID((((0/1 0/1 0/1,0/1 1/1 0/1,1/1 1/1 0/1,1/1 0/1 0/1,0/1 0/1 0/1)),((0/1 0/1 1/1,0/1 1/1 1/1,1/1 1/1 1/1,1/1 0/1 1/1,0/1 0/1 1/1)),((0/1 0/1 0/1,0/1 1/1 0/1,0/1 1/1 1/1,0/1 0/1<br>SQL Status:XX000<br><br>The polygons are not in the right order :-/<br>Also tried dumping and delaunay triangulation but yet not solution. Anyone else?<br><br>Cheers,<br>Felix<br><br><br><br>Gesendet: Dienstag, 17. Juli 2018 um 20:04 Uhr<br>Von: "Tom Kazimiers" <tom@voodoo-arts.net[mailto:tom@voodoo-arts.net]><br>An: postgis-users@lists.osgeo.org[mailto:postgis-users@lists.osgeo.org]<br>Betreff: [postgis-users] Convert Box3D to TIN geometries<br>Hi all,<br><br>I need to convert a lot of Box3D geometries to TIN geometries. Is there a way in PostGIS to do this without specifiying each triangle and vertex for the new TINs explicitly? Idealy, I would just be able to issue a simple update statement without needing to think about vertex order and triangle order.<br><br>Thanks,<br>Tom<hr>postgis-users mailing list postgis-users@lists.osgeo.org[mailto:postgis-users@lists.osgeo.org] <a href="https://lists.osgeo.org/mailman/listinfo/postgis-users">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br><hr><br>postgis-users mailing list<br>postgis-users@lists.osgeo.org[mailto:postgis-users@lists.osgeo.org]<br><a href="https://lists.osgeo.org/mailman/listinfo/postgis-users--">https://lists.osgeo.org/mailman/listinfo/postgis-users--</a><br><br>Darafei Praliaskouski<br>Support me: <a href="http://patreon.com/komzpa">http://patreon.com/komzpa</a>[http://patreon.com/komzpa]<hr>postgis-users mailing list postgis-users@lists.osgeo.org <a href="https://lists.osgeo.org/mailman/listinfo/postgis-users">https://lists.osgeo.org/mailman/listinfo/postgis-users</a>[https://lists.osgeo.org/mailman/listinfo/postgis-users]<br><hr><br>postgis-users mailing list<br>postgis-users@lists.osgeo.org<br><a href="https://lists.osgeo.org/mailman/listinfo/postgis-users">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></pre></blockquote></div></body></html>