tcew / nodal-dg

MIT License
141 stars 90 forks source link

Fix bug in MakeCylinder2d when angles are close #4

Closed jkozdon closed 1 year ago

jkozdon commented 7 years ago

Ran into a problem with MakeCylinder2d when the angles were different signs but still close enough together (one of the angles was close to zero, but had the opposite sign and adding 2*pi too it to a reflex angle). I think that really you want to check that the distance between the angles is less than pi and not worry about the sign difference. (I don't think that the while loop will evaluate true more than once and so could be replaced with an if statement.)