96b02c11646df43b5d633a1edf01f3360178b1c3,pyroomacoustics/tests/test_geometry_routines.py,TestGeometryRoutines,test_intersectionSegmentPolygonSurface_touching,#TestGeometryRoutines#,92
Before Change
def test_intersectionSegmentPolygonSurface_touching(self):
wall = pra.Wall([[0, 4, 4, 0], [0, 0, 4, 4], [0, 0, 0, 0]])
p, endOfSegment, onBorder = pra.geometry.intersection_segment_polygon_surface([2, 2, 2], [2, 2, 0], wall.corners_2d, wall.normal,
wall.plane_point, wall.plane_basis)
i = all(p==[2, 2, 0])
self.assertTrue(all([i, endOfSegment, not onBorder]))
def test_intersectionSegmentPolygonSurface_border(self):
wall = pra.Wall([[0, 4, 4, 0], [0, 0, 4, 4], [0, 0, 0, 0]])
After Change
def test_intersectionSegmentPolygonSurface_touching(self):
wall = pra.libroom.Wall([[0, 4, 4, 0], [0, 0, 4, 4], [0, 0, 0, 0]])
p = np.zeros(3, dtype=np.float32)
ret = wall.intersection([2,2,2], [2,2,0], p)
i = np.allclose(p, np.r_[2,2,0])
self.assertTrue(all([i, ret == pra.libroom.Wall.Isect.ENDPT]))
def test_intersectionSegmentPolygonSurface_border(self):
wall = pra.libroom.Wall([[0, 4, 4, 0], [0, 0, 4, 4], [0, 0, 0, 0]])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 18
Instances
Project Name: LCAV/pyroomacoustics
Commit Name: 96b02c11646df43b5d633a1edf01f3360178b1c3
Time: 2018-11-21
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: 96b02c11646df43b5d633a1edf01f3360178b1c3
Time: 2018-11-21
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: 96b02c11646df43b5d633a1edf01f3360178b1c3
Time: 2018-11-21
Author: fakufaku@gmail.com
File Name: pyroomacoustics/tests/test_geometry_routines.py
Class Name: TestGeometryRoutines
Method Name: test_intersectionSegmentPolygonSurface_through
Project Name: LCAV/pyroomacoustics
Commit Name: 96b02c11646df43b5d633a1edf01f3360178b1c3
Time: 2018-11-21
Author: fakufaku@gmail.com
File Name: pyroomacoustics/tests/test_geometry_routines.py
Class Name: TestGeometryRoutines
Method Name: test_intersectionSegmentPolygonSurface_border