Skip to content

Commit

Permalink
wip: use STL file format
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Oct 9, 2024
1 parent 2968d88 commit 7415e49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/SFCGAL/Elephant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <SFCGAL/algorithm/scale.h>
#include <SFCGAL/algorithm/translate.h>
#include <SFCGAL/io/OBJ.h>
#include <SFCGAL/io/STL.h>
#include <SFCGAL/io/wkb.h>
#include <boost/test/unit_test.hpp>
#include <cmath>
Expand Down Expand Up @@ -166,6 +167,7 @@ BOOST_AUTO_TEST_CASE(testElephant)

// Save to OBJ file
io::OBJ::save(*elephant, "/tmp/elephant.obj");
io::STL::save(*elephant, "/tmp/elephant.stl");

// Add a simple test to ensure the geometry is not empty
BOOST_CHECK(!elephant->isEmpty());
Expand Down
2 changes: 2 additions & 0 deletions test/unit/SFCGAL/Grasshopper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <SFCGAL/algorithm/scale.h>
#include <SFCGAL/algorithm/translate.h>
#include <SFCGAL/io/OBJ.h>
#include <SFCGAL/io/STL.h>
#include <SFCGAL/io/wkb.h>
#include <boost/test/unit_test.hpp>
#include <cmath>
Expand Down Expand Up @@ -150,6 +151,7 @@ BOOST_AUTO_TEST_CASE(testCigale)

// Save as OBJ file
io::OBJ::save(*cigale, "/tmp/cigale.obj");
io::STL::save(*cigale, "/tmp/cigale.stl");

BOOST_CHECK(!cigale->isEmpty());
}

0 comments on commit 7415e49

Please sign in to comment.