Skip to content

Commit

Permalink
Updated CI and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cjaverliat committed Apr 19, 2024
1 parent b952092 commit 02d7825
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ name: ci

on:
push:
branches:
- master
tags:
- "v*"

# Checkout the code and zip the mesh_to_pcd folder as a build artifact
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
actions: write

steps:
- uses: actions/checkout@v4
Expand All @@ -20,4 +23,11 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: mesh_to_pcd
path: mesh_to_pcd.zip
path: mesh_to_pcd.zip

- name: Create a release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: mesh_to_pcd.zip
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@

Blender script to convert a mesh with a principled BRDF material with a base color or a texture into a colored point cloud using Poisson Disk sampling.

<img src="docs/images/mesh.png" alt="mesh" height="200"/><img src="docs/images/pcd.png" alt="point cloud" height="200"/>
![mesh](docs/images/mesh.png)![point cloud](docs/images/pcd.png)

## Installation

Download the `mesh_to_pcd.zip` file from the [latest release](https://github.com/cjaverliat/MeshToPointCloud/releases). In Blender go to `Edit > Preferences > Add-ons`, click `Install...` and select the zip file. Confirm the install by clicking on `Install Add-on` and enable the addon from the list.

![addons](docs/images/addons.png)

## Usage

Select one or several meshes, open the contextual menu and run `Export Mesh To Point Cloud`. A dialog will appear asking for the parameters for the output directory and the Poisson Disk Sampling operations.

![parameters](docs/images/parameters.png)
Binary file added docs/images/addons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/mesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/parameters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/pcd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 02d7825

Please sign in to comment.