Skip to content

Commit 04617de

Browse files
Fix missing placement for STL & STEP Files (#600)
* Fix missing placement for STL & STEP Files * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 824bbb2 commit 04617de

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

python/jupytercad_core/src/stepplugin/model.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ export class JupyterCadStepDoc extends JupyterCadDoc {
4343
shape: 'Part::Any',
4444
parameters: {
4545
Content: this._source.toJSON(),
46-
Type: 'STEP'
46+
Type: 'STEP',
47+
Color: '#808080',
48+
Placement: {
49+
Angle: 0.0,
50+
Axis: [0.0, 0.0, 1.0],
51+
Position: [0.0, 0.0, 0.0]
52+
}
4753
}
4854
}
4955
];

python/jupytercad_core/src/stlplugin/model.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ export class JupyterCadStlDoc extends JupyterCadDoc {
4343
shape: 'Part::Any',
4444
parameters: {
4545
Content: this._source.toJSON(),
46-
Type: 'STL'
46+
Type: 'STL',
47+
Color: '#808080',
48+
Placement: {
49+
Angle: 0.0,
50+
Axis: [0.0, 0.0, 1.0],
51+
Position: [0.0, 0.0, 0.0]
52+
}
4753
}
4854
}
4955
];

0 commit comments

Comments
 (0)