Back to index

salome-med  6.5.0
Public Member Functions | Protected Attributes | Private Member Functions
INTERP_TEST::MultiElement2DTests Class Reference

Class testing algorithm by intersecting meshes of several polygonal elements - up to a few thousand. More...

#include <MultiElement2DTests.hxx>

Inheritance diagram for INTERP_TEST::MultiElement2DTests:
Inheritance graph
[legend]
Collaboration diagram for INTERP_TEST::MultiElement2DTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void SymetryTranspose2DTest ()
void SelfIntersection2DTest ()
void SymetryTranspose3DSurfTest ()
void SelfIntersection3DSurfTest ()
void setUp ()
 Sets up the test suite.
void tearDown ()
 Cleans up after the test suite.
void setUp ()
 Sets up the test suite.
void tearDown ()
 Cleans up after the test suite.

Protected Attributes

MeshTestToolkit< SPACEDIM,
MESHDIM > * 
_testTools
 MeshTestToolkit object to which the tests are delegated.
MeshTestToolkit< SPACEDIM,
MESHDIM > * 
_testTools
 MeshTestToolkit object to which the tests are delegated.

Private Member Functions

 CPPUNIT_TEST_SUITE (MultiElement2DTests)
 CPPUNIT_TEST (SymetryTranspose2DTest)
 CPPUNIT_TEST (SelfIntersection2DTest)
 CPPUNIT_TEST_SUITE_END ()
 CPPUNIT_TEST_SUITE (MultiElement3DSurfTests)
 CPPUNIT_TEST (SymetryTranspose3DSurfTest)
 CPPUNIT_TEST (SelfIntersection3DSurfTest)
 CPPUNIT_TEST_SUITE_END ()

Detailed Description

Class testing algorithm by intersecting meshes of several polygonal elements - up to a few thousand.

This serves to check the filtering methods and the matrix assemblage, as well as verifying that computation errors do not become unmanageable. It uses mehes of different geometries : triangle, quadrilateral.

Definition at line 35 of file MultiElement2DTests.hxx.


Member Function Documentation

INTERP_TEST::MultiElement2DTests::CPPUNIT_TEST_SUITE ( MultiElement3DSurfTests  ) [private]

Definition at line 52 of file MultiElement2DTests.hxx.

    { 
      IntersectionMatrix m;
      _testTools->_intersectionType=INTERP_KERNEL::Triangulation;
      _testTools->calcIntersectionMatrix("square1.med", "Mesh_2","square1.med","Mesh_2", m);
      _testTools->_intersectionType=INTERP_KERNEL::Convex;
      _testTools->calcIntersectionMatrix("square1.med", "Mesh_2","square1.med","Mesh_2", m);
    }

Definition at line 52 of file MultiElement3DSurfTests.hxx.

    { 
      IntersectionMatrix m;
      _testTools->_intersectionType=INTERP_KERNEL::Triangulation;
      _testTools->calcIntersectionMatrix("square1.med", "Mesh_2","square1.med","Mesh_2", m);
      _testTools->_intersectionType=INTERP_KERNEL::Convex;
      _testTools->calcIntersectionMatrix("square1.med", "Mesh_2","square1.med","Mesh_2", m);
    }
void INTERP_TEST::InterpolationTestSuite< SPACEDIM, MESHDIM >::setUp ( ) [inline, inherited]

Sets up the test suite.

Creates the MeshTestToolkit object used by the tests.

Definition at line 44 of file InterpolationTestSuite.hxx.

    {
      _testTools = new MeshTestToolkit<SPACEDIM,MESHDIM>();
    }
void INTERP_TEST::InterpolationTestSuite< SPACEDIM, MESHDIM >::setUp ( ) [inline, inherited]

Sets up the test suite.

Creates the MeshTestToolkit object used by the tests.

Definition at line 44 of file InterpolationTestSuite.hxx.

    {
      _testTools = new MeshTestToolkit<SPACEDIM,MESHDIM>();
    }

Definition at line 45 of file MultiElement2DTests.hxx.

    { 
      _testTools->_intersectionType=INTERP_KERNEL::Triangulation;
      _testTools->intersectMeshes("square1.med", "Mesh_2","square2.med","Mesh_3", 10000.);
      _testTools->_intersectionType=INTERP_KERNEL::Convex;
      _testTools->intersectMeshes("square1.med", "Mesh_2","square2.med","Mesh_3", 10000.);
    }

Definition at line 45 of file MultiElement3DSurfTests.hxx.

    { 
      _testTools->_intersectionType=INTERP_KERNEL::Triangulation;
      _testTools->intersectMeshes("square1.med", "Mesh_2","square2.med","Mesh_3", 10000.);
      _testTools->_intersectionType=INTERP_KERNEL::Convex;
      _testTools->intersectMeshes("square1.med", "Mesh_2","square2.med","Mesh_3", 10000.);
    }
void INTERP_TEST::InterpolationTestSuite< SPACEDIM, MESHDIM >::tearDown ( ) [inline, inherited]

Cleans up after the test suite.

Liberates the MeshTestToolkit object used by the tests.

Definition at line 53 of file InterpolationTestSuite.hxx.

    {
      delete _testTools;
    }
void INTERP_TEST::InterpolationTestSuite< SPACEDIM, MESHDIM >::tearDown ( ) [inline, inherited]

Cleans up after the test suite.

Liberates the MeshTestToolkit object used by the tests.

Definition at line 53 of file InterpolationTestSuite.hxx.

    {
      delete _testTools;
    }

Member Data Documentation

MeshTestToolkit<SPACEDIM,MESHDIM>* INTERP_TEST::InterpolationTestSuite< SPACEDIM, MESHDIM >::_testTools [protected, inherited]

MeshTestToolkit object to which the tests are delegated.

Definition at line 62 of file InterpolationTestSuite.hxx.

MeshTestToolkit<SPACEDIM,MESHDIM>* INTERP_TEST::InterpolationTestSuite< SPACEDIM, MESHDIM >::_testTools [protected, inherited]

MeshTestToolkit object to which the tests are delegated.

Definition at line 62 of file InterpolationTestSuite.hxx.


The documentation for this class was generated from the following files: