Question

Clipping: When a polygon P is clipped against a rectangular window, a new polygon CP is...

  • Clipping: When a polygon P is clipped against a rectangular window, a new polygon CP is obtained, which may have a more or fewer vertices than P.

    1. If P is a triangle, how many vertices will CP have, at most?

    2. If P is a quadrilateral, how many vertices will CP have, at most? (P could be non-convex!)

    3. If P is convex and has n>4 vertices, how many will CP have, at most?

    4. If P is convex and has n>4 vertices, how many will CP have, at LEAST? (Assume P is not trivially clipped, i.e., part of P is wholly inside the window and part is wholly outside).

Homework Answers

Answer #1

Answer a

Maximum vertices in CP can be achieved when P is overlapping to all sides of rectangle. Answer is 7

Answer b

Maximum vertices in CP can be achieved when quadrilateral P is overlapping to all sides of rectangle. Answer is 8

Answer c

Maximum vertices in CP can be achieved when convex P is overlapping to all sides of rectangle. Answer is n+4

Answer d

Minimum vertices in CP can be achieved when convex P is overlapping to only two sides of rectangle. Answer is 3

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1. The total world population is forecast to be P(t) = 0.00073t3 − 0.072t2 + 0.9t...
1. The total world population is forecast to be P(t) = 0.00073t3 − 0.072t2 + 0.9t + 6.04    (0 ≤ t ≤ 10) in year t, where t is measured in decades, with t = 0 corresponding to 2000 and P(t) is measured in billions. a. World population is forecast to peak in what year? Hint: Use the quadratic formula. (Remember that t is in decades and not in years. Round your answer down to the nearest year.) ________ b. At...
1) When we fit a model to data, which is typically larger? a) Test Error b)...
1) When we fit a model to data, which is typically larger? a) Test Error b) Training Error 2) What are reasons why test error could be LESS than training error? (Pick all that applies) a) By chance, the test set has easier cases than the training set. b) The model is highly complex, so training error systematically overestimates test error c) The model is not very complex, so training error systematically overestimates test error 3) Suppose we want to...
Fueling Indonesians: Window of Opportunity or Regret? Kerosene is widely used as cooking fuel by Indonesian...
Fueling Indonesians: Window of Opportunity or Regret? Kerosene is widely used as cooking fuel by Indonesian households, with an annual usage of 10 million Kiloliters. It is a major subsidized fuel for household cooking, where its usage is over sixty percent of the 230 million population. The subsidy program costs the government heavily, where it amounts up to U.S.$4 billion a year. As the practice tends to bleed government expenditures quite heavily, the Indonesian government is embarking on a change...
New Wave Music New Wave Music is an international company that develops music software that is...
New Wave Music New Wave Music is an international company that develops music software that is used to compose music, play recordings in clubs, and produce albums. Founder and CEO Moritz Halbach is the company’s biggest fan. He said “I started this company from nothing, just me, my ideas, and my computer. I love music---love playing music, love writing programs for making music, love listening to music---and the money is nice, too.” Moritz says that he never wanted to work...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>All Pets Veterinary Hospital</title> <style> body { font-family: arial,...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>All Pets Veterinary Hospital</title> <style> body { font-family: arial, sans-serif; font-size: 100%; } /* outer container */    #wrapper { width: 960px; margin: 50px auto; padding: 0px; background-color: rgb(255, 255, 255); /* white */ border: 1px solid #000; /* black */ }    header h1 { text-align: center; }    nav { text-align: center; background: rgb(175, 196, 206); }    address figure { text-align: center; } </style> </head> <body> <div id="wrapper"> <!-- outer...
1.What is the major component of blood plasma? a Nutrients b Ions c Water d Gases...
1.What is the major component of blood plasma? a Nutrients b Ions c Water d Gases 2. How many layers of phospholipids does the cell membrane contain? a 1 b 2 c 4 d 3 3. Which substance stores polysaccharides in plants? a Sucrose b Glycogen c Glucose d Cellulose 4. An important concept in DNA and RNA structure is complementary base pairing. Which tow bases are incorrectly paired? a T-U b A-T c C-G d A-U 5. If the...
A crisis needs a firewall not a ringfence By Alistair Darling Fortunately I’ve only ever had...
A crisis needs a firewall not a ringfence By Alistair Darling Fortunately I’ve only ever had to take one telephone call that made my blood run cold. On the morning of October 7, 2008, Sir Tom McKillop, the then chairman of Royal Bank of Scotland, called me to say that his bank was fast running out of money. He asked me what I was going to do about it. This was three weeks after the collapse of Lehman Brothers. The...
1.A fair die is rolled once, and the number score is noted. Let the random variable...
1.A fair die is rolled once, and the number score is noted. Let the random variable X be twice this score. Define the variable Y to be zero if an odd number appears and X otherwise. By finding the probability mass function in each case, find the expectation of the following random variables: Please answer to 3 decimal places. Part a)X Part b)Y Part c)X+Y Part d)XY ——- 2.To examine the effectiveness of its four annual advertising promotions, a mail...
Discussion Topic: Use “Euro-Disney Stumbles” (p. 130) from the textbook. (Adams & Galanes) The third dimension...
Discussion Topic: Use “Euro-Disney Stumbles” (p. 130) from the textbook. (Adams & Galanes) The third dimension is that of context. In a low-context culture, such as that of the United States and New Zealand, the verbal part of the message carries the meaning—what you say is exactly what you mean. If you say that you like my proposal, I can trust the fact that you really do like it. In a high-context culture, such as most Asian and Native American...
When is a hypothesis considered scientific? a. when it is based on something other than observation...
When is a hypothesis considered scientific? a. when it is based on something other than observation b. when it can be tested and is refutable c. when it relies on anecdotal evidence d. when it relies on mystical explanations e. All hypotheses are considered scientific until experiments determine otherwise. 3. Of the following, which is the earliest step in the scientific process? a. generating a hypothesis b. analyzing data c. conducting an experiment d. drawing a conclusion e. developing a...