Re: Problem with 3D Polygon
- To: mathgroup at smc.vnet.net
- Subject: [mg33453] Re: [mg33402] Problem with 3D Polygon
- From: "Christopher J. Purcell" <purcell at drea.dnd.ca>
- Date: Thu, 21 Mar 2002 09:28:45 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Variants of your question have appeared before in the mathgroup and a look though the archives will show you that it has annoyed customers for a long time. Thanks to Martin Krause you can download the package PolygonTriangulation from http://library.wolfram.com/packages/ that provides a work-around to this feature. This plots your nonconvex polygon as expected. It sure would be nicer if mathematica did this without having to resort to an addon package. Needs["PolygonTriangulation`SimplePolygonTriangulation`"]; Show[TriangulateSimplePolygons3D[Graphics3D[Polygon[ {{1,0,0},{1,0,1},{-1,0,1},{-1,0,0},{-1/2,0,0}, {-1/2,0,1/2},{1/2,0,1/2},{1/2,0,0},{1,0,0}}]]]]; -- Dr. Christopher J. Purcell Defence Research Establishment Atlantic 9 Grove St., PO Box 1012, Dartmouth, NS Canada B2Y 3Z7 Tel: 902-426-3100-x389 Fax: 902-426-9654 E-mail: purcell at drea.dnd.ca