-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug where a face for a bottom facing cell could be triangulat…
…ed incorrectly.
- Loading branch information
Showing
4 changed files
with
221 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,35 @@ | ||
#pragma once | ||
//------------------------------------------------------------------------------ | ||
/// \file | ||
/// \ingroup extractor | ||
/// \copyright (C) Copyright Aquaveo 2018. Distributed under FreeBSD License | ||
/// (See accompanying file LICENSE or https://aqaveo.com/bsd/license.txt) | ||
//------------------------------------------------------------------------------ | ||
|
||
#ifdef CXX_TEST | ||
|
||
// 3. Standard Library Headers | ||
|
||
// 4. External Library Headers | ||
#include <cxxtest/TestSuite.h> | ||
|
||
// 5. Shared Headers | ||
#include <xmscore/misc/base_macros.h> | ||
#include <xmscore/misc/boost_defines.h> | ||
#include <xmscore/points/pt.h> | ||
|
||
// 6. Non-shared Headers | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
class XmUGridTriangles2dUnitTests : public CxxTest::TestSuite | ||
{ | ||
public: | ||
void testBuildCentroidTrianglesOnTriangle(); | ||
void testBuildCentroidTrianglesOnQuad(); | ||
void testBuildCentroidTriangles2dCellTypes(); | ||
void testBuildEarcutTriangles(); | ||
void testBuildCentroidAndEarcutTriangles(); | ||
}; // XmUGridTriangles2d | ||
|
||
#endif | ||
#pragma once | ||
//------------------------------------------------------------------------------ | ||
/// \file | ||
/// \ingroup extractor | ||
/// \copyright (C) Copyright Aquaveo 2018. Distributed under FreeBSD License | ||
/// (See accompanying file LICENSE or https://aqaveo.com/bsd/license.txt) | ||
//------------------------------------------------------------------------------ | ||
|
||
#ifdef CXX_TEST | ||
|
||
// 3. Standard Library Headers | ||
|
||
// 4. External Library Headers | ||
#include <cxxtest/TestSuite.h> | ||
|
||
// 5. Shared Headers | ||
#include <xmscore/misc/base_macros.h> | ||
#include <xmscore/misc/boost_defines.h> | ||
#include <xmscore/points/pt.h> | ||
|
||
// 6. Non-shared Headers | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
class XmUGridTriangles2dUnitTests : public CxxTest::TestSuite | ||
{ | ||
public: | ||
void testBuildCentroidTrianglesOnTriangle(); | ||
void testBuildCentroidTrianglesOnQuad(); | ||
void testBuildCentroidTriangles2dCellTypes(); | ||
void testBuildEarcutTriangles(); | ||
void testBuildCentroidAndEarcutTriangles(); | ||
void testBuildCentroidAndEarcutTrianglesBottomFace(); | ||
}; // XmUGridTriangles2d | ||
|
||
#endif |
Oops, something went wrong.