Skip to content

Commit 10557ec

Browse files
authored
Merge branch 'InteractiveComputerGraphics:master' into fix-macos
2 parents ed7a2c8 + 544cc0c commit 10557ec

File tree

3 files changed

+89
-7
lines changed

3 files changed

+89
-7
lines changed

.github/workflows/build-linux.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: build-linux
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ master ]
46

57
jobs:
68
build-ubuntu:
@@ -10,7 +12,7 @@ jobs:
1012
steps:
1113
- uses: actions/checkout@v1
1214
- name: apt-get update
13-
run: sudo apt-get update --fix-missing
15+
run: sudo apt-get update --fix-missing
1416
- name: Install packages
1517
run: sudo apt-get -y install xorg-dev freeglut3-dev
1618
- name: configure
@@ -24,7 +26,7 @@ jobs:
2426
strategy:
2527
matrix:
2628
# python-version: [3.7]
27-
python-version: [cp36-cp36m, cp37-cp37m, cp38-cp38]
29+
python-version: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39, cp310-cp310]
2830

2931
steps:
3032
- uses: actions/checkout@v1

.github/workflows/build-windows.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: build-windows
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ master ]
46

57
jobs:
68
build-windows:
79

810
runs-on: ${{ matrix.os }}
911
strategy:
1012
matrix:
11-
os: [windows-latest, windows-2016]
13+
os: [windows-latest]
1214

1315
steps:
16+
# Checkout repo
1417
- uses: actions/checkout@v1
18+
# Configure, build and test
1519
- name: configure
1620
run: mkdir build-release;cd build-release;cmake ..
1721
shell: pwsh
@@ -25,15 +29,15 @@ jobs:
2529
strategy:
2630
matrix:
2731
# python-version: [3.7]
28-
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
32+
python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
2933

3034
steps:
3135
# Checkout repo
3236
- uses: actions/checkout@v1
3337

3438
# Set up python
3539
- name: Set up Python ${{ matrix.python-version }}
36-
uses: actions/setup-python@v1
40+
uses: actions/setup-python@v4
3741
with:
3842
python-version: ${{ matrix.python-version }}
3943

data/scenes/ClothOnBunny.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"Name": "ClothCollisionScene1",
3+
"Simulation":
4+
{
5+
"timeStepSize": 0.005,
6+
"maxIterations" : 1,
7+
"subSteps": 2,
8+
"maxIterVel" : 5,
9+
"velocityUpdateMethod" : 0,
10+
"contactTolerance": 0.1,
11+
"triangleModelSimulationMethod": 2,
12+
"triangleModelBendingMethod": 2,
13+
"contactStiffnessRigidBody" : 1.0,
14+
"contactStiffnessParticleRigidBody": 100.0,
15+
"cloth_stiffness": 1.0,
16+
"cloth_bendingStiffness": 0.1,
17+
"cloth_xxStiffness": 1.0,
18+
"cloth_yyStiffness": 1.0,
19+
"cloth_xyStiffness": 1.0,
20+
"cloth_xyPoissonRatio": 0.3,
21+
"cloth_yxPoissonRatio": 0.3,
22+
"cloth_normalizeStretch": 0,
23+
"cloth_normalizeShear": 0
24+
},
25+
"TriangleModels": [
26+
{
27+
"id": 0,
28+
"geometryFile": "../models/plane_50x50.obj",
29+
"translation": [5,8,0],
30+
"rotationAxis": [1, 0, 0],
31+
"rotationAngle": 0.0,
32+
"scale": [10, 10, 10],
33+
"restitution" : 0.1,
34+
"friction" : 0.1
35+
}
36+
],
37+
"RigidBodies": [
38+
{
39+
"id": 1,
40+
"geometryFile": "../models/cube.obj",
41+
"flatShading": true,
42+
"isDynamic": 0,
43+
"density": 500,
44+
"translation": [0,0,0],
45+
"rotationAxis": [1, 0, 0],
46+
"rotationAngle": 0.0,
47+
"scale": [100, 1, 100],
48+
"restitution" : 0.6,
49+
"friction" : 0.0,
50+
"comment": "collisionObjectType = 1: Sphere, 2: Box, 3: Cylinder, 4: Torus, 5: SDF, 6: HollowSphere, 7: HollowBox",
51+
"collisionObjectType": 2,
52+
"collisionObjectScale": [100, 1, 100]
53+
},
54+
{
55+
"id": 2,
56+
"geometryFile": "../models/bunny_10k.obj",
57+
"comment": "collisionObjectFileName can contain the path of an SDF file or if it is empty, the simulator will generate an SDF using the mesh in the geometryFile",
58+
"collisionObjectFileName": "",
59+
"resolutionSDF": [40,40,40],
60+
"isDynamic": 1,
61+
"density": 500,
62+
"translation": [5,1,0],
63+
"rotationAxis": [1, 0, 0],
64+
"rotationAngle": 0.0,
65+
"scale": [4, 4, 4],
66+
"velocity": [0,0,0],
67+
"restitution" : 0.6,
68+
"friction" : 0.2,
69+
"comment": "collisionObjectType = 1: Sphere, 2: Box, 3: Cylinder, 4: Torus, 5: SDF, 6: HollowSphere, 7: HollowBox",
70+
"collisionObjectType": 5,
71+
"collisionObjectScale": [4, 4, 4]
72+
}
73+
]
74+
}
75+
76+

0 commit comments

Comments
 (0)