Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f44963698f |
@@ -1074,6 +1074,9 @@ std::vector<glm::ivec3> TriangulateIdx(const PolygonsIdx &polys,
|
||||
Monotones monotones(polys, precision);
|
||||
monotones.Triangulate(triangles);
|
||||
#ifdef MANIFOLD_DEBUG
|
||||
std::cout << "in triangulator: "
|
||||
<< (PolygonParams().intermediateChecks ? "true" : "false")
|
||||
<< std::endl;
|
||||
if (params.intermediateChecks) {
|
||||
CheckTopology(triangles, polys);
|
||||
if (!params.processOverlaps) {
|
||||
|
||||
@@ -26,6 +26,8 @@ using namespace manifold;
|
||||
* The very simplest Boolean operation test.
|
||||
*/
|
||||
TEST(Boolean, Tetra) {
|
||||
std::cout << (PolygonParams().intermediateChecks ? "true" : "false")
|
||||
<< std::endl;
|
||||
Manifold tetra = Manifold::Tetrahedron();
|
||||
MeshGL tetraGL = WithPositionColors(tetra);
|
||||
tetra = Manifold(tetraGL);
|
||||
@@ -37,6 +39,8 @@ TEST(Boolean, Tetra) {
|
||||
ExpectMeshes(result, {{8, 12, 3, 11}});
|
||||
|
||||
RelatedGL(result, {tetraGL});
|
||||
std::cout << (PolygonParams().intermediateChecks ? "true" : "false")
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
TEST(Boolean, MeshGLRoundTrip) {
|
||||
|
||||
@@ -65,6 +65,7 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
|
||||
manifold::PolygonParams().intermediateChecks = true;
|
||||
|
||||
manifold::PolygonParams().processOverlaps = false;
|
||||
|
||||
return RUN_ALL_TESTS();
|
||||
|
||||
Reference in New Issue
Block a user