python 三维凸包_cgal4py-CGAL三角剖分的Python接口-Meagan Lang Licensing Requirements Installation Who do I talk ...

作者:Meagan Lang

### 作者邮箱:langmm.astro@gmail.com

### 首页:https://langmm@bitbucket.org/langmm/cgal4py

### 文档:None

### 下载链接 UNKNOWN

======

README

cgal4py is a Python interface for using the CGAL _ Delaunay triangulation classes in any number of dimensions. Triangulation in parallel is also supported using the algorithm described in Peterka, Morozov, & Phillips (2014) . Documentation for cgal4py can be found here _.

Licensing

cgal4py is released as open source software under a BSD license.

Requirements

For running in serial:

Python 2.7 _

C++14 compiler

Cython _

CGAL __ Version 3.5 or higher is required for periodic triangulations in 3D and version 4.9 or higher is required for periodic triangulations in 2D.

For running in parallel you will need the above plus:

MPI (either MPICH _ or OpenMPI _)

mpi4py _

multiprocessing _

cykdtree _

Installation

From Source

Clone the cgal4py package using Mercurial _. $ hg clone https://[username]@bitbucket.org/[username]/cgal4py where [username] should be replaced with your Bitbucket username.

From the distribution directory, execute the install script. $ python setup.py install If you do not have administrative privileges, add the flag --user to the above command and the package will be installed in your user package directory _.

Who do I talk to?

This package is currently maintained by Meagan Lang _.

Copy from pypi.org

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Python中,可以使用Open3D库来计算三维凸包。首先,需要导入Open3D库并加载点云数据。然后,使用compute_convex_hull()函数计算点云的凸包。最后,可以使用LineSet.create_from_triangle_mesh()函数创建一个线集对象,并使用paint_uniform_color()函数设置凸包的颜色。最后,使用visualization.draw_geometries()函数显示点云和凸包。 以下是一个示例代码: ```python import open3d as o3d # 加载点云数据 pcd = o3d.io.read_point_cloud("gongjian1.pcd") # 计算点云的凸包 hull, _ = pcd.compute_convex_hull() # 创建线集对象并设置颜色 hull_ls = o3d.geometry.LineSet.create_from_triangle_mesh(hull) hull_ls.paint_uniform_color((1, 0, 0)) # 显示点云和凸包 o3d.visualization.draw_geometries(\[pcd, hull_ls\]) ``` 这段代码会加载名为"gongjian1.pcd"的点云数据,并计算点云的凸包。然后,创建一个线集对象来表示凸包,并将其颜色设置为红色。最后,使用可视化函数显示点云和凸包。 希望这个代码对你有帮助! #### 引用[.reference_title] - *1* [Open3D 凸包算法(Python版本)](https://blog.csdn.net/dayuhaitang1/article/details/128679898)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [点云三维凸包(附open3d python代码)](https://blog.csdn.net/a394467238/article/details/128100636)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Python凸包](https://blog.csdn.net/m0_37816922/article/details/130139385)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值