MeshKit
1.0
|
#include <iostream>
#include <list>
#include "meshkit/AF2Point2D.hpp"
#include "meshkit/AF2Polygon2D.hpp"
#include "meshkit/AF2RuleApplication.hpp"
#include "meshkit/Error.hpp"
#include "TestUtil.hpp"
Go to the source code of this file.
Functions | |
void | makeTriangle (AF2Point2D const &v0, AF2Point2D const &v1, AF2Point2D const &v2, AF2Polygon2D *&trianglePtr) |
AF2Polygon2D * | makeQuad (AF2Point2D const &v0, AF2Point2D const &v1, AF2Point2D const &v2, AF2Point2D const &v3) |
AF2RuleApplication * | makeZeroNewPointsRuleApplication (AF2Point2D const &v0, AF2Point2D const &v1, AF2Point2D const &v2) |
AF2RuleApplication * | makeTwoNewPointsRuleApplication (AF2Point2D const &v0, AF2Point2D const &v1, double v2x, double v2y, double v3x, double v3y) |
void | testPolygonCreateDestroy () |
void | testPolygonCopy () |
void | testPolygonAssign () |
void | testPolygonConstructorException () |
void | testPolygonRangeException () |
void | testRuleAppZeroPntsCreateDestroy () |
void | testRuleAppZeroPntsCopy () |
void | testRuleAppZeroPntsAssign () |
void | testRuleAppTwoPntsCreateDestroy () |
void | testRuleAppTwoPntsCopy () |
void | testRuleAppTwoPntsAssign () |
void | testRuleAppConstructorExceptions () |
void | testRuleAppRangeExceptions () |
int | main (int argc, char **argv) |
Test the two-dimensional polygon and two-dimensional rule application object.
Rule application objects are normally created when a rule is successfully applied, but the the object can be tested without the context of a rule. This test creates points and polygons like they might be created for a successful rule application and uses them to test the rule application object.
Definition in file ruleAppObj2D.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 49 of file ruleAppObj2D.cpp.
AF2Polygon2D * makeQuad | ( | AF2Point2D const & | v0, |
AF2Point2D const & | v1, | ||
AF2Point2D const & | v2, | ||
AF2Point2D const & | v3 | ||
) |
Definition at line 81 of file ruleAppObj2D.cpp.
void makeTriangle | ( | AF2Point2D const & | v0, |
AF2Point2D const & | v1, | ||
AF2Point2D const & | v2, | ||
AF2Polygon2D *& | trianglePtr | ||
) |
Definition at line 71 of file ruleAppObj2D.cpp.
AF2RuleApplication * makeTwoNewPointsRuleApplication | ( | AF2Point2D const & | v0, |
AF2Point2D const & | v1, | ||
double | v2x, | ||
double | v2y, | ||
double | v3x, | ||
double | v3y | ||
) |
Make a rule application that has one quadrilateral. The quadrilateral depends on two existing vertices whose memory is managed outside the rule application and two new vertices whose memory is managed by the rule application.
Definition at line 129 of file ruleAppObj2D.cpp.
AF2RuleApplication * makeZeroNewPointsRuleApplication | ( | AF2Point2D const & | v0, |
AF2Point2D const & | v1, | ||
AF2Point2D const & | v2 | ||
) |
Make a rule application that has one triangle and depends on existing vertices whose memory is managed outside the rule application.
Definition at line 97 of file ruleAppObj2D.cpp.
void testPolygonAssign | ( | ) |
Definition at line 204 of file ruleAppObj2D.cpp.
void testPolygonConstructorException | ( | ) |
Definition at line 230 of file ruleAppObj2D.cpp.
void testPolygonCopy | ( | ) |
Definition at line 186 of file ruleAppObj2D.cpp.
void testPolygonCreateDestroy | ( | ) |
Definition at line 163 of file ruleAppObj2D.cpp.
void testPolygonRangeException | ( | ) |
Definition at line 257 of file ruleAppObj2D.cpp.
void testRuleAppConstructorExceptions | ( | ) |
Definition at line 485 of file ruleAppObj2D.cpp.
void testRuleAppRangeExceptions | ( | ) |
Definition at line 545 of file ruleAppObj2D.cpp.
void testRuleAppTwoPntsAssign | ( | ) |
Definition at line 446 of file ruleAppObj2D.cpp.
void testRuleAppTwoPntsCopy | ( | ) |
Definition at line 409 of file ruleAppObj2D.cpp.
void testRuleAppTwoPntsCreateDestroy | ( | ) |
Definition at line 366 of file ruleAppObj2D.cpp.
void testRuleAppZeroPntsAssign | ( | ) |
Definition at line 336 of file ruleAppObj2D.cpp.
void testRuleAppZeroPntsCopy | ( | ) |
Definition at line 315 of file ruleAppObj2D.cpp.
void testRuleAppZeroPntsCreateDestroy | ( | ) |
Definition at line 283 of file ruleAppObj2D.cpp.