Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Graphics`Mesh`SimplePolygonQ is an undocumented function. I'm using Mathematica 7, and when I try:

Graphics`Mesh`SimplePolygonQ[{{1, 0}, {0, Sqrt[3]}, {-1, 0}}] 

I just get:

Graphics`Mesh`SimplePolygonQ[{{1, 0}, {0, $\sqrt{3}$, {-1, 0}}]

I posted a question and a respondent successfully used this function in the code of her answer. Does anyone else have trouble using this function? Any ideas why it won't work for me?

share|improve this question
    
It takes a Polygon[] object as an argument. –  J. M. May 19 '13 at 18:03
    
@J.M.: p = Polygon[{{1, 0}, {0, Sqrt[3]}, {-1, 0}}] Graphics`Mesh`SimplePolygonQ[p] Out[]:= Graphics`Mesh`SimplePolygonQ[Polygon[{{1, 0}, {0, Sqrt[3]}, {-1, 0}}]] –  jnthn May 19 '13 at 18:08
    
What version of Mathematica are you using? –  J. M. May 19 '13 at 18:10
1  
Sorry I didn't realize this function is not available in version 7. (I thought it would be a fundamental one existing there long ago..) In that case maybe you have to implement the function yourself. For your reference, there are some relevant posts like this and this. –  Silvia May 19 '13 at 18:41
1  
It would be worth checking if version 7 has Graphics`Mesh`IntersectQ –  Simon Woods May 20 '13 at 9:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.