Skip to content

Commit 35b22b2

Browse files
committed
Add examples.
1 parent 796a413 commit 35b22b2

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

Examples/all_shapes.vsc

22.5 KB
Binary file not shown.

Examples/sphere_torus_diff.vsc

11.4 KB
Binary file not shown.

Sources/VisualScriptCAD/Application/MainWindow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424

2525
static const std::vector<std::pair<std::wstring, std::wstring>> exampleFiles = {
2626
{ L"Simple Box", L"simple_box.vsc" },
27+
{ L"All Shapes", L"all_shapes.vsc" },
2728
{ L"Lego Brick", L"lego_brick.vsc" },
2829
{ L"Box-Sphere Difference", L"box_sphere_diff.vsc" },
30+
{ L"Sphere-Torus Difference", L"sphere_torus_diff.vsc" },
2931
{ L"VisualScriptCAD Logo", L"vscad_logo.vsc" }
3032
};
3133

Test/CompatibilityTest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ def Main (argv):
4848
'boundingBox' : ([0.0, 0.0, 0.0], [3.0, 2.0, 1.0]),
4949
'surface' : 22.0
5050
},
51+
{
52+
'name' : 'all_shapes.vsc',
53+
'boundingBox' : ([-0.5, -0.5, -0.577], [12.577, 5.0, 1.0]),
54+
'surface' : 72.756
55+
},
5156
{
5257
'name' : 'lego_brick.vsc',
5358
'boundingBox' : ([0.0, 0.0, 0.0], [1.6, 2.4, 1.12]),
@@ -58,6 +63,11 @@ def Main (argv):
5863
'boundingBox' : ([0.0, 0.0, 0.0], [1.0, 1.0, 1.0]),
5964
'surface' : 5.501
6065
},
66+
{
67+
'name' : 'sphere_torus_diff.vsc',
68+
'boundingBox' : ([-0.798, -1.3, -0.8], [2.3, 1.3, 0.8]),
69+
'surface' : 22.170
70+
},
6171
{
6272
'name' : 'vscad_logo.vsc',
6373
'boundingBox' : ([-0.5, -0.5, -0.5], [0.5, 0.5, 0.5]),

0 commit comments

Comments
 (0)