[postgis-devel] ST_Tesselate and TINS is it supposed to maintain solidness

Paragon Corporation lr at pcorp.us
Mon Jul 14 20:51:53 PDT 2014


I tried tesselating a cube

NOTE: 

SELECT ST_Dimension(ST_GeomFromText('POLYHEDRALSURFACE Z( ((0 0 0, 0 0 1, 0
1 1, 0 1 0, 0 0 0)), 
		((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), ((0 0 0, 1 0 0, 1 0
1, 0 0 1, 0 0 0)), 
		((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)), 
		((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)), ((0 0 1, 1 0 1, 1 1
1, 0 1 1, 0 0 1)) )'))

Comes back as a solid -- ST_Dimension = 3


But when I tesselate it, I get back a TIN with ST_Dimension 2
SELECT ST_Dimension(ST_Tesselate(ST_GeomFromText('POLYHEDRALSURFACE Z( ((0 0
0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)), 
		((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), ((0 0 0, 1 0 0, 1 0
1, 0 0 1, 0 0 0)), 
		((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)), 
		((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)), ((0 0 1, 1 0 1, 1 1
1, 0 1 1, 0 0 1)) )')))

= 2

Rendering both them look the same to me.

Why is the TIN not considered closed is a TIN never considered closed?


See attached images I color coded the triangles in resulting tin and as far
as I can tell rotating it all sides were accounted for.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: st_tesselate_2.png
Type: image/png
Size: 9397 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20140714/1d1c5de2/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: original_polyhedral_cube.png
Type: image/png
Size: 7831 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20140714/1d1c5de2/attachment-0001.png>


More information about the postgis-devel mailing list