cc04068cc17b6e616f80fc69e550d671fba99b0a,pyroomacoustics/tests/test_geometry_routines.py,TestGeometryRoutines,test_intersectionSegmentPolygonSurface_miss,#TestGeometryRoutines#,100

Before Change


        self.assertTrue(all([i, not endOfSegment, onBorder]))

    def test_intersectionSegmentPolygonSurface_miss(self):
        p, endOfSegment, onBorder = pra.geometry.intersectionSegmentPolygonSurface([-1, -1, 2], [-1, -1, -2], [[0, 4, 4, 0], [0, 0, 4, 4], [0, 0, 0, 0]], [0, 0, -1])
        i = p is None
        self.assertTrue(all([i, not endOfSegment, not onBorder]))
        

After Change


        self.assertTrue(all([i, not endOfSegment, onBorder]))

    def test_intersectionSegmentPolygonSurface_miss(self):
        wall = pra.Wall([[0, 4, 4, 0], [0, 0, 4, 4], [0, 0, 0, 0]])
        p, endOfSegment, onBorder = pra.geometry.intersectionSegmentPolygonSurface([-1, -1, 2], [-1, -1, -2], wall.corners_2d, wall.normal,
                wall.plane_point, wall.plane_basis)
        i = p is None
        self.assertTrue(all([i, not endOfSegment, not onBorder]))
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: LCAV/pyroomacoustics
Commit Name: cc04068cc17b6e616f80fc69e550d671fba99b0a
Time: 2017-02-13
Author: fakufaku@gmail.com
File Name: pyroomacoustics/tests/test_geometry_routines.py
Class Name: TestGeometryRoutines
Method Name: test_intersectionSegmentPolygonSurface_miss


Project Name: LCAV/pyroomacoustics
Commit Name: cc04068cc17b6e616f80fc69e550d671fba99b0a
Time: 2017-02-13
Author: fakufaku@gmail.com
File Name: pyroomacoustics/tests/test_geometry_routines.py
Class Name: TestGeometryRoutines
Method Name: test_intersectionSegmentPolygonSurface_border


Project Name: LCAV/pyroomacoustics
Commit Name: cc04068cc17b6e616f80fc69e550d671fba99b0a
Time: 2017-02-13
Author: fakufaku@gmail.com
File Name: pyroomacoustics/tests/test_geometry_routines.py
Class Name: TestGeometryRoutines
Method Name: test_intersectionSegmentPolygonSurface_miss


Project Name: LCAV/pyroomacoustics
Commit Name: cc04068cc17b6e616f80fc69e550d671fba99b0a
Time: 2017-02-13
Author: fakufaku@gmail.com
File Name: pyroomacoustics/tests/test_geometry_routines.py
Class Name: TestGeometryRoutines
Method Name: test_intersectionSegmentPolygonSurface_touching


Project Name: LCAV/pyroomacoustics
Commit Name: cc04068cc17b6e616f80fc69e550d671fba99b0a
Time: 2017-02-13
Author: fakufaku@gmail.com
File Name: pyroomacoustics/tests/test_geometry_routines.py
Class Name: TestGeometryRoutines
Method Name: test_intersectionSegmentPolygonSurface_through