René's URL Explorer Experiment


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

direct link

Domain: patch-diff.githubusercontent.com


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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fab57f7d-eb1c-8835-ad3f-8bfbb549816d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAD4E:CF8F9:17D138C:214B7CF:696F5458
html-safe-nonce8ac5c95273e8c8535f49cf294aa2edccde966d979c0e2024df6f8ea8d4ab9cb8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDRFOkNGOEY5OjE3RDEzOEM6MjE0QjdDRjo2OTZGNTQ1OCIsInZpc2l0b3JfaWQiOiIxMTM2NjI3NjAzMDQ1NTY5NjI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac31660e37eb7262014a6e8dd053136067cb8d407343f686fed7f7d0c9f8ab8e6b
hovercard-subject-tagissue:2854907380
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PDAL/python/185/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6ae28c3922b7b4801a9f495bab98079ce41a47decf5ecaf71e0295dd88a47587/PDAL/python/issues/185
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6ae28c3922b7b4801a9f495bab98079ce41a47decf5ecaf71e0295dd88a47587/PDAL/python/issues/185
og:image:altI 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamertrwalker
hostnamegithub.com
expected-hostnamegithub.com
None49bb2ee76ae1b4ec758faefafda636ff20b05a9708bb290d28422cdf542ae979
turbo-cache-controlno-preview
go-importgithub.com/PDAL/python git https://github.com/PDAL/python.git
octolytics-dimension-user_id859797
octolytics-dimension-user_loginPDAL
octolytics-dimension-repository_id125232078
octolytics-dimension-repository_nwoPDAL/python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id125232078
octolytics-dimension-repository_network_root_nwoPDAL/python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release036f37fe552777ac9c6ee661957f947285aab936
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/PDAL/python/issues/185#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FPDAL%2Fpython%2Fissues%2F185
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FPDAL%2Fpython%2Fissues%2F185
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PDAL%2Fpython
Reloadhttps://patch-diff.githubusercontent.com/PDAL/python/issues/185
Reloadhttps://patch-diff.githubusercontent.com/PDAL/python/issues/185
Reloadhttps://patch-diff.githubusercontent.com/PDAL/python/issues/185
PDAL https://patch-diff.githubusercontent.com/PDAL
pythonhttps://patch-diff.githubusercontent.com/PDAL/python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FPDAL%2Fpython
Fork 43 https://patch-diff.githubusercontent.com/login?return_to=%2FPDAL%2Fpython
Star 131 https://patch-diff.githubusercontent.com/login?return_to=%2FPDAL%2Fpython
Code https://patch-diff.githubusercontent.com/PDAL/python
Issues 9 https://patch-diff.githubusercontent.com/PDAL/python/issues
Pull requests 0 https://patch-diff.githubusercontent.com/PDAL/python/pulls
Actions https://patch-diff.githubusercontent.com/PDAL/python/actions
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/PDAL/python/security
Please reload this pagehttps://patch-diff.githubusercontent.com/PDAL/python/issues/185
Insights https://patch-diff.githubusercontent.com/PDAL/python/pulse
Code https://patch-diff.githubusercontent.com/PDAL/python
Issues https://patch-diff.githubusercontent.com/PDAL/python/issues
Pull requests https://patch-diff.githubusercontent.com/PDAL/python/pulls
Actions https://patch-diff.githubusercontent.com/PDAL/python/actions
Security https://patch-diff.githubusercontent.com/PDAL/python/security
Insights https://patch-diff.githubusercontent.com/PDAL/python/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/PDAL/python/issues/185
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/PDAL/python/issues/185
Writing a ply file with meshes from numpy arrays.https://patch-diff.githubusercontent.com/PDAL/python/issues/185#top
https://github.com/rtrwalker
https://github.com/rtrwalker
rtrwalkerhttps://github.com/rtrwalker
on Feb 14, 2025https://github.com/PDAL/python/issues/185#issue-2854907380
python/src/pdal/pipeline.pyhttps://github.com/PDAL/python/blob/32328ac7050bf517b6961cdc297548a384766b32/src/pdal/pipeline.py#L37
32328achttps://patch-diff.githubusercontent.com/PDAL/python/commit/32328ac7050bf517b6961cdc297548a384766b32
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.