Skip to content

Commit

Permalink
Update worker
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Dec 15, 2023
1 parent 0201e9d commit 3402da1
Show file tree
Hide file tree
Showing 59 changed files with 815 additions and 1,225 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
hooks:
- id: forbid-new-submodules
- id: end-of-file-fixer
exclude: galata/.*-snapshots
exclude: galata/.*-snapshots, *.jcad
- id: check-case-conflict
- id: requirements-txt-fixer
- id: check-added-large-files
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ jupytercad
**/*.d.ts
**/*.js
packages/opencascade/build.yml
yarn.lock
*.jcad
80 changes: 48 additions & 32 deletions examples/test.jcad
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,69 @@
"objects": [
{
"name": "box",
"visible": true,
"shape": "Part::Box",
"shapeMetadata": {
"mass": 1995,
"centerOfMass": [
3.5,
7.5,
9.499999999999998
],
"matrixOfInertia": [
[
0,
-2.9103830456733704e-11,
45552.5
],
[
97422.50000000006,
0,
0
],
[
0,
68162.50000000006,
-2.9103830456733704e-11
]
]
},
"parameters": {
"Height": 19.0,
"Placement": {
"Axis": [
1.0,
0.0,
0.0
1,
0,
0
],
"Position": [
0.0,
0.0,
0.0
0,
0,
0
],
"Angle": 0.0
"Angle": 0
},
"Width": 15.0,
"Length": 7.0
},
"visible": true
"Width": 15,
"Length": 7,
"Height": 19
}
},
{
"visible": true,
"name": "Mesh 1",
"shape": "Post::Operator",
"parameters": {
"Length": 10.0,
"Placement": {
"Position": [
0.0,
0.0,
0.0
],
"Axis": [
1.0,
0.0,
0.0
],
"Angle": 2.0
},
"Height": 9.0,
"Width": 25.0
"NumberOfSegment": 5,
"Object": "box"
},
"shape": "Part::Box",
"name": "box2"
"visible": true
}
],
"options": {
"foo": 1.0
"foo": 1,
"guidata": {
"box": {
"visibility": false
}
}
},
"metadata": {}
}
186 changes: 186 additions & 0 deletions examples/test22.jcad
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
{
"objects": [
{
"visible": true,
"name": "box",
"shapeMetadata": {
"matrixOfInertia": [
[
0,
0,
75735
],
[
175477.5,
0,
0
],
[
0,
139837.5,
0
]
],
"mass": 2970,
"centerOfMass": [
4.5,
7.5,
11
]
},
"parameters": {
"Width": 15,
"Height": 22,
"Length": 9,
"Placement": {
"Angle": 0,
"Position": [
0,
0,
0
],
"Axis": [
1,
0,
0
]
}
},
"shape": "Part::Box"
},
{
"visible": true,
"shapeMetadata": {
"mass": 3900,
"centerOfMass": [
6.5,
12.28298835752369,
6.4325886708958375
],
"matrixOfInertia": [
[
0,
-5452.340379025205,
257859.60007843364
],
[
249925,
0,
0
],
[
0,
101915.39992156648,
-5452.340379025205
]
]
},
"name": "box2",
"parameters": {
"Width": 25,
"Placement": {
"Position": [
0,
0,
0
],
"Angle": 2,
"Axis": [
1,
0,
0
]
},
"Height": 12,
"Length": 13
},
"shape": "Part::Box"
},
{
"parameters": {
"Refine": false,
"Shapes": [
"box",
"box2"
],
"Placement": {
"Position": [
0,
0,
0
],
"Angle": 0,
"Axis": [
0,
0,
1
]
}
},
"shape": "Part::MultiCommon",
"shapeMetadata": {
"mass": 1620.9874617640914,
"centerOfMass": [
4.5,
7.500000000000002,
6.26556303698104
],
"matrixOfInertia": [
[
0,
-1061.3649281489343,
41335.18027498432
],
[
49906.14888444988,
0,
0
],
[
0,
30454.299343280843,
-1061.3649281489343
]
]
},
"name": "Intersection 1",
"visible": true
},
{
"name": "Salome mesh 1",
"shape": "Post::Operator",
"visible": true,
"parameters": {
"Object": "box",
"Placement": {
"Position": [
0,
0,
0
],
"Axis": [
0,
0,
1
],
"Angle": 0
}
}
}
],
"options": {
"guidata": {
"box2": {
"visibility": true
},
"Intersection 1": {
"visibility": true
},
"box": {
"visibility": true
}
},
"foo": 1
},
"metadata": {}
}
68 changes: 0 additions & 68 deletions jupytercad/fcstd_ydoc.py

This file was deleted.

Empty file removed jupytercad/freecad/__init__.py
Empty file.
Loading

0 comments on commit 3402da1

Please sign in to comment.