mirror of
				https://github.com/jhasse/poly2tri.git
				synced 2025-10-31 04:27:09 +01:00 
			
		
		
		
	Actually throw exceptions
This commit is contained in:
		| @@ -123,8 +123,7 @@ void Sweep::EdgeEvent(SweepContext& tcx, Point& ep, Point& eq, Triangle* triangl | ||||
|       triangle = &triangle->NeighborAcross(point); | ||||
|       EdgeEvent( tcx, ep, *p1, triangle, *p1 ); | ||||
|     } else { | ||||
|       std::runtime_error("EdgeEvent - collinear points not supported"); | ||||
|       assert(0); | ||||
|       throw std::runtime_error("EdgeEvent - collinear points not supported"); | ||||
|     } | ||||
|     return; | ||||
|   } | ||||
| @@ -140,8 +139,7 @@ void Sweep::EdgeEvent(SweepContext& tcx, Point& ep, Point& eq, Triangle* triangl | ||||
|       triangle = &triangle->NeighborAcross(point); | ||||
|       EdgeEvent( tcx, ep, *p2, triangle, *p2 ); | ||||
|     } else { | ||||
|       std::runtime_error("EdgeEvent - collinear points not supported"); | ||||
|       assert(0); | ||||
|       throw std::runtime_error("EdgeEvent - collinear points not supported"); | ||||
|     } | ||||
|     return; | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Pierre Dejoue
					Pierre Dejoue