SlideShare a Scribd company logo
Estimate the time needed for the Point in Polyhedron test for a polyhedron with v vertices, e
edges, and f faces? Please explain in details.
THIS IS WHAT I KNOW.
The line L intersects P if and only if there is a face F that has a point q in common with L. On the
plane containing the face F, + defines a ray beginning at q. This ray intersects F in an odd
number of sides, since q lies inside F. It follows that + intersects an odd number of edges
bounding F.
If, however, the line and a face do not intersect, the half-plane can intersect only an even number
of edges of this face. This proves the theorem.
This theorem provides the basis for the following algorithm which solves the intersection of a
line and a polyhedron problem.
Consider an edge of P and test for intersection with +. If the edge and the half-plane have only
one point in common, then the counters for the two faces containing the edge are incremented by
1 (the counters for the faces of P are initially zeroed.) If after all of the edges have been tested at
least one of the counters has an odd value, then L and P intersect.
This algorithm is based on a simple test for the intersection of an edge (line segment) and a half-
plane.
Consider a point p and a polyhedron P. Take an arbitrary line L passing through p and an
arbitrary plane passing through L. Let L+ denote one of the parts of L divided by p, and let + be
one of the half-planes obtained by dividing with L. We say that an edge e of P is marked if +
intersects e and only one of the two planes of faces of P that share e intersects L+. Suppose +
does not pass through vertices of P.
Then p belongs to P if and only if the number of marked edges is odd, and p lies outside P if this
number is even.
Solution
and look at the network we get after performing Step 1 just once. Now, by drawing a diagonal
we added one edge. Our original face has become two faces, so we have added one to the
number of faces. We haven't changed the number of vertices. The network now has V vertices,
E + 1 edges and F + 1 faces. So how has V - E + F changed after we performed Step 1 once?
Using what we know about the changes in V, E and F we can see that V - E + F has become V -
(E + 1) + (F + 1). Now we have
V - (E + 1) + (F + 1) = V - E - 1 + F + 1 = V - E + F.

More Related Content

More from arjuncollection

In the negative feedback control system of the papillary light refle.pdf
In the negative feedback control system of the papillary light refle.pdfIn the negative feedback control system of the papillary light refle.pdf
In the negative feedback control system of the papillary light refle.pdf
arjuncollection
 
images of a Hindu deity such as Shiva, Vishnu, Kali, Ganesh, or any .pdf
images of a Hindu deity such as Shiva, Vishnu, Kali, Ganesh, or any .pdfimages of a Hindu deity such as Shiva, Vishnu, Kali, Ganesh, or any .pdf
images of a Hindu deity such as Shiva, Vishnu, Kali, Ganesh, or any .pdf
arjuncollection
 
Identify each of the enzymes involved in DNA replication and whether.pdf
Identify each of the enzymes involved in DNA replication and whether.pdfIdentify each of the enzymes involved in DNA replication and whether.pdf
Identify each of the enzymes involved in DNA replication and whether.pdf
arjuncollection
 
How and what do sea stars eatSolutionSea Star eat clams, oyste.pdf
How and what do sea stars eatSolutionSea Star eat clams, oyste.pdfHow and what do sea stars eatSolutionSea Star eat clams, oyste.pdf
How and what do sea stars eatSolutionSea Star eat clams, oyste.pdf
arjuncollection
 
Discuss the binary representation of Char strings. What makes th.pdf
Discuss the binary representation of Char strings. What makes th.pdfDiscuss the binary representation of Char strings. What makes th.pdf
Discuss the binary representation of Char strings. What makes th.pdf
arjuncollection
 
Describe a possible difference in the DNA content of chromosome 1.pdf
Describe a possible difference in the DNA content of chromosome 1.pdfDescribe a possible difference in the DNA content of chromosome 1.pdf
Describe a possible difference in the DNA content of chromosome 1.pdf
arjuncollection
 
