MeshKit  1.0
ruleAppObj2D.cpp File Reference
#include <iostream>
#include <list>
#include "meshkit/AF2Point2D.hpp"
#include "meshkit/AF2Polygon2D.hpp"
#include "meshkit/AF2RuleApplication.hpp"
#include "meshkit/Error.hpp"
#include "TestUtil.hpp"
Include dependency graph for ruleAppObj2D.cpp:

Go to the source code of this file.

Functions

void makeTriangle (AF2Point2D const &v0, AF2Point2D const &v1, AF2Point2D const &v2, AF2Polygon2D *&trianglePtr)
AF2Polygon2DmakeQuad (AF2Point2D const &v0, AF2Point2D const &v1, AF2Point2D const &v2, AF2Point2D const &v3)
AF2RuleApplicationmakeZeroNewPointsRuleApplication (AF2Point2D const &v0, AF2Point2D const &v1, AF2Point2D const &v2)
AF2RuleApplicationmakeTwoNewPointsRuleApplication (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)

Detailed Description

Test:

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.


Function Documentation

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.

Definition at line 204 of file ruleAppObj2D.cpp.

Definition at line 230 of file ruleAppObj2D.cpp.

void testPolygonCopy ( )

Definition at line 186 of file ruleAppObj2D.cpp.

Definition at line 163 of file ruleAppObj2D.cpp.

Definition at line 257 of file ruleAppObj2D.cpp.

Definition at line 485 of file ruleAppObj2D.cpp.

Definition at line 545 of file ruleAppObj2D.cpp.

Definition at line 446 of file ruleAppObj2D.cpp.

Definition at line 409 of file ruleAppObj2D.cpp.

Definition at line 366 of file ruleAppObj2D.cpp.

Definition at line 336 of file ruleAppObj2D.cpp.

Definition at line 315 of file ruleAppObj2D.cpp.

Definition at line 283 of file ruleAppObj2D.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines