diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml new file mode 100644 index 0000000..4835f34 --- /dev/null +++ b/.github/workflows/build-docker.yml @@ -0,0 +1,28 @@ +name: Build Docker Image + +on: + workflow_dispatch: + +env: + REGISTRY: ghcr.io + NAME: ppf-contact-solver-base +jobs: + build-and-push: + runs-on: ppf-contact-solver-NVIDIA + permissions: + contents: read + packages: write + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Docker Login + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build Image + uses: docker/build-push-action@v5 + with: + push: true + tags: ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.NAME }}:latest \ No newline at end of file diff --git a/examples/needle.ipynb b/examples/needle.ipynb index 885e71c..1b812b2 100644 --- a/examples/needle.ipynb +++ b/examples/needle.ipynb @@ -16,7 +16,7 @@ "V, F = app.mesh.square(res=129)\n", "app.asset.add.tri(\"sheet\", V, F)\n", "\n", - "V, F = app.mesh.cone(height=5, Nr=20, Ny=32, Nb=12, radius=1)\n", + "V, F = app.mesh.cone(height=5, Nr=40, Ny=64, Nb=12, radius=1, sharpen=2)\n", "app.asset.add.tri(\"cone\", V, F)\n", "\n", "V, F, T = app.mesh.icosphere(r=0.25, subdiv_count=4).tetrahedralize()\n",