7fd59977 |
1 | |
2 | #include <OpenGl_tgl_all.hxx> |
3 | #include <InterfaceGraphic_Graphic3d.hxx> |
4 | #include <OpenGl_tgl.hxx> |
5 | #include <OpenGl_tgl_funcs.hxx> |
6 | #include <OpenGl_tgl_subrs.hxx> |
7 | #include <OpenGl_tgl_utilgr.hxx> |
8 | |
9 | void EXPORT |
10 | call_togl_polygon_holes |
11 | ( |
12 | CALL_DEF_GROUP * agroup, |
13 | CALL_DEF_LISTFACETS * alfacets |
14 | ) |
15 | { |
16 | #ifdef OK |
17 | if (! agroup->IsOpen) call_togl_opengroup (agroup); |
18 | switch (alfacets->LFacets[0].TypePoints) { |
19 | case 1 : /* Vertex Coordinates Specified */ |
20 | if (alfacets->LFacets[0].NormalIsDefined) |
21 | call_subr_polygon_holes_data (alfacets); |
22 | else |
23 | call_subr_polygon_holes (alfacets); |
24 | break; |
25 | case 2 : /* Coordinates and Vertex Normal Specified */ |
26 | call_subr_polygon_holes_data (alfacets); |
27 | break; |
28 | } |
29 | if (! agroup->IsOpen) call_togl_closegroup (agroup); |
30 | #endif |
31 | return; |
32 | } |