示例#1
0
def test_search_within_Radius_2():
    testpoint = VecD3()
    testpoint[0] = 0.0
    testpoint[1] = 0.0
    testpoint[2] = 0.0
    radius = 0.03
    nodeList = vectorInt()
    octree.getNodes(testpoint, radius, nodeList)
    nNode = nodeList.size()
    assert nNode == 3
    assert nodeList[0] == 1088
    assert nodeList[1] == 1120
    assert nodeList[2] == 1023
示例#2
0
def test_search_within_Radius_2():
    testpoint = VecD3()
    testpoint[0] = 0.0
    testpoint[1] = 0.0
    testpoint[2] = 0.0
    radius = 0.03
    nodeList = vectorInt()
    octree.getNodes(testpoint, radius, nodeList)
    nNode = nodeList.size()
    assert nNode == 3
    assert nodeList[0] == 1088
    assert nodeList[1] == 1120
    assert nodeList[2] == 1023
示例#3
0
def test_search_within_Radius_1():
    testpoint = VecD3()
    testpoint[0] = 0.5
    testpoint[1] = 0.5
    testpoint[2] = 0.0
    radius = 0.03
    nodeList = vectorInt()
    octree.getNodes(testpoint, radius, nodeList)
    nNode = nodeList.size()
    assert nNode == 4
    assert nodeList[0] == 528
    assert nodeList[1] == 496
    assert nodeList[2] == 527
    assert nodeList[3] == 495
示例#4
0
def test_search_within_Radius_1():
    testpoint = VecD3()
    testpoint[0] = 0.5
    testpoint[1] = 0.5
    testpoint[2] = 0.0
    radius = 0.03
    nodeList = vectorInt()
    octree.getNodes(testpoint, radius, nodeList)
    nNode = nodeList.size()
    assert nNode == 4
    assert nodeList[0] == 528
    assert nodeList[1] == 496
    assert nodeList[2] == 527
    assert nodeList[3] == 495