Message Boards Message Boards

GROUPS:

Plotting polyhedra faces w/polygons removed from the interiors of the faces

Posted 9 years ago
2288 Views
|
0 Replies
|
0 Total Likes
|

I have several dozen polyhedra with, in all, dozens of vertices and dozens of faces, which is why I use the v={};i={} and Graphics3D and GraphicsComplex, which I'll keep for the below example even though it's not necessary in this case. Also I'll specify x,y,z points even though below I'm not using the z dimension.

I'm trying to remove an interior polygon from a face. When I was working with 2D I could specify a colored polygon and then specify an interior white polygon and the latter would override the former, but that's not working for me in 3D. I probably just have it set up wrong.

This is what doesn't work:

v = {{0, 0, 0}, {10, 0, 0}, {10, 10, 0}, {0, 10, 0}, {2, 2, 0}, {2, 5, 0}, {5, 5, 0}, {5, 2, 0}}; i = { {1, 2, 3, 4}}; {Graphics3D[{Red, GraphicsComplex[v, Polygon[i]]} ] ; i = {{5, 6, 7, 8}}; Graphics3D[{White, GraphicsComplex[v, Polygon[i]]}]}

Attachments:
POSTED BY: Howard Wilk
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract