Title: Writing a ply file with meshes from numpy arrays. · Issue #185 · PDAL/python · GitHub
Open Graph Title: Writing a ply file with meshes from numpy arrays. · Issue #185 · PDAL/python
X Title: Writing a ply file with meshes from numpy arrays. · Issue #185 · PDAL/python
Description: I can write a ply file of points by passing an array to the pipeline object: import pdal xyz = np.array([(0.0, 0.0, 0.0), (1.0, 0.0, 0.0),(1.0, 2.0, 0.0),(4.0, 1.0, 0.0)], dtype=[('X', ' Open Graph Description: I can write a ply file of points by passing an array to the pipeline object: import pdal xyz = np.array([(0.0, 0.0, 0.0), (1.0, 0.0, 0.0),(1.0, 2.0, 0.0),(4.0, 1.0, 0.0)], dtype=[('X', ' X Description: I can write a ply file of points by passing an array to the pipeline object: import pdal xyz = np.array([(0.0, 0.0, 0.0), (1.0, 0.0, 0.0),(1.0, 2.0, 0.0),(4.0, 1.0, 0.0)], dtype=[('X', '...
Opengraph URL: https://github.com/PDAL/python/issues/185
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Writing a ply file with meshes from numpy arrays.","articleBody":"I can write a ply file of points by passing an array to the pipeline object:\n```\nimport pdal\n\nxyz = np.array([(0.0, 0.0, 0.0), (1.0, 0.0, 0.0),(1.0, 2.0, 0.0),(4.0, 1.0, 0.0)], dtype=[('X', '\u003cf8'), ('Y', '\u003cf8'), ('Z', '\u003cf8')])\nabc = np.array([(0, 1, 2), (2, 1, 3)], dtype=[('A', '\u003cu4'), ('B', '\u003cu4'), ('C', '\u003cu4')])\n\npipeline = pdal.Writer.ply(filename=\"myply.ply\", faces=True).pipeline(xyz)\npipeline.execute()\n```\nIs there anyway to pass an array of faces too (`abc` in my snippet above)?\n\nLooking in `Pipeline.__init__` there is only a spot for `arrays`.\nhttps://github.com/PDAL/python/blob/32328ac7050bf517b6961cdc297548a384766b32/src/pdal/pipeline.py#L37\n\nBasically I'm reading a point cloud file, making a mesh (using poisson), removing some triangles and points from the mesh (this part not in pdal), and writing the resulting points from the mesh. After the mesh stage I also tried deleting rows from pipeline.meshes and pipeline.arrays but I believe they are read only. I tried using filters.crop on the meshed pointcloud - while points are deleted the entire mesh is destroyed. Is there anyway to pass meshes to filters along with arrays? and is it possible for crop etc filters to also crop the mesh?","author":{"url":"https://github.com/rtrwalker","@type":"Person","name":"rtrwalker"},"datePublished":"2025-02-14T23:47:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/185/python/issues/185"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:fab57f7d-eb1c-8835-ad3f-8bfbb549816d current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id AD4E:CF8F9:17D138C:214B7CF:696F5458 html-safe-nonce 8ac5c95273e8c8535f49cf294aa2edccde966d979c0e2024df6f8ea8d4ab9cb8 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDRFOkNGOEY5OjE3RDEzOEM6MjE0QjdDRjo2OTZGNTQ1OCIsInZpc2l0b3JfaWQiOiIxMTM2NjI3NjAzMDQ1NTY5NjI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac 31660e37eb7262014a6e8dd053136067cb8d407343f686fed7f7d0c9f8ab8e6b hovercard-subject-tag issue:2854907380 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PDAL/python/185/issue_layout twitter:image https://opengraph.githubassets.com/6ae28c3922b7b4801a9f495bab98079ce41a47decf5ecaf71e0295dd88a47587/PDAL/python/issues/185 twitter:card summary_large_image og:image https://opengraph.githubassets.com/6ae28c3922b7b4801a9f495bab98079ce41a47decf5ecaf71e0295dd88a47587/PDAL/python/issues/185 og:image:alt I can write a ply file of points by passing an array to the pipeline object: import pdal xyz = np.array([(0.0, 0.0, 0.0), (1.0, 0.0, 0.0),(1.0, 2.0, 0.0),(4.0, 1.0, 0.0)], dtype=[('X', ' og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username rtrwalker hostname github.com expected-hostname github.com None 49bb2ee76ae1b4ec758faefafda636ff20b05a9708bb290d28422cdf542ae979 turbo-cache-control no-preview go-import github.com/PDAL/python git https://github.com/PDAL/python.git octolytics-dimension-user_id 859797 octolytics-dimension-user_login PDAL octolytics-dimension-repository_id 125232078 octolytics-dimension-repository_nwo PDAL/python octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 125232078 octolytics-dimension-repository_network_root_nwo PDAL/python turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 036f37fe552777ac9c6ee661957f947285aab936 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.