Question: Python Problem 4. (Programming problem: Sweeping Trazepoidation algorithm, related to E2.9). In this exercise, youwll write functions that are used as part of the Sweeping

Python Problem

Python Problem 4. (Programming problem: Sweeping Trazepoidation algorithm, related to E2.9). In

4. (Programming problem: Sweeping Trazepoidation algorithm, related to E2.9). In this exercise, youwll write functions that are used as part of the Sweeping Trapezoidation algorithm. Recall the input to this algorithm is a rectangular workspace with a polygonal obstacle described by a counter-clockwise se- quence of vertices). For simplicity assume that the polygonal obstacles do not overlap, their boundaries are non-vertical, non-horizontal segments, and they are strictly inside the rectangular workspace (a) For each obstacle vertex, v write a function that classifies it into the 6 possible types. (Step 6.1 in the lecture notes) Example: where W is the rectangular workspace. P 110.5, 0.5, 10.8, 0.31, 10.8, 0.81, 10.4, 0.911 P is a polygon which can have arbitrary number of vertices. v [0.5,0.5 Test vertex of the polygon type computeTypeSweepingTrapezoidation(W, P, v) type-6 4. (Programming problem: Sweeping Trazepoidation algorithm, related to E2.9). In this exercise, youwll write functions that are used as part of the Sweeping Trapezoidation algorithm. Recall the input to this algorithm is a rectangular workspace with a polygonal obstacle described by a counter-clockwise se- quence of vertices). For simplicity assume that the polygonal obstacles do not overlap, their boundaries are non-vertical, non-horizontal segments, and they are strictly inside the rectangular workspace (a) For each obstacle vertex, v write a function that classifies it into the 6 possible types. (Step 6.1 in the lecture notes) Example: where W is the rectangular workspace. P 110.5, 0.5, 10.8, 0.31, 10.8, 0.81, 10.4, 0.911 P is a polygon which can have arbitrary number of vertices. v [0.5,0.5 Test vertex of the polygon type computeTypeSweepingTrapezoidation(W, P, v) type-6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!