Пример #1
0
    /// Test isPointInPlane computation with a simple example
    void isPointInPlaneTest()
    {
        m_node2->getChild("node")->getObject("PlaneROI")->findData("position")->read("1. 0. 0. 1. 1. 0. -1 0 0");
        m_node2->getChild("node")->getObject("PlaneROI")->init();

        EXPECT_EQ(m_node2->getChild("node")->getObject("PlaneROI")->findData("indices")->getValueString(),"0 1");
    }
Пример #2
0
    /// Test isTetrahedraInPlane computation with a simple example
    void isTetrahedraInPlaneTest()
    {
        m_node2->getChild("node")->getObject("PlaneROI")->findData("position")->read("0. 0. 0. 1. 0. 0. 1. 1. 0. 1. 0. 1. 3. 0. 0.");
        m_node2->getChild("node")->getObject("PlaneROI")->findData("tetrahedra")->read("0 1 2 3 1 2 4 3");
        m_node2->getChild("node")->getObject("PlaneROI")->init();

        EXPECT_EQ(m_node2->getChild("node")->getObject("PlaneROI")->findData("tetrahedronIndices")->getValueString(),"0");
        EXPECT_EQ(m_node2->getChild("node")->getObject("PlaneROI")->findData("tetrahedraInROI")->getValueString(),"0 1 2 3");
    }
Пример #3
0
    /// Test isTriangleInPlane computation with a simple example
    void isTriangleInPlaneTest()
    {
        m_node2->getChild("node")->getObject("PlaneROI")->findData("position")->read("0. 0. 0. 1. 0. 0. 1. 1. 0. 3. 0. 0.");
        m_node2->getChild("node")->getObject("PlaneROI")->findData("triangles")->read("0 1 2 1 3 2");
        m_node2->getChild("node")->getObject("PlaneROI")->init();

        EXPECT_EQ(m_node2->getChild("node")->getObject("PlaneROI")->findData("triangleIndices")->getValueString(),"0");
        EXPECT_EQ(m_node2->getChild("node")->getObject("PlaneROI")->findData("trianglesInROI")->getValueString(),"0 1 2");
    }