Consider the following function. Find the inverse function State the.pdf
Consider the following function.  Find the inverse function State the.pdfConsider the following function.  Find the inverse function State the.pdf
Consider the following function. Find the inverse function State the.pdf
arjuncollection
 
Compare and contrast the ideas that led to the Bohr model of the ato.pdf
Compare and contrast the ideas that led to the Bohr model of the ato.pdfCompare and contrast the ideas that led to the Bohr model of the ato.pdf
Compare and contrast the ideas that led to the Bohr model of the ato.pdf
arjuncollection
 
Blackboard Learn Realtor Rite Aid Citizens Bank peoples CPOBIE UI.pdf
Blackboard Learn Realtor Rite Aid Citizens Bank peoples CPOBIE UI.pdfBlackboard Learn Realtor Rite Aid Citizens Bank peoples CPOBIE UI.pdf
Blackboard Learn Realtor Rite Aid Citizens Bank peoples CPOBIE UI.pdf
arjuncollection
 
According to the Shannon-Hartley theorem, the capacity of a communic.pdf
According to the Shannon-Hartley theorem, the capacity of a communic.pdfAccording to the Shannon-Hartley theorem, the capacity of a communic.pdf
According to the Shannon-Hartley theorem, the capacity of a communic.pdf
arjuncollection
 
A fellow student, one that is not as careful as you, finds the follow.pdf
A fellow student, one that is not as careful as you, finds the follow.pdfA fellow student, one that is not as careful as you, finds the follow.pdf
A fellow student, one that is not as careful as you, finds the follow.pdf
arjuncollection
 
2. There are special proteins (called transporters) that are able to.pdf
2. There are special proteins (called transporters) that are able to.pdf2. There are special proteins (called transporters) that are able to.pdf
2. There are special proteins (called transporters) that are able to.pdf
arjuncollection
 
A bacterium that has flagella arranged as a tuft at one end of the b.pdf
A bacterium that has flagella arranged as a tuft at one end of the b.pdfA bacterium that has flagella arranged as a tuft at one end of the b.pdf
A bacterium that has flagella arranged as a tuft at one end of the b.pdf
arjuncollection
 
11. Recessive epistasis is described by all of the following EXCEPT.pdf
11. Recessive epistasis is described by all of the following EXCEPT.pdf11. Recessive epistasis is described by all of the following EXCEPT.pdf
11. Recessive epistasis is described by all of the following EXCEPT.pdf
arjuncollection
 
Write complete VHDL codes for the following schematic. Solution.pdf
Write complete VHDL codes for the following schematic.  Solution.pdfWrite complete VHDL codes for the following schematic.  Solution.pdf
Write complete VHDL codes for the following schematic. Solution.pdf
arjuncollection
 
Why do carrier-mediated processes become saturated (choose the best .pdf
Why do carrier-mediated processes become saturated (choose the best .pdfWhy do carrier-mediated processes become saturated (choose the best .pdf
Why do carrier-mediated processes become saturated (choose the best .pdf
arjuncollection
 
Why is it that linked lists are better when it comes to needing freq.pdf
Why is it that linked lists are better when it comes to needing freq.pdfWhy is it that linked lists are better when it comes to needing freq.pdf
Why is it that linked lists are better when it comes to needing freq.pdf
arjuncollection
 
Which of the following isare characteristic of the parasympathetic .pdf
Which of the following isare characteristic of the parasympathetic .pdfWhich of the following isare characteristic of the parasympathetic .pdf
Which of the following isare characteristic of the parasympathetic .pdf
arjuncollection
 
What statistic is often interpreted as providing an estimate of the .pdf
What statistic is often interpreted as providing an estimate of the .pdfWhat statistic is often interpreted as providing an estimate of the .pdf
What statistic is often interpreted as providing an estimate of the .pdf
arjuncollection
 
The waiting time X until delivery of a new component for an indus.pdf
The waiting time X until delivery of a new component for an indus.pdfThe waiting time X until delivery of a new component for an indus.pdf
The waiting time X until delivery of a new component for an indus.pdf
arjuncollection
 

More from arjuncollection (20)

In the negative feedback control system of the papillary light refle.pdf
In the negative feedback control system of the papillary light refle.pdfIn the negative feedback control system of the papillary light refle.pdf
In the negative feedback control system of the papillary light refle.pdf
 
images of a Hindu deity such as Shiva, Vishnu, Kali, Ganesh, or any .pdf
images of a Hindu deity such as Shiva, Vishnu, Kali, Ganesh, or any .pdfimages of a Hindu deity such as Shiva, Vishnu, Kali, Ganesh, or any .pdf
images of a Hindu deity such as Shiva, Vishnu, Kali, Ganesh, or any .pdf
 
Identify each of the enzymes involved in DNA replication and whether.pdf
Identify each of the enzymes involved in DNA replication and whether.pdfIdentify each of the enzymes involved in DNA replication and whether.pdf
Identify each of the enzymes involved in DNA replication and whether.pdf
 
How and what do sea stars eatSolutionSea Star eat clams, oyste.pdf
How and what do sea stars eatSolutionSea Star eat clams, oyste.pdfHow and what do sea stars eatSolutionSea Star eat clams, oyste.pdf
How and what do sea stars eatSolutionSea Star eat clams, oyste.pdf
 
Discuss the binary representation of Char strings. What makes th.pdf
Discuss the binary representation of Char strings. What makes th.pdfDiscuss the binary representation of Char strings. What makes th.pdf
Discuss the binary representation of Char strings. What makes th.pdf
 
Describe a possible difference in the DNA content of chromosome 1.pdf
Describe a possible difference in the DNA content of chromosome 1.pdfDescribe a possible difference in the DNA content of chromosome 1.pdf
Describe a possible difference in the DNA content of chromosome 1.pdf
 
Consider the following function. Find the inverse function State the.pdf
Consider the following function.  Find the inverse function State the.pdfConsider the following function.  Find the inverse function State the.pdf
Consider the following function. Find the inverse function State the.pdf
 
Compare and contrast the ideas that led to the Bohr model of the ato.pdf
Compare and contrast the ideas that led to the Bohr model of the ato.pdfCompare and contrast the ideas that led to the Bohr model of the ato.pdf
Compare and contrast the ideas that led to the Bohr model of the ato.pdf
 
Blackboard Learn Realtor Rite Aid Citizens Bank peoples CPOBIE UI.pdf
Blackboard Learn Realtor Rite Aid Citizens Bank peoples CPOBIE UI.pdfBlackboard Learn Realtor Rite Aid Citizens Bank peoples CPOBIE UI.pdf
Blackboard Learn Realtor Rite Aid Citizens Bank peoples CPOBIE UI.pdf
 
According to the Shannon-Hartley theorem, the capacity of a communic.pdf
According to the Shannon-Hartley theorem, the capacity of a communic.pdfAccording to the Shannon-Hartley theorem, the capacity of a communic.pdf
According to the Shannon-Hartley theorem, the capacity of a communic.pdf
 
A fellow student, one that is not as careful as you, finds the follow.pdf
A fellow student, one that is not as careful as you, finds the follow.pdfA fellow student, one that is not as careful as you, finds the follow.pdf
A fellow student, one that is not as careful as you, finds the follow.pdf
 
2. There are special proteins (called transporters) that are able to.pdf
2. There are special proteins (called transporters) that are able to.pdf2. There are special proteins (called transporters) that are able to.pdf
2. There are special proteins (called transporters) that are able to.pdf
 
A bacterium that has flagella arranged as a tuft at one end of the b.pdf
A bacterium that has flagella arranged as a tuft at one end of the b.pdfA bacterium that has flagella arranged as a tuft at one end of the b.pdf
A bacterium that has flagella arranged as a tuft at one end of the b.pdf
 
11. Recessive epistasis is described by all of the following EXCEPT.pdf
11. Recessive epistasis is described by all of the following EXCEPT.pdf11. Recessive epistasis is described by all of the following EXCEPT.pdf
11. Recessive epistasis is described by all of the following EXCEPT.pdf
 
Write complete VHDL codes for the following schematic. Solution.pdf
Write complete VHDL codes for the following schematic.  Solution.pdfWrite complete VHDL codes for the following schematic.  Solution.pdf
Write complete VHDL codes for the following schematic. Solution.pdf
 
Why do carrier-mediated processes become saturated (choose the best .pdf
Why do carrier-mediated processes become saturated (choose the best .pdfWhy do carrier-mediated processes become saturated (choose the best .pdf
Why do carrier-mediated processes become saturated (choose the best .pdf
 
Why is it that linked lists are better when it comes to needing freq.pdf
Why is it that linked lists are better when it comes to needing freq.pdfWhy is it that linked lists are better when it comes to needing freq.pdf
Why is it that linked lists are better when it comes to needing freq.pdf
 
Which of the following isare characteristic of the parasympathetic .pdf
Which of the following isare characteristic of the parasympathetic .pdfWhich of the following isare characteristic of the parasympathetic .pdf
Which of the following isare characteristic of the parasympathetic .pdf
 
What statistic is often interpreted as providing an estimate of the .pdf
What statistic is often interpreted as providing an estimate of the .pdfWhat statistic is often interpreted as providing an estimate of the .pdf
What statistic is often interpreted as providing an estimate of the .pdf
 
The waiting time X until delivery of a new component for an indus.pdf
The waiting time X until delivery of a new component for an indus.pdfThe waiting time X until delivery of a new component for an indus.pdf
The waiting time X until delivery of a new component for an indus.pdf
 

Recently uploaded

Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 

Recently uploaded (20)

Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 

Estimate the time needed for the Point in Polyhedron test for a poly.pdf

  • 1. Estimate the time needed for the Point in Polyhedron test for a polyhedron with v vertices, e edges, and f faces? Please explain in details. THIS IS WHAT I KNOW. The line L intersects P if and only if there is a face F that has a point q in common with L. On the plane containing the face F, + defines a ray beginning at q. This ray intersects F in an odd number of sides, since q lies inside F. It follows that + intersects an odd number of edges bounding F. If, however, the line and a face do not intersect, the half-plane can intersect only an even number of edges of this face. This proves the theorem. This theorem provides the basis for the following algorithm which solves the intersection of a line and a polyhedron problem. Consider an edge of P and test for intersection with +. If the edge and the half-plane have only one point in common, then the counters for the two faces containing the edge are incremented by 1 (the counters for the faces of P are initially zeroed.) If after all of the edges have been tested at least one of the counters has an odd value, then L and P intersect. This algorithm is based on a simple test for the intersection of an edge (line segment) and a half- plane. Consider a point p and a polyhedron P. Take an arbitrary line L passing through p and an arbitrary plane passing through L. Let L+ denote one of the parts of L divided by p, and let + be one of the half-planes obtained by dividing with L. We say that an edge e of P is marked if + intersects e and only one of the two planes of faces of P that share e intersects L+. Suppose + does not pass through vertices of P. Then p belongs to P if and only if the number of marked edges is odd, and p lies outside P if this number is even. Solution and look at the network we get after performing Step 1 just once. Now, by drawing a diagonal we added one edge. Our original face has become two faces, so we have added one to the number of faces. We haven't changed the number of vertices. The network now has V vertices, E + 1 edges and F + 1 faces. So how has V - E + F changed after we performed Step 1 once? Using what we know about the changes in V, E and F we can see that V - E + F has become V - (E + 1) + (F + 1). Now we have V - (E + 1) + (F + 1) = V - E - 1 + F + 1 = V - E + F.