{"id":20260939,"url":"https://github.com/mpewsey/off_parser","last_synced_at":"2025-05-07T14:30:30.840Z","repository":{"id":104276820,"uuid":"168623824","full_name":"mpewsey/off_parser","owner":"mpewsey","description":"Parses OFF (Object File Format) 3D model files to a class container. Includes helper functions for downloading and parsing publicly available datasets.","archived":true,"fork":false,"pushed_at":"2019-02-27T04:34:23.000Z","size":155,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T12:15:16.239Z","etag":null,"topics":["3d-models","modelnet","off-file","parser"],"latest_commit_sha":null,"homepage":"https://off-parser.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpewsey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-02-01T01:30:03.000Z","updated_at":"2024-04-16T04:47:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"585a4a65-44ba-419c-8e16-b30e32346f03","html_url":"https://github.com/mpewsey/off_parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpewsey%2Foff_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpewsey%2Foff_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpewsey%2Foff_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpewsey%2Foff_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpewsey","download_url":"https://codeload.github.com/mpewsey/off_parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252895468,"owners_count":21821165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["3d-models","modelnet","off-file","parser"],"created_at":"2024-11-14T11:23:07.643Z","updated_at":"2025-05-07T14:30:30.830Z","avatar_url":"https://github.com/mpewsey.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OFF Parser\n\n[![Build Status](https://travis-ci.com/mpewsey/off_parser.svg?branch=master)](https://travis-ci.com/mpewsey/off_parser)\n[![Documentation Status](https://readthedocs.org/projects/off_parser/badge/?version=latest)](https://off_parser.readthedocs.io/en/latest/?badge=latest)\n[![codecov](https://codecov.io/gh/mpewsey/off_parser/branch/master/graph/badge.svg)](https://codecov.io/gh/mpewsey/off_parser)\n\n## About\nThis package provides a class for parsing .OFF (Object File Format) 3D model\nfiles for manipulation of the data using Python. In addition, it provides\nhelper functions for downloading and parsing data from the below datasets.\n\n| Dataset              | Function          | Source                            |\n|----------------------|-------------------|-----------------------------------|\n| Princeton ModelNet10 | `load_modelnet10` | [http://modelnet.cs.princeton.edu/](http://modelnet.cs.princeton.edu/) |\n| Princeton ModelNet40 | `load_modelnet40` | [http://modelnet.cs.princeton.edu/](http://modelnet.cs.princeton.edu/) |\n\n\nThis package is in no way affiliated with these datasets. For terms of dataset\nusage, please consult each datasets respective licensing and conditions.\n\n\n## Installation\n\nThe latest development version of this package may be installed via `pip`:\n\n```\npip install git+https://github.com/mpewsey/off_parser#egg=off_parser\n```\n\n## Parsing Files\n\nAn .OFF file may be loaded by passing the file path to the class constructor:\n\n```\nfrom off_parser import OffParser\np = OffParser('path/file.off')\n```\n\nThe points and faces contained in the file can then be accessed via the\n`points` and `faces` properties.\n\nThe 3D model may also be plotted using `matplotlib` by calling the `plot`\nmethod:\n\n```\np.plot()\n```\n\n![toilet.png](docs/_static/toilet.png)\n\n## Loading Datasets\n\nThe functions specified in the table in the [About](#about) section\nmay be used to load their respective datasets. The first time a function\nis called, the dataset will be downloaded to the operating system's temporary\ndirectory. If the download is interrupted or you encounter a problem with\nthe file, delete the file from the temporary directory and try calling\nthe function again. The dataset files can take some time to download so\nplease be patient.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpewsey%2Foff_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpewsey%2Foff_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpewsey%2Foff_parser/lists"}