{"id":37621815,"url":"https://github.com/romi/romicgal","last_synced_at":"2026-01-16T10:40:16.112Z","repository":{"id":43276310,"uuid":"221706110","full_name":"romi/romicgal","owner":"romi","description":"Python CGAL bindings for skeletonization","archived":false,"fork":false,"pushed_at":"2025-03-26T10:10:15.000Z","size":10989,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-26T11:25:35.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/romi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-14T13:38:17.000Z","updated_at":"2025-03-26T10:10:18.000Z","dependencies_parsed_at":"2025-02-11T11:37:49.196Z","dependency_job_id":null,"html_url":"https://github.com/romi/romicgal","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/romi/romicgal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romi%2Fromicgal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romi%2Fromicgal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romi%2Fromicgal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romi%2Fromicgal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romi","download_url":"https://codeload.github.com/romi/romicgal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romi%2Fromicgal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T10:40:15.325Z","updated_at":"2026-01-16T10:40:16.076Z","avatar_url":"https://github.com/romi.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [![ROMI_logo](docs/assets/images/ROMI_logo_green_25.svg)](https://romi-project.eu) / romicgal\n\n[![Licence](https://img.shields.io/github/license/romi/romicgal?color=lightgray)](https://www.gnu.org/licenses/lgpl-3.0.en.html)\n[![Python Version](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fromi%2Fromicgal%2Frefs%2Fheads%2Fmaster%2Fpyproject.toml\u0026logo=python\u0026logoColor=white)]()\n[![PyPI - Version](https://img.shields.io/pypi/v/romicgal?logo=pypi\u0026logoColor=white)](https://pypi.org/project/romicgal/)\n[![Conda - Version](https://img.shields.io/conda/vn/romi-eu/romicgal?logo=anaconda\u0026logoColor=white\u0026label=romi-eu\u0026color=%2344A833)](https://anaconda.org/romi-eu/romicgal)\n[![GitHub branch check runs](https://img.shields.io/github/check-runs/romi/romicgal/master)](https://github.com/romi/romicgal)\n\n## Overview\n\nThis package contains Python bindings to use the following CGAL method: `CGAL/extract_mean_curvature_flow_skeleton`.\n\n\u003cfigure\u003e\n  \u003cimg src=\"docs/assets/paper_preview.png\" width=\"350\" /\u003e\n  \u003cfigcaption\u003e\n    This algorithm extracts a curve skeleton for a triangulated polygonal mesh without borders, based on mean curvature flow.  \n    \u003cu\u003eSource\u003c/u\u003e: Tagliasacchi et al., _Mean Curvature Skeletons_. **Computer Graphics Forum** (2012).\n  \u003c/figcaption\u003e\n\u003c/figure\u003e\n\n## Reference\n\nAndrea Tagliasacchi, Ibraheem Alhashim, Matt Olson, and Hao Zhang. _Mean Curvature Skeletons_.  \n**Computer Graphics Forum** (Proceedings of the Symposium on Geometry Processing), 31(5):1735–1744, 2012.  \n[10.1111/j.1467-8659.2012.03178.x](https://doi.org/10.1111/j.1467-8659.2012.03178.x).  \n\nFree [PDF](https://www.cs.sfu.ca/~haoz/pubs/tag_sgp12.pdf).\n\nCGAL Reference manual for [Surface mesh skeletonization](https://doc.cgal.org/5.4.5/Surface_mesh_skeletonization/group__PkgSurfaceMeshSkeletonizationRef.html).\n\n## Getting Started\n\nThe recommended way to install this library is by using the **conda package**.\n\n### Conda Package\n\nIn your **activated** environment of choice, install the conda package by running:\n\n```shell\nconda install romicgal -c romi-eu\n```\n\n### Install from Source\n\n#### Requirements\n\nTo build and install from source, the following dependencies are required:\n- **C++ build tools** (_e.g._, `cmake` and `make`)\n- A **C++ Compiler** compliant with C++ standard 11 or later (_e.g._, `gcc` or `clang`)\n- The **CGAL library** (`CGAL`)\n- The **Eigen library** (`Eigen3`)\n- The **GMP library** (`GMP`)\n- The **MPFR library** (`MPFR`)\n\n**Example:** On Ubuntu 22.04 \u0026 24.04, you can install these dependencies with:\n\n```shell\nsudo apt install \\\n    build-essential \\\n    gcc \\\n    libcgal-dev \\\n    libeigen3-dev \\\n    libgmp-dev \\\n    libmpfr-dev\n```\n\n#### Cloning the Repository  \n\nFirst, clone the source code and navigate to the project directory:\n\n```shell\ngit clone https://github.com/romi/romicgal.git\ncd romicgal\n```\n\n#### Setting Up a Virtual Environment  \n\nWe recommend creating a dedicated conda environment to install the package and its dependencies. Use the provided YAML file to create an environment named `romicgal` as shown below:\n\n```shell\nconda env create --file conda/env/romicgal.yaml\n```\n\n#### Building and Installing  \n\nActivate your newly created environment and install the sources using `pip`:\n\n```shell\nconda activate romicgal\npython -m pip install .\n```\n\n## Usage\n\nA quick usage example:\n\n```python\nimport romicgal\nfrom open3d import open3d\n\nmesh = open3d.io.read_triangle_mesh('sample/TriangleMesh.ply')\npoints, lines, skelcorres = romicgal.skeletonize_mesh_with_corres(mesh.vertices, mesh.triangles)\n\nl = open3d.geometry.LineSet()\nl.points = open3d.utility.Vector3dVector(points)\nl.lines = open3d.utility.Vector2iVector(lines)\nopen3d.visualization.draw_geometries([l])\n```\n\n## Conda Packaging\n\n### Install Requirements for Packaging  \n\nTo package the library, follow the official Anaconda documentation on [Conda Packages](https://docs.anaconda.com/anacondaorg/user-guide/packages/conda-packages).\n\nFirst, install `anaconda-client` and `conda-build` in the **base environment**:\n\n```shell\nconda install anaconda-client conda-build\n```\n\n:warning: **WARNING** :warning:  \n\u003e These steps must be performed in the **base** conda environment.\n\n### Building Conda Packages  \n\nFrom the root `romicgal/` directory and within the **base environment**, build the conda packages using the following command:\n\n```shell\nconda build conda/recipe/ -c conda-forge -c open3d-admin\n```\n\nThe built packages will be stored in the folder `~/miniconda3/conda-bld/linux-64/`.\n\n:warning: **WARNING** :warning:  \n\u003e This process must be completed in the **base** conda environment.\n\n### Uploading Conda Packages  \n\nAfter successfully building the package, you can upload it with the command:\n\n```shell\nanaconda upload --user romi-eu --label main ~/miniconda3/conda-bld/linux-64/romicgal*.tar.bz2\n```\n\n:warning: **WARNING** :warning:  \n\u003e This process must be completed in the **base** conda environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromi%2Fromicgal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromi%2Fromicgal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromi%2Fromicgal/lists"}