You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some PDAL stages (for instance ``filters.delaunay``) create TIN type mesh data.
223
+
Some PDAL stages (for instance ``filters.delaunay``) create TIN type mesh data.
224
224
225
-
This data can be accessed in Python using the ``Pipeline.meshes`` property, which returns a ``numpy.ndarray``
226
-
of shape (1,n) where n is the number of Triangles in the mesh.
225
+
This data can be accessed in Python using the ``Pipeline.meshes`` property, which returns a ``numpy.ndarray``
226
+
of shape (1,n) where n is the number of Triangles in the mesh.
227
227
228
228
If the PointView contains no mesh data, then n = 0.
229
229
@@ -235,15 +235,15 @@ Meshio Integration
235
235
The meshes property provides the face data but is not easy to use as a mesh. Therefore, we have provided optional Integration
236
236
into the `Meshio <https://github.com/nschloe/meshio>`__ library.
237
237
238
-
The ``pdal.Pipeline`` class provides the ``get_meshio(idx: int) -> meshio.Mesh`` method. This
238
+
The ``pdal.Pipeline`` class provides the ``get_meshio(idx: int) -> meshio.Mesh`` method. This
239
239
method creates a `Mesh` object from the `PointView` array and mesh properties.
240
240
241
241
.. note:: The meshio integration requires that meshio is installed (e.g. ``pip install meshio``). If it is not, then the method fails with an informative RuntimeError.
242
242
243
243
Simple use of the functionality could be as follows:
244
244
245
245
.. code-block:: python
246
-
246
+
247
247
import pdal
248
248
249
249
...
@@ -284,7 +284,7 @@ USE-CASE : Take a LiDAR map, create a mesh from the ground points, split into ti
284
284
m.write(buffer, file_format="wkt")
285
285
with conn.cursor() as curr:
286
286
curr.execute(
287
-
"INSERT INTO %table-name% (mesh) VALUES (ST_GeomFromEWKT(%(ewkt)s)",
287
+
"INSERT INTO %table-name% (mesh) VALUES (ST_GeomFromEWKT(%(ewkt)s)",
288
288
{ "ewkt": buffer.getvalue()}
289
289
)
290
290
@@ -307,7 +307,7 @@ USE-CASE : Take a LiDAR map, create a mesh from the ground points, split into ti
0 commit comments