Normand Briere
2019-04-23 ec9d13e42c9c8674739acefb0769a9273a1048c9
GroupEditor.java
....@@ -83,7 +83,7 @@
8383
8484 void CloneSelection(boolean supports)
8585 {
86
- // Object3D keep = GraphreeD.clipboard;
86
+ // Object3D keep = GrafreeD.clipboard;
8787 //Object3D obj;
8888 for (int i=0; i<group.selection.size(); i++)// Enumeration e = group.selection.elements(); e.hasMoreElements();)
8989 {
....@@ -97,14 +97,14 @@
9797
9898 void CloneClipboard(boolean supports)
9999 {
100
- assert(GraphreeD.clipboard.parent == null);
101
- Object3D /*Composite*/ keepparent = GraphreeD.clipboard.get(0).parent;
102
- GraphreeD.clipboard.get(0).parent = null; // Avoid copy?
103
- if (LA.isIdentity(GraphreeD.clipboard.toParent))
104
- makeSomething(CloneObject(GraphreeD.clipboard.get(0), false));
100
+ assert(GrafreeD.clipboard.parent == null);
101
+ Object3D /*Composite*/ keepparent = GrafreeD.clipboard.get(0).parent;
102
+ GrafreeD.clipboard.get(0).parent = null; // Avoid copy?
103
+ if (LA.isIdentity(GrafreeD.clipboard.toParent))
104
+ makeSomething(CloneObject(GrafreeD.clipboard.get(0), false));
105105 else
106
- makeSomething(CloneObject(GraphreeD.clipboard, false));
107
- GraphreeD.clipboard.get(0).parent = keepparent;
106
+ makeSomething(CloneObject(GrafreeD.clipboard, false));
107
+ GrafreeD.clipboard.get(0).parent = keepparent;
108108 }
109109
110110 static Object3D CloneObject(Object3D obj, boolean supports)
....@@ -118,7 +118,7 @@
118118 // obj.support = null;
119119 if (!supports)
120120 obj.SaveSupports();
121
- Object3D clone = (Object3D)GraphreeD.clone(obj);
121
+ Object3D clone = (Object3D)GrafreeD.clone(obj);
122122 obj.parent = parent;
123123 // obj.support = support;
124124 // clone.support = support; // aout 2013
....@@ -219,18 +219,24 @@
219219 resetsupportItem.addActionListener(this);
220220 linkverticesItem = menu.add(new MenuItem("Link to Support"));
221221 linkverticesItem.addActionListener(this);
222
+ relinkverticesItem = menu.add(new MenuItem("Re-link to Support"));
223
+ relinkverticesItem.addActionListener(this);
222224 setMasterItem = menu.add(new MenuItem("Set Master Mesh"));
223225 setMasterItem.addActionListener(this);
224226
225227 oe.menuBar.add(menu = new Menu("Group"));
226228 grabItem = menu.add(new MenuItem("Grab"));
227229 grabItem.addActionListener(this);
228
- frontItem = menu.add(new MenuItem("Front"));
229
- frontItem.addActionListener(this);
230230 backItem = menu.add(new MenuItem("Back"));
231231 backItem.addActionListener(this);
232
+ frontItem = menu.add(new MenuItem("Front"));
233
+ frontItem.addActionListener(this);
232234 compositeItem = menu.add(new MenuItem("Composite"));
233235 compositeItem.addActionListener(this);
236
+ hideItem = menu.add(new MenuItem("Hide"));
237
+ hideItem.addActionListener(this);
238
+ ungroupItem = menu.add(new MenuItem("Ungroup"));
239
+ ungroupItem.addActionListener(this);
234240 menu.add("-");
235241 randomItem = menu.add(new MenuItem("Random"));
236242 randomItem.addActionListener(this);
....@@ -252,6 +258,8 @@
252258 oe.menuBar.add(menu = new Menu("Object"));
253259 textureItem = menu.add(new MenuItem("Texture"));
254260 textureItem.addActionListener(this);
261
+ billboardItem = menu.add(new MenuItem("Billboard"));
262
+ billboardItem.addActionListener(this);
255263 csgItem = menu.add(new MenuItem("CSG"));
256264 csgItem.addActionListener(this);
257265 shadowXItem = menu.add(new MenuItem("Shadow X"));
....@@ -269,14 +277,12 @@
269277 pointflowItem = menu.add(new MenuItem("Point Flow"));
270278 pointflowItem.addActionListener(this);
271279 menu.add("-");
272
- transformgeometryItem = menu.add(new MenuItem("Transform Geometry"));
273
- transformgeometryItem.addActionListener(this);
274280 resetTransformItem = menu.add(new MenuItem("Reset Transform"));
275281 resetTransformItem.addActionListener(this);
276282 resetCentroidItem = menu.add(new MenuItem("Reset Centroid"));
277283 resetCentroidItem.addActionListener(this);
278
- ungroupItem = menu.add(new MenuItem("Ungroup"));
279
- ungroupItem.addActionListener(this);
284
+ transformgeometryItem = menu.add(new MenuItem("Transform Geometry"));
285
+ transformgeometryItem.addActionListener(this);
280286
281287 oe.menuBar.add(menu = new Menu("Geometry"));
282288 genUVItem = menu.add(new MenuItem("Generate UV"));
....@@ -285,6 +291,10 @@
285291 genNormalsORGANItem.addActionListener(this);
286292 genNormalsCADItem = menu.add(new MenuItem("CAD Normals"));
287293 genNormalsCADItem.addActionListener(this);
294
+ genNormalsMESHItem = menu.add(new MenuItem("Mesh Normals"));
295
+ genNormalsMESHItem.addActionListener(this);
296
+ genNormalsMINEItem = menu.add(new MenuItem("My Normals"));
297
+ genNormalsMINEItem.addActionListener(this);
288298 stripifyItem = menu.add(new MenuItem("Stripify"));
289299 stripifyItem.addActionListener(this);
290300 unstripifyItem = menu.add(new MenuItem("Unstripify"));
....@@ -380,7 +390,7 @@
380390
381391
382392 oe.menuBar.add(menu = new Menu("Include"));
383
- importGFDItem = menu.add(new MenuItem("GraphreeD Object..."));
393
+ importGFDItem = menu.add(new MenuItem("GrafreeD Object..."));
384394 importGFDItem.addActionListener(this);
385395 importVRMLX3DItem = menu.add(new MenuItem("VRML/X3D Object..."));
386396 importVRMLX3DItem.addActionListener(this);
....@@ -427,7 +437,7 @@
427437 oe.aConstraints.gridwidth = 1;
428438 oe.aConstraints.gridx = 0;
429439
430
- oe.toolbarPanel.add(liveCB = new cCheckBox("Live", CameraPane.isLIVE()), oe.aConstraints);
440
+ oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE()), oe.aConstraints);
431441 liveCB.addItemListener(this);
432442
433443 oe.aConstraints.gridx += 1;
....@@ -439,7 +449,7 @@
439449 // localCB.addItemListener(this);
440450
441451 oe.aConstraints.gridx += 1;
442
- oe.toolbarPanel.add(crowdCB = new cCheckBox("Crowd", CameraPane.CROWD), oe.aConstraints);
452
+ oe.toolbarPanel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD), oe.aConstraints);
443453 crowdCB.addItemListener(this);
444454
445455 oe.aConstraints.gridx += 1;
....@@ -510,6 +520,9 @@
510520
511521 oe.toolbarPanel.add(flashSelectionButton = new cButton(" ? ")); //, oe.aConstraints);
512522 flashSelectionButton.addActionListener(this);
523
+
524
+ oe.toolbarPanel.add(new cButton(" ", false));
525
+
513526 oe.aConstraints.gridx += 1;
514527 oe.aConstraints.weighty = 0;
515528 oe.aConstraints.gridwidth = 1;
....@@ -636,14 +649,14 @@
636649
637650 void EditObject(Object3D obj)
638651 {
639
- cRadio dummyButton = new cRadio(obj.name);
640
- dummyButton.SetObject(obj);
641
- dummyButton.layout = sevenButton;
642
- dummyButton.SetCamera(cameraView.renderCamera, false);
643
- dummyButton.addActionListener(this);
644
- radioPanel.add(dummyButton);
645
- buttonGroup.add(dummyButton);
646
- dummyButton.doClick();
652
+ cRadio radioButton = new cRadio(obj.name);
653
+ radioButton.SetObject(obj);
654
+ radioButton.layout = sevenButton;
655
+ radioButton.SetCamera(cameraView.renderCamera, false);
656
+ radioButton.addActionListener(this);
657
+ radioPanel.add(radioButton);
658
+ buttonGroup.add(radioButton);
659
+ radioButton.doClick();
647660 }
648661 void SetupViews(ObjEditor oe)
649662 {
....@@ -705,8 +718,7 @@
705718 dropAttributes |= Object3D.TEXTURE;
706719 else
707720 dropAttributes &= ~Object3D.TEXTURE;
708
- }
709
- else if(e.getSource() == liveCB)
721
+ } else if(e.getSource() == liveCB)
710722 {
711723 cameraView.ToggleLive();
712724 }
....@@ -1033,6 +1045,8 @@
10331045 torusItem.addActionListener(this);
10341046 superItem = menu.add(new MenuItem("Superellipsoid"));
10351047 superItem.addActionListener(this);
1048
+ kleinItem = menu.add(new MenuItem("Klein Bottle"));
1049
+ kleinItem.addActionListener(this);
10361050 particleItem = menu.add(new MenuItem("Particle system"));
10371051 particleItem.addActionListener(this);
10381052 ragdollItem = menu.add(new MenuItem("Rag Walk"));
....@@ -1106,6 +1120,8 @@
11061120 resetParentItem.addActionListener(this);
11071121 repairParentItem = menu.add(new MenuItem("Repair Parent"));
11081122 repairParentItem.addActionListener(this);
1123
+ repairShadowItem = menu.add(new MenuItem("Repair Shadow"));
1124
+ repairShadowItem.addActionListener(this);
11091125 menu.add(invariantsItem = new MenuItem("Invariants"));
11101126 invariantsItem.addActionListener(this);
11111127 menu.add(recompileItem = new MenuItem("Recompile"));
....@@ -1441,9 +1457,9 @@
14411457
14421458 void Overwrite(int mask)
14431459 {
1444
- if (/*group.selection.size() == 1 &&*/ GraphreeD.clipboard.size() == 1)
1460
+ if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
14451461 {
1446
- Object3D content = GraphreeD.clipboard.get(0);
1462
+ Object3D content = GrafreeD.clipboard.get(0);
14471463
14481464 if (content instanceof cGroup && ((cGroup)content).transientlink )
14491465 content = ((cGroup)content).get(0);
....@@ -1592,6 +1608,10 @@
15921608 if (event.getSource() == superItem)
15931609 {
15941610 makeSomething(new Superellipsoid());
1611
+ } else
1612
+ if (event.getSource() == kleinItem)
1613
+ {
1614
+ makeSomething(new Klein());
15951615 } else
15961616 if (event.getSource() == blobItem)
15971617 {
....@@ -1762,8 +1782,8 @@
17621782 } else
17631783 if (event.getSource() == computeAOItem)
17641784 {
1765
- CameraPane.drawMode = CameraPane.OCCLUSION;
1766
- CameraPane.theRenderer.repaint();
1785
+ Globals.drawMode = CameraPane.OCCLUSION;
1786
+ Globals.theRenderer.repaint();
17671787 } else
17681788 if (event.getSource() == recompileItem)
17691789 {
....@@ -1778,7 +1798,7 @@
17781798 if (event.getSource() == invariantsItem)
17791799 {
17801800 System.out.println("Invariants:");
1781
- GraphreeD.theApplet3D.universe.invariants();
1801
+ GrafreeD.grafreeD.universe.invariants();
17821802 } else
17831803 if (event.getSource() == memoryItem)
17841804 {
....@@ -1848,10 +1868,10 @@
18481868 } else
18491869 if (event.getSource() == duplicateItem)
18501870 {
1851
- Object3D keep = GraphreeD.clipboard;
1871
+ Object3D keep = GrafreeD.clipboard;
18521872 loadClipboard(false);
18531873 paste(false);
1854
- GraphreeD.clipboard = keep;
1874
+ GrafreeD.clipboard = keep;
18551875 } else
18561876 if (event.getSource() == cloneItem)
18571877 {
....@@ -1895,8 +1915,9 @@
18951915 } else
18961916 if (event.getSource() == overwriteMatItem)
18971917 {
1918
+ /* july 2015
18981919 if ((dropAttributes & Object3D.TEXTURE) == 0)
1899
- Overwrite(Object3D.MATERIAL);
1920
+ Overwrite(Object3D.MATERIAL | Object3D.COLOR);
19001921 else
19011922 {
19021923 if ((dropAttributes & Object3D.COLOR) == 0 && (dropAttributes & Object3D.MATERIAL) == 0)
....@@ -1908,13 +1929,16 @@
19081929 Overwrite(Object3D.MATERIAL | Object3D.TEXTURE);
19091930 }
19101931 }
1932
+ */
1933
+
1934
+ Overwrite(dropAttributes);
19111935 }
19121936 if (event.getSource() == overwriteGeoItem)
19131937 {
19141938 Overwrite(Object3D.GEOMETRY);
1915
-// if (/*group.selection.size() == 1 &&*/ GraphreeD.clipboard.size() == 1)
1939
+// if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
19161940 // {
1917
-// Object3D content = GraphreeD.clipboard.get(0);
1941
+// Object3D content = GrafreeD.clipboard.get(0);
19181942 //
19191943 // if (content instanceof cGroup && ((cGroup)content).transientlink )
19201944 // content = ((cGroup)content).get(0);
....@@ -1997,23 +2021,28 @@
19972021 if (group.selection.size() == 1)
19982022 one = true;
19992023
2024
+ Object3D merge = null;
2025
+
20002026 Object3D content = new cGroup();
20012027
20022028 for (int i=0; i<group.selection.size(); i++)
20032029 {
2004
- Object3D sel = new Merge(group.selection.get(i));
2030
+ merge = new Merge(group.selection.get(i));
20052031
20062032 if (one)
2007
- makeSomething(sel, false);
2033
+ makeSomething(merge, false);
20082034 else
2009
- content.addChild(sel);
2035
+ content.addChild(merge);
20102036 }
20112037
20122038 if (!one)
2013
- makeSomething(content, false);
2014
-
2015
- ResetModel();
2016
- refreshContents();
2039
+ makeSomething(content, true);
2040
+ else
2041
+ {
2042
+ ResetModel();
2043
+ Select(merge.GetTreePath(), true, false); // unselect... false);
2044
+ refreshContents();
2045
+ }
20172046 } else
20182047 if (event.getSource() == mergeGeometriesItem)
20192048 {
....@@ -2047,9 +2076,9 @@
20472076 } else
20482077 if (event.getSource() == linkverticesItem)
20492078 {
2050
-// if (group.selection.size() == 1 && GraphreeD.clipboard.size() == 1)
2079
+// if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
20512080 // {
2052
-// Object3D content = GraphreeD.clipboard.get(0);
2081
+// Object3D content = GrafreeD.clipboard.get(0);
20532082 //
20542083 // if (content instanceof cGroup && ((cGroup)content).transientlink )
20552084 // content = ((cGroup)content).get(0);
....@@ -2058,14 +2087,14 @@
20582087 // group.selection.get(0).setMasterThis(content); // should be identity
20592088 // refreshContents();
20602089 // }
2061
- if (/*group.selection.size() == 1 &&*/ GraphreeD.clipboard.size() == 1)
2090
+ if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
20622091 {
2063
- Object3D content = GraphreeD.clipboard.get(0);
2092
+ Object3D content = GrafreeD.clipboard.get(0);
20642093
20652094 if (content instanceof cGroup && ((cGroup)content).transientlink )
20662095 content = ((cGroup)content).get(0);
20672096
2068
- CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR));
2097
+ Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR));
20692098 for (int i=0; i<group.selection.size(); i++)
20702099 {
20712100 boolean random = CameraPane.RANDOM;
....@@ -2074,7 +2103,7 @@
20742103 // group.selection.get(i).setMasterThis(content); // should be identity
20752104 CameraPane.RANDOM = random;
20762105 }
2077
- CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
2106
+ Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
20782107 refreshContents();
20792108 }
20802109 } else
....@@ -2090,6 +2119,15 @@
20902119
20912120 refreshContents();
20922121 } else
2122
+ if (event.getSource() == relinkverticesItem)
2123
+ {
2124
+ boolean random = CameraPane.RANDOM;
2125
+ CameraPane.RANDOM = false; // parse all random nodes
2126
+ group.selection.RelinkToSupport();
2127
+ CameraPane.RANDOM = random;
2128
+
2129
+ refreshContents();
2130
+ } else
20932131 if (event.getSource() == resetreferencesItem)
20942132 {
20952133 for (int i=0; i<group.selection.size(); i++)
....@@ -2101,9 +2139,9 @@
21012139 } else
21022140 if (event.getSource() == setMasterItem)
21032141 {
2104
- if (group.selection.size() == 1 && GraphreeD.clipboard.size() == 1)
2142
+ if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
21052143 {
2106
- Object3D content = GraphreeD.clipboard.get(0);
2144
+ Object3D content = GrafreeD.clipboard.get(0);
21072145
21082146 if (content instanceof cGroup && ((cGroup)content).transientlink )
21092147 content = ((cGroup)content).get(0);
....@@ -2116,9 +2154,9 @@
21162154 {
21172155 if (group.selection.size() == 1)
21182156 {
2119
- if (GraphreeD.clipboard.size() == 1)
2157
+ if (GrafreeD.clipboard.size() == 1)
21202158 {
2121
- Object3D content = GraphreeD.clipboard.get(0);
2159
+ Object3D content = GrafreeD.clipboard.get(0);
21222160
21232161 if (content instanceof cGroup && ((cGroup)content).transientlink )
21242162 content = ((cGroup)content).get(0);
....@@ -2158,6 +2196,10 @@
21582196 if (event.getSource() == grabItem)
21592197 {
21602198 group(new cGroup(), true);
2199
+ } else
2200
+ if (event.getSource() == hideItem)
2201
+ {
2202
+ group(new HiddenObject());
21612203 } else
21622204 if (event.getSource() == frontItem)
21632205 {
....@@ -2281,6 +2323,10 @@
22812323 {
22822324 group(new TextureNode());
22832325 } else
2326
+ if (event.getSource() == billboardItem)
2327
+ {
2328
+ group(new BillboardNode());
2329
+ } else
22842330 if (event.getSource() == shadowXItem)
22852331 {
22862332 CastShadow(0);
....@@ -2295,7 +2341,15 @@
22952341 } else
22962342 if (event.getSource() == ungroupItem)
22972343 {
2298
- ungroup();
2344
+ //ungroup();
2345
+ for (int i=0; i<group.selection.size(); i++)
2346
+ {
2347
+ Ungroup(group.selection.get(i));
2348
+ }
2349
+
2350
+ ClearSelection(false);
2351
+
2352
+ refreshContents();
22992353 } else
23002354 if (event.getSource() == genUVItem)
23012355 {
....@@ -2305,9 +2359,17 @@
23052359 {
23062360 GenNormals(true);
23072361 } else
2362
+ if (event.getSource() == genNormalsMESHItem)
2363
+ {
2364
+ GenNormals(true); // TODO
2365
+ } else
23082366 if (event.getSource() == genNormalsORGANItem)
23092367 {
23102368 GenNormals(false);
2369
+ } else
2370
+ if (event.getSource() == genNormalsMINEItem)
2371
+ {
2372
+ GenNormalsMINE();
23112373 } else
23122374 if (event.getSource() == stripifyItem)
23132375 {
....@@ -2485,6 +2547,20 @@
24852547
24862548 refreshContents();
24872549 } else
2550
+ if (event.getSource() == repairShadowItem)
2551
+ {
2552
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
2553
+ {
2554
+ Object3D obj = (Object3D)e.nextElement();
2555
+ obj.RepairShadow();
2556
+// for (int i=0; i<obj.size(); i++)
2557
+// {
2558
+// obj.get(i).parent = obj;
2559
+// }
2560
+ }
2561
+
2562
+ refreshContents();
2563
+ } else
24882564 if (event.getSource() == sortbysizeItem)
24892565 {
24902566 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2580,8 +2656,8 @@
25802656 // bug
25812657 //gridPanel.setDividerLocation(1.0);
25822658 //bigPanel.setDividerLocation(0.0);
2583
- bigThree.remove(jtp);
2584
- bigThree.remove(cameraPanel);
2659
+ bigThree.remove(scenePanel);
2660
+ bigThree.remove(centralPanel);
25852661 bigThree.remove(XYZPanel);
25862662 aWindowConstraints.gridx = 0;
25872663 aWindowConstraints.gridy = 0;
....@@ -2596,7 +2672,7 @@
25962672 // aConstraints.gridheight = 3;
25972673 aWindowConstraints.gridx = 1;
25982674 aWindowConstraints.fill = GridBagConstraints.BOTH;
2599
- bigThree.add(cameraPanel, aWindowConstraints);
2675
+ bigThree.add(centralPanel, aWindowConstraints);
26002676 aWindowConstraints.weightx = 0;
26012677 aWindowConstraints.gridx = 4;
26022678 aWindowConstraints.gridwidth = 1;
....@@ -2608,8 +2684,8 @@
26082684 if (event.getSource() == threeButton)
26092685 {
26102686 radio.layout = threeButton;
2611
- bigThree.remove(jtp);
2612
- bigThree.remove(cameraPanel);
2687
+ bigThree.remove(scenePanel);
2688
+ bigThree.remove(centralPanel);
26132689 bigThree.remove(XYZPanel);
26142690 aWindowConstraints.gridx = 0;
26152691 aWindowConstraints.gridy = 0;
....@@ -2624,7 +2700,7 @@
26242700 // aConstraints.gridheight = 3;
26252701 aWindowConstraints.gridx = 1;
26262702 aWindowConstraints.fill = GridBagConstraints.BOTH;
2627
- bigThree.add(cameraPanel, aWindowConstraints);
2703
+ bigThree.add(centralPanel, aWindowConstraints);
26282704 aWindowConstraints.weightx = 0;
26292705 aWindowConstraints.gridx = 4;
26302706 aWindowConstraints.gridwidth = 1;
....@@ -2636,8 +2712,8 @@
26362712 if (event.getSource() == fourButton)
26372713 {
26382714 radio.layout = fourButton;
2639
- bigThree.remove(jtp);
2640
- bigThree.remove(cameraPanel);
2715
+ bigThree.remove(scenePanel);
2716
+ bigThree.remove(centralPanel);
26412717 bigThree.remove(XYZPanel);
26422718 aWindowConstraints.gridx = 0;
26432719 aWindowConstraints.gridy = 0;
....@@ -2646,7 +2722,7 @@
26462722 aWindowConstraints.fill = GridBagConstraints.BOTH;
26472723 aWindowConstraints.weightx = 1;
26482724 aWindowConstraints.weighty = 1;
2649
- bigThree.add(jtp, aWindowConstraints);
2725
+ bigThree.add(scenePanel, aWindowConstraints);
26502726 aWindowConstraints.weightx = 1;
26512727 aWindowConstraints.gridwidth = 3;
26522728 // aConstraints.gridheight = 3;
....@@ -2664,8 +2740,8 @@
26642740 if (event.getSource() == sixButton)
26652741 {
26662742 radio.layout = sixButton;
2667
- bigThree.remove(jtp);
2668
- bigThree.remove(cameraPanel);
2743
+ bigThree.remove(scenePanel);
2744
+ bigThree.remove(centralPanel);
26692745 bigThree.remove(XYZPanel);
26702746 aWindowConstraints.gridx = 0;
26712747 aWindowConstraints.gridy = 0;
....@@ -2674,13 +2750,13 @@
26742750 aWindowConstraints.fill = GridBagConstraints.VERTICAL;
26752751 aWindowConstraints.weightx = 0;
26762752 aWindowConstraints.weighty = 1;
2677
- bigThree.add(jtp, aWindowConstraints);
2753
+ bigThree.add(scenePanel, aWindowConstraints);
26782754 aWindowConstraints.weightx = 1;
26792755 aWindowConstraints.gridwidth = 3;
26802756 // aWindowConstraints.gridheight = 3;
26812757 aWindowConstraints.gridx = 1;
26822758 aWindowConstraints.fill = GridBagConstraints.BOTH;
2683
- bigThree.add(cameraPanel, aWindowConstraints);
2759
+ bigThree.add(centralPanel, aWindowConstraints);
26842760 aWindowConstraints.weightx = 0;
26852761 aWindowConstraints.gridx = 4;
26862762 aWindowConstraints.gridwidth = 1;
....@@ -2692,8 +2768,8 @@
26922768 if (event.getSource() == sevenButton)
26932769 {
26942770 radio.layout = sevenButton;
2695
- bigThree.remove(jtp);
2696
- bigThree.remove(cameraPanel);
2771
+ bigThree.remove(scenePanel);
2772
+ bigThree.remove(centralPanel);
26972773 bigThree.remove(XYZPanel);
26982774 aWindowConstraints.gridx = 0;
26992775 aWindowConstraints.gridy = 0;
....@@ -2702,13 +2778,13 @@
27022778 aWindowConstraints.fill = GridBagConstraints.VERTICAL;
27032779 aWindowConstraints.weightx = 0;
27042780 aWindowConstraints.weighty = 1;
2705
- bigThree.add(jtp, aWindowConstraints);
2781
+ bigThree.add(scenePanel, aWindowConstraints);
27062782 aWindowConstraints.weightx = 1;
27072783 aWindowConstraints.gridwidth = 3;
27082784 // aWindowConstraints.gridheight = 3;
27092785 aWindowConstraints.gridx = 1;
27102786 aWindowConstraints.fill = GridBagConstraints.BOTH;
2711
- bigThree.add(cameraPanel, aWindowConstraints);
2787
+ bigThree.add(centralPanel, aWindowConstraints);
27122788 aWindowConstraints.weightx = 0;
27132789 aWindowConstraints.gridx = 4;
27142790 aWindowConstraints.gridwidth = 1;
....@@ -2806,7 +2882,7 @@
28062882 if (event.getSource() == unselectButton)
28072883 {
28082884 objEditor.jTree.clearSelection();
2809
- // ?? oct 2012 GraphreeD.clipboard.clear();
2885
+ // ?? oct 2012 GrafreeD.clipboard.clear();
28102886 objEditor.ResetSliders();
28112887 refreshContents(true);
28122888 } else
....@@ -2835,7 +2911,7 @@
28352911 }
28362912
28372913 copy = group;
2838
- //CameraPane.theRenderer.object = group;
2914
+ //Globals.theRenderer.object = group;
28392915 if(!useclient)
28402916 {
28412917 cameraView.renderCamera = radio.camera;
....@@ -2844,7 +2920,8 @@
28442920 cameraView.cameras[cameraView.cameracount] = radio.camera;
28452921 cameraView.targetLookAt.set(radio.camera.lookAt);
28462922 cameraView.object = group;
2847
- cameraView.lighttouched = true;
2923
+ //cameraView.lighttouched = true;
2924
+ Globals.lighttouched = true;
28482925 topView.object = group;
28492926 frontView.object = group;
28502927 sideView.object = group;
....@@ -2880,7 +2957,7 @@
28802957 if (useclient)
28812958 {
28822959 cameraView.object = client;
2883
- cameraView.lighttouched = true;
2960
+ Globals.lighttouched = true;
28842961 //topView.object = client;
28852962 //frontView.object = client;
28862963 //sideView.object = client;
....@@ -2888,7 +2965,7 @@
28882965 else
28892966 {
28902967 cameraView.object = group;
2891
- cameraView.lighttouched = true;
2968
+ Globals.lighttouched = true;
28922969 //topView.object = group;
28932970 //frontView.object = group;
28942971 //sideView.object = group;
....@@ -3121,9 +3198,9 @@
31213198 obj = (Object3D)e.nextElement();
31223199
31233200 System.out.println("Object is: " + obj);
3124
- GraphreeD.AnalyzeObject(obj);
3201
+ GrafreeD.AnalyzeObject(obj);
31253202 System.out.println("Boundary rep: " + obj.bRep);
3126
- GraphreeD.AnalyzeObject(obj.bRep);
3203
+ GrafreeD.AnalyzeObject(obj.bRep);
31273204
31283205 // System.err.println((size/1024) + " KB is the size of " + obj);
31293206 }
....@@ -3165,6 +3242,13 @@
31653242 void GenNormals(boolean crease)
31663243 {
31673244 group.GenNormalsS(crease);
3245
+
3246
+ refreshContents();
3247
+ }
3248
+
3249
+ void GenNormalsMINE()
3250
+ {
3251
+ group.selection.GenNormalsMINE();
31683252
31693253 refreshContents();
31703254 }
....@@ -3250,7 +3334,7 @@
32503334 // LA.matTranslate(g.toParent, temp.x, temp.y, temp.z);
32513335 // LA.matTranslate(g.fromParent, -temp.x, -temp.y, -temp.z);
32523336 //
3253
-// g.add(GraphreeD.clipboard);
3337
+// g.add(GrafreeD.clipboard);
32543338 //
32553339 // buffer.add(g);
32563340 // }
....@@ -3269,8 +3353,8 @@
32693353 // nodes = new Object3D();
32703354 // vertices = new Vector<Vertex>();
32713355 //
3272
-// boolean epsequal = GraphreeD.epsequal;
3273
-// GraphreeD.epsequal = true;
3356
+// boolean epsequal = GrafreeD.epsequal;
3357
+// GrafreeD.epsequal = true;
32743358 //
32753359 // for (int i=0; i<group.selection.size(); i++)
32763360 // {
....@@ -3311,7 +3395,7 @@
33113395 // LA.matTranslate(g.toParent, temp.x, temp.y, temp.z);
33123396 // LA.matTranslate(g.fromParent, -temp.x, -temp.y, -temp.z);
33133397 //
3314
-// g.add(GraphreeD.clipboard);
3398
+// g.add(GrafreeD.clipboard);
33153399 //
33163400 // buffer.add(g);
33173401 // }
....@@ -3319,7 +3403,7 @@
33193403 // makeSomething(buffer, i==group.selection.size()-1);
33203404 // }
33213405 //
3322
-// GraphreeD.epsequal = epsequal;
3406
+// GrafreeD.epsequal = epsequal;
33233407 //
33243408 // //buffer = null;
33253409 // temprep = null;
....@@ -3330,8 +3414,8 @@
33303414
33313415 void ParseVertices()
33323416 {
3333
- boolean epsequal = GraphreeD.epsequal;
3334
- GraphreeD.epsequal = true;
3417
+ boolean epsequal = GrafreeD.epsequal;
3418
+ GrafreeD.epsequal = true;
33353419
33363420 for (int i=0; i<group.selection.size(); i++)
33373421 {
....@@ -3356,7 +3440,7 @@
33563440 LA.matTranslate(g.toParent, temp.x, temp.y, temp.z);
33573441 LA.matTranslate(g.fromParent, -temp.x, -temp.y, -temp.z);
33583442
3359
- g.add(GraphreeD.clipboard);
3443
+ g.add(GrafreeD.clipboard);
33603444
33613445 buffer.add(g);
33623446 }
....@@ -3371,7 +3455,7 @@
33713455 makeSomething(buffer, i==group.selection.size()-1);
33723456 }
33733457
3374
- GraphreeD.epsequal = epsequal;
3458
+ GrafreeD.epsequal = epsequal;
33753459
33763460 refreshContents();
33773461 }
....@@ -3389,7 +3473,7 @@
33893473 String pigment = Object3D.GetPigment(tex);
33903474 //String bump = Object3D.GetBump(tex);
33913475
3392
- com.sun.opengl.util.texture.TextureData texturedata = CameraPane.theRenderer.GetTextureData(pigment, false, node.texres);
3476
+ com.sun.opengl.util.texture.TextureData texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres);
33933477
33943478 double s = v.s;
33953479
....@@ -3416,7 +3500,7 @@
34163500 scale /= 3;
34173501
34183502 scale /= 0xFF;
3419
- scale /= 4;
3503
+ // c'est quoi ca? scale /= 4;
34203504
34213505 //v.AO = scale;
34223506
....@@ -3437,12 +3521,26 @@
34373521
34383522 void Align()
34393523 {
3524
+ if (group.selection.size() == 0)
3525
+ return;
3526
+
3527
+ cVector bbmin = new cVector();
3528
+ cVector bbmax = new cVector();
3529
+
3530
+ group.selection.get(0).getBounds(bbmin, bbmax, true);
3531
+
3532
+ double dx = bbmax.x - bbmin.x;
3533
+ double dy = bbmax.y - bbmin.y;
3534
+ double dz = bbmax.z - bbmin.z;
3535
+
3536
+ double scale = Math.sqrt(dx*dx + dy*dy + dz*dz);
3537
+
34403538 for (int i=0; i<group.selection.size(); i++)
34413539 {
34423540 Object3D obj = group.selection.get(i);
34433541
3444
- LA.matTranslate(obj.toParent, i/2f, 0, 0);
3445
- LA.matTranslateInv(obj.fromParent, -i/2f, 0, 0);
3542
+ LA.matTranslate(obj.toParent, i * scale, 0, 0);
3543
+ LA.matTranslateInv(obj.fromParent, -i * scale, 0, 0);
34463544 }
34473545
34483546 refreshContents();
....@@ -3455,7 +3553,7 @@
34553553 // ref.SaveSupports();
34563554 // Object3D par = ref.parent;
34573555 // ref.parent = null;
3458
-// Object3D lowres = (Object3D) GraphreeD.clone(ref);
3556
+// Object3D lowres = (Object3D) GrafreeD.clone(ref);
34593557 // ref.parent = par;
34603558 // ref.RestoreSupports();
34613559
....@@ -3485,7 +3583,7 @@
34853583 // lowres.SaveSupports();
34863584 // par = lowres.parent;
34873585 // lowres.parent = null;
3488
-// Object3D newlow = (Object3D) GraphreeD.clone(lowres);
3586
+// Object3D newlow = (Object3D) GrafreeD.clone(lowres);
34893587 Object3D newlow = CloneObject(lowres, false);
34903588 newlow.name = sn.switchobject.get(i).name;
34913589 System.out.println(" pose#" + i + " = " + newlow);
....@@ -3507,7 +3605,7 @@
35073605 return;
35083606
35093607 Object3D poses = group.selection.get(0);
3510
- Object3D ref = GraphreeD.clipboard.get(0);
3608
+ Object3D ref = GrafreeD.clipboard.get(0);
35113609
35123610 Object3D newgroup = new Object3D("Po:" + poses.name);
35133611
....@@ -3676,7 +3774,7 @@
36763774 group.selection.RelinkToSupport(); // july 2014
36773775 System.out.println("DONE.");
36783776 refreshContents();
3679
- CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
3777
+ Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
36803778 }
36813779
36823780 void ReduceMesh(boolean reduction34)
....@@ -3701,20 +3799,20 @@
37013799
37023800 void ClipMesh()
37033801 {
3704
- if (/*group.selection.size() == 1 &&*/ GraphreeD.clipboard.size() == 1)
3802
+ if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
37053803 {
3706
- Object3D content = GraphreeD.clipboard.get(0);
3804
+ Object3D content = GrafreeD.clipboard.get(0);
37073805
37083806 if (content instanceof cGroup && ((cGroup)content).transientlink )
37093807 content = ((cGroup)content).get(0);
37103808
37113809 // for (int i=0; i<group.selection.size(); i++)
37123810 // {
3713
-// group.selection.get(i).ClipMesh(GraphreeD.clipboard);
3811
+// group.selection.get(i).ClipMesh(GrafreeD.clipboard);
37143812 // }
3715
- group.selection.ClipMesh(GraphreeD.clipboard);
3813
+ group.selection.ClipMesh(GrafreeD.clipboard);
37163814 }
3717
-// group.selection.ClipMesh(GraphreeD.clipboard);
3815
+// group.selection.ClipMesh(GrafreeD.clipboard);
37183816 System.out.println("DONE.");
37193817 refreshContents();
37203818 }
....@@ -3961,16 +4059,16 @@
39614059
39624060 objEditor.SetText(); // jan 2014
39634061
3964
- if (flashIt && !CameraPane.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera))
4062
+ if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera))
39654063 CameraPane.flash = true;
39664064
39674065 if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera)
39684066 // a camera
39694067 {
39704068 CameraPane.camerachangeframe = 0; // don't refuse it
3971
- CameraPane.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
3972
- // CameraPane.theRenderer.renderCamera = CameraPane.theRenderer.manipCamera;
3973
- // CameraPane.theRenderer.eyeCamera = CameraPane.theRenderer.manipCamera;
4069
+ Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
4070
+ // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera;
4071
+ // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;
39744072 }
39754073
39764074 refreshContents();
....@@ -4052,12 +4150,12 @@
40524150 {
40534151 if (group.selection.isEmpty())
40544152 return;
4055
- GraphreeD.clipboardIsTempGroup = false;
4153
+ GrafreeD.clipboardIsTempGroup = false;
40564154 Composite tGroup = null;
40574155 if (group.selection.size() > 0) // 1)
40584156 {
40594157 tGroup = new cGroup();
4060
- GraphreeD.clipboardIsTempGroup = true;
4158
+ GrafreeD.clipboardIsTempGroup = true;
40614159 }
40624160
40634161 if (cut)
....@@ -4097,16 +4195,16 @@
40974195 //System.out.println("cut " + child);
40984196 //System.out.println("parent = " + child.parent);
40994197 // tmp.addChild(child);
4100
- if (GraphreeD.clipboardIsTempGroup)
4198
+ if (GrafreeD.clipboardIsTempGroup)
41014199 tGroup.add/*Child*/(tmp);
41024200 else
4103
- GraphreeD.clipboard = tmp;
4201
+ GrafreeD.clipboard = tmp;
41044202 }
41054203 else
4106
- if (GraphreeD.clipboardIsTempGroup)
4204
+ if (GrafreeD.clipboardIsTempGroup)
41074205 tGroup.add/*Child*/(child);
41084206 else
4109
- GraphreeD.clipboard = child;
4207
+ GrafreeD.clipboard = child;
41104208 }
41114209
41124210 //ResetModel();
....@@ -4138,21 +4236,21 @@
41384236 //System.out.println("cut " + elem);
41394237 //System.out.println("parent = " + elem.parent);
41404238 // tmp.addChild(elem);
4141
- if (GraphreeD.clipboardIsTempGroup)
4239
+ if (GrafreeD.clipboardIsTempGroup)
41424240 tGroup.add/*Child*/(tmp);
41434241 else
4144
- GraphreeD.clipboard = tmp;
4242
+ GrafreeD.clipboard = tmp;
41454243 }
41464244 else
4147
- if (GraphreeD.clipboardIsTempGroup)
4245
+ if (GrafreeD.clipboardIsTempGroup)
41484246 tGroup.add/*Child*/(child);
41494247 else
4150
- GraphreeD.clipboard = child;
4248
+ GrafreeD.clipboard = child;
41514249 }
41524250
41534251 }
4154
- if (GraphreeD.clipboardIsTempGroup)
4155
- GraphreeD.clipboard = tGroup;
4252
+ if (GrafreeD.clipboardIsTempGroup)
4253
+ GrafreeD.clipboard = tGroup;
41564254 if (cut)
41574255 {
41584256 ResetModel();
....@@ -4162,11 +4260,11 @@
41624260
41634261 void paste(boolean expand)
41644262 {
4165
- // if (GraphreeD.clipboard == null)
4263
+ // if (GrafreeD.clipboard == null)
41664264 // return;
41674265 boolean first = true;
41684266
4169
- if (GraphreeD.clipboardIsTempGroup)
4267
+ if (GrafreeD.clipboardIsTempGroup)
41704268 {
41714269 Composite temp;
41724270
....@@ -4177,7 +4275,7 @@
41774275 temp = (Composite)Applet3D.clipboard.deepCopy();
41784276 */
41794277 Object3D elem;
4180
- for (Enumeration e = /*temp.children*/GraphreeD.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
4278
+ for (Enumeration e = /*temp.children*/GrafreeD.clipboard.elements(); e.hasMoreElements();) // objList.add(copy.name))
41814279 {
41824280 Object3D child = (Object3D)e.nextElement();
41834281
....@@ -4191,7 +4289,7 @@
41914289 else
41924290 elem = child.deepCopy(); // ?
41934291 child.parent = keepparent;
4194
- //if (GraphreeD.clipboardIsTempGroup && LA.isIdentity(elem.fromParent))
4292
+ //if (GrafreeD.clipboardIsTempGroup && LA.isIdentity(elem.fromParent))
41954293 // elem = elem.get(0);
41964294 makeSomething(elem, true); // ?? first);
41974295 //group.addChild(elem);
....@@ -4211,14 +4309,14 @@
42114309 //Object3D cb = Applet3D.clipboard;
42124310 //temp.addChild(cb);
42134311 //makeSomething((expand?temp.copyExpand():temp.deepCopy()).get(0));
4214
- assert(GraphreeD.clipboard.parent == null);
4215
- Object3D /*Composite*/ keepparent = GraphreeD.clipboard.get(0).parent;
4216
- GraphreeD.clipboard.get(0).parent = null; // Avoid copy?
4217
- if (LA.isIdentity(GraphreeD.clipboard.toParent))
4218
- makeSomething(expand?GraphreeD.clipboard.get(0).copyExpand():GraphreeD.clipboard.get(0).deepCopy());
4312
+ assert(GrafreeD.clipboard.parent == null);
4313
+ Object3D /*Composite*/ keepparent = GrafreeD.clipboard.get(0).parent;
4314
+ GrafreeD.clipboard.get(0).parent = null; // Avoid copy?
4315
+ if (LA.isIdentity(GrafreeD.clipboard.toParent))
4316
+ makeSomething(expand?GrafreeD.clipboard.get(0).copyExpand():GrafreeD.clipboard.get(0).deepCopy());
42194317 else
4220
- makeSomething(expand?GraphreeD.clipboard.copyExpand():GraphreeD.clipboard.deepCopy());
4221
- GraphreeD.clipboard.get(0).parent = keepparent;
4318
+ makeSomething(expand?GrafreeD.clipboard.copyExpand():GrafreeD.clipboard.deepCopy());
4319
+ GrafreeD.clipboard.get(0).parent = keepparent;
42224320 }
42234321
42244322 ResetModel();
....@@ -4227,7 +4325,7 @@
42274325
42284326 void pasteInto(boolean copyit)
42294327 {
4230
-// if (GraphreeD.clipboard == null)
4328
+// if (GrafreeD.clipboard == null)
42314329 // return;
42324330
42334331 if (group.selection.size() != 1)
....@@ -4260,9 +4358,9 @@
42604358 {
42614359 boolean first = true;
42624360
4263
- if (GraphreeD.clipboardIsTempGroup)
4361
+ if (GrafreeD.clipboardIsTempGroup)
42644362 {
4265
- Composite temp = (Composite)GraphreeD.clipboard;
4363
+ Composite temp = (Composite)GrafreeD.clipboard;
42664364 Object3D copy;
42674365 for (Enumeration e = temp.children.elements(); e.hasMoreElements();)
42684366 {
....@@ -4272,7 +4370,7 @@
42724370 }
42734371 } else
42744372 {
4275
- linkSomething(GraphreeD.clipboard); //.get(0));
4373
+ linkSomething(GrafreeD.clipboard); //.get(0));
42764374 }
42774375 }
42784376 }
....@@ -4464,6 +4562,26 @@
44644562 makeSomething(csg);
44654563 }
44664564
4565
+ void Ungroup(Object3D g)
4566
+ {
4567
+ if (g instanceof HiddenObject)
4568
+ {
4569
+ HiddenObject h = (HiddenObject) g;
4570
+
4571
+ for (int i=0; i<h.ActualSize(); i++)
4572
+ {
4573
+ objEditor.makeSomething(h.get(i), false);
4574
+ }
4575
+ }
4576
+ else
4577
+ {
4578
+ for (int i=0; i<g.Size(); i++)
4579
+ {
4580
+ objEditor.makeSomething(g.get(i), false);
4581
+ }
4582
+ }
4583
+ }
4584
+
44674585 void ungroup()
44684586 {
44694587 /*
....@@ -4659,7 +4777,7 @@
46594777
46604778 void ImportGFD()
46614779 {
4662
- FileDialog browser = new FileDialog(objEditor.frame, "Import GraphreeD", FileDialog.LOAD);
4780
+ FileDialog browser = new FileDialog(objEditor.frame, "Import GrafreeD", FileDialog.LOAD);
46634781 browser.show();
46644782 String filename = browser.getFile();
46654783 if (filename != null && filename.length() > 0)
....@@ -4697,7 +4815,7 @@
46974815
46984816 void ImportVRMLX3D()
46994817 {
4700
- if (GraphreeD.standAlone)
4818
+ if (GrafreeD.standAlone)
47014819 {
47024820 /**/
47034821 FileDialog browser = new FileDialog(objEditor.frame, "Import VRML/X3D", FileDialog.LOAD);
....@@ -4714,7 +4832,7 @@
47144832
47154833 String GetFile(String dialogName)
47164834 {
4717
- if (GraphreeD.standAlone)
4835
+ if (GrafreeD.standAlone)
47184836 {
47194837 FileDialog browser = new FileDialog(objEditor.frame, dialogName, FileDialog.LOAD);
47204838 browser.show();
....@@ -4823,6 +4941,7 @@
48234941 private MenuItem resetsupportItem;
48244942 private MenuItem resetreferencesItem;
48254943 private MenuItem linkverticesItem;
4944
+ private MenuItem relinkverticesItem;
48264945 private MenuItem setMasterItem;
48274946 private MenuItem resetMeshItem;
48284947 private MenuItem stepAllItem;
....@@ -4841,8 +4960,10 @@
48414960 private MenuItem clearItem;
48424961 private MenuItem clearAllItem;
48434962 private MenuItem genUVItem;
4963
+ private MenuItem genNormalsMESHItem;
48444964 private MenuItem genNormalsCADItem;
48454965 private MenuItem genNormalsORGANItem;
4966
+ private MenuItem genNormalsMINEItem;
48464967 private MenuItem stripifyItem;
48474968 private MenuItem unstripifyItem;
48484969 private MenuItem trimItem;
....@@ -4884,6 +5005,7 @@
48845005 private MenuItem resetCentroidItem;
48855006 private MenuItem transformgeometryItem;
48865007 private MenuItem resetTransformItem;
5008
+ private MenuItem hideItem;
48875009 private MenuItem grabItem;
48885010 private MenuItem backItem;
48895011 private MenuItem frontItem;
....@@ -4904,6 +5026,7 @@
49045026
49055027 private MenuItem resetParentItem;
49065028 private MenuItem repairParentItem;
5029
+ private MenuItem repairShadowItem;
49075030 private MenuItem sortbysizeItem;
49085031 private MenuItem sortbynameItem;
49095032
....@@ -4924,6 +5047,7 @@
49245047 private MenuItem coneItem;
49255048 private MenuItem torusItem;
49265049 private MenuItem superItem;
5050
+ private MenuItem kleinItem;
49275051 private MenuItem blobItem;
49285052 private MenuItem latheItem;
49295053 private MenuItem bezierItem;
....@@ -4936,6 +5060,7 @@
49365060 private MenuItem csgItem;
49375061 private MenuItem templateItem;
49385062 private MenuItem textureItem;
5063
+ private MenuItem billboardItem;
49395064 private MenuItem shadowXItem;
49405065 private MenuItem shadowYItem;
49415066 private MenuItem shadowZItem;