Discuss Boost.Geometry (Generic Geometry Library) - https://github.com/boostorg/geometry
From The PostGIS in Action book at https://livebook.manning.com/book/postgis-in-action-third-edition/chapter-2/v-15/36
Float a bunch of polygons in three-coordinate space and glue them together at their edges, and you’ll form a patchwork referred to as a polyhedral surface. Although polygons make up both multipolygons and polyhedral surfaces, there is one fundamental difference: polygons in multipolygons can’t share edges; polygons in a polyhedral surface almost always do. There are two other notable restrictions in the construction of polyhedral surfaces: polygons can’t overlap, and each edge can be mated with at most one other edge.
But unlike polygon, a polyhedron cannot be represented only as set of 3d planar polygons.
Does that mean that if the user gives a set of polygons in 3d space then this could correspond to more than one polyhedral surface?
However, my point was that @ayushgupta138 comment here :point_up: March 22, 2021 4:59 PM suggested he is misunderstanding the difference and using Polyhedral Surface and Polyhedron interchangeably, what is wrong.
Why I think @ayushgupta138 mismatches these two?
Because the page he referred https://postgis.net/docs/manual-2.0/ST_GeometryN.html does not even use word 'Polyhedron', but he is asking his question about Polyhedron referring to that page.
IOW, communication needs to be precise to avoid side discussion on what is what.
However, my point was that @ayushgupta138 comment here :point_up: March 22, 2021 4:59 PM suggested he is misunderstanding the difference and using Polyhedral Surface and Polyhedron interchangeably, what is wrong.
Yes, I used polyhedron and polyhedral surface interchangeably and it was my fault for doing so. Thanks to @mloskot and @vissarion the difference is clear to me now.