Editing Talk:Point-in-polygon
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
I do not understand why. The Ray to infinity seems far faster and more than accurate enough. | I do not understand why. The Ray to infinity seems far faster and more than accurate enough. | ||
--[[User:AEMPhil|AEMPhil]] 08:41, 7 December 2007 (MST) | --[[User:AEMPhil|AEMPhil]] 08:41, 7 December 2007 (MST) | ||
− | |||
− | |||
While it is faster (and therefore preferred away from the element) he ray-to-infinity approach is not consistent with the winding/AEM calculation, i.e., if the ray approach is used to calculate conductivity right along the boundary, we might be considered inside (to the right of a dipole/doublet jump) whereas the AEM solution might consider the same point to be on the left of the dipole/doublet jump. The calculation of head at this point will therefore be erroneous. By locally using the winding approach that is consistent with dipole/doublet jump calculations, we avoid this error. It's a trick I learned the hard way. | While it is faster (and therefore preferred away from the element) he ray-to-infinity approach is not consistent with the winding/AEM calculation, i.e., if the ray approach is used to calculate conductivity right along the boundary, we might be considered inside (to the right of a dipole/doublet jump) whereas the AEM solution might consider the same point to be on the left of the dipole/doublet jump. The calculation of head at this point will therefore be erroneous. By locally using the winding approach that is consistent with dipole/doublet jump calculations, we avoid this error. It's a trick I learned the hard way. | ||
Line 9: | Line 7: | ||
Notably, this algorithm can be considerably improved by storing the bounding box of each polygon. It is slowed, however, if the bounding box is recalculated on each call. | Notably, this algorithm can be considerably improved by storing the bounding box of each polygon. It is slowed, however, if the bounding box is recalculated on each call. | ||
--[[User:Analytophile|Analytophile]] 2:09, 7 December 2007 | --[[User:Analytophile|Analytophile]] 2:09, 7 December 2007 | ||
− | |||
− | |||
− | |||
− |