Skip to content

Commit

Permalink
Adds cone and thinCylinder. Slight changes in sphere case for speed.
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdiazangulo committed Feb 13, 2025
1 parent 198cf16 commit 4d1a9fd
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
18 changes: 18 additions & 0 deletions test/app/launcherTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,22 @@ TEST_F(LauncherTest, launches_sphere_case)
int exitCode;
EXPECT_NO_THROW(exitCode = meshlib::app::launcher(ac, av));
EXPECT_EQ(exitCode, EXIT_SUCCESS);
}

TEST_F(LauncherTest, launches_thinCylinder_case)
{
int ac = 3;
const char* av[] = { NULL, "-i", "testData/cases/thinCylinder/thinCylinder.tessellator.json"};
int exitCode;
EXPECT_NO_THROW(exitCode = meshlib::app::launcher(ac, av));
EXPECT_EQ(exitCode, EXIT_SUCCESS);
}

TEST_F(LauncherTest, launches_cone_case)
{
int ac = 3;
const char* av[] = { NULL, "-i", "testData/cases/cone/cone.tessellator.json"};
int exitCode;
EXPECT_NO_THROW(exitCode = meshlib::app::launcher(ac, av));
EXPECT_EQ(exitCode, EXIT_SUCCESS);
}
Binary file added testData/cases/cone/cone.stl
Binary file not shown.
10 changes: 10 additions & 0 deletions testData/cases/cone/cone.tessellator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"grid": {
"numberOfCells": [40, 40, 120],
"boundingBox": [
[-2, -2, -1],
[ 2, 2, 11]
]
},
"object": {"filename": "cone.stl"}
}
2 changes: 1 addition & 1 deletion testData/cases/sphere/sphere.tessellator.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"grid": {
"numberOfCells": [100, 100, 100],
"numberOfCells": [50, 50, 50],
"boundingBox": [
[-100.0, -100.0, -100.0],
[ 100.0, 100.0, 100.0]
Expand Down
Binary file added testData/cases/thinCylinder/thinCylinder.stl
Binary file not shown.
10 changes: 10 additions & 0 deletions testData/cases/thinCylinder/thinCylinder.tessellator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"grid": {
"numberOfCells": [20, 20, 30],
"boundingBox": [
[-1, -1, -1],
[ 1, 1, 2]
]
},
"object": {"filename": "thinCylinder.stl"}
}

0 comments on commit 4d1a9fd

Please sign in to comment.