Normand Briere
2018-05-22 42107f9a01652cb2f47228d20c1148a2a22f6a63
Object3D.java
....@@ -355,7 +355,7 @@
355355
356356 int MemorySize()
357357 {
358
- if (memorysize == 0)
358
+ if (true) // memorysize == 0)
359359 {
360360 try
361361 {
....@@ -1446,7 +1446,16 @@
14461446 // if (other == null)
14471447 // return;
14481448
1449
- System.out.println("Link support this = " + this + "; other = " + other);
1449
+ if (other != null)
1450
+ {
1451
+ BoundaryRep.SEUIL = other.material.cameralight;
1452
+
1453
+ // Set default to 0.1
1454
+ BoundaryRep.SEUIL /= 2;
1455
+ System.out.println("SEUIL = " + BoundaryRep.SEUIL);
1456
+ }
1457
+
1458
+ System.out.println("Link this = " + this + "; support = " + other);
14501459
14511460 //if (bRep != null)
14521461 // bRep.linkVerticesThis(other.bRep);
....@@ -1816,8 +1825,9 @@
18161825 if (obj.name == null)
18171826 continue; // can't be a null one
18181827
1819
- //if (n.contains(obj.name)) // dec 2013 name.split(":")[0])) // Poser generates a count
1820
- if (n.startsWith(obj.name))
1828
+ String name = obj.name.split(":")[0]; // Poser generates a count
1829
+ //if (n.startsWith(obj.name))
1830
+ if (n.contains(name))
18211831 {
18221832 theobj = obj;
18231833 count++;
....@@ -2732,6 +2742,24 @@
27322742 blockloop = false;
27332743 }
27342744
2745
+ void GenNormalsMINE()
2746
+ {
2747
+ if (blockloop)
2748
+ return;
2749
+
2750
+ blockloop = true;
2751
+ GenNormalsMINE0();
2752
+ for (int i = 0; i < Children().Size(); i++)
2753
+ {
2754
+ Object3D child = (Object3D) Children().get(i); // reserve(i);
2755
+ if (child == null)
2756
+ continue;
2757
+ child.GenNormalsMINE();
2758
+// Children().release(i);
2759
+ }
2760
+ blockloop = false;
2761
+ }
2762
+
27352763 void ClearColors()
27362764 {
27372765 if (blockloop)
....@@ -2876,6 +2904,15 @@
28762904 if (bRep != null)
28772905 {
28782906 bRep.GenerateNormals(crease);
2907
+ Touch();
2908
+ }
2909
+ }
2910
+
2911
+ void GenNormalsMINE0()
2912
+ {
2913
+ if (bRep != null)
2914
+ {
2915
+ bRep.GenerateNormalsMINE();
28792916 Touch();
28802917 }
28812918 }
....@@ -4111,7 +4148,7 @@
41114148 if (blockloop)
41124149 return;
41134150
4114
- for (int i=0; i<size(); i++)
4151
+ for (int i=0; i<Size(); i++)
41154152 {
41164153 if (get(i).parent != this)
41174154 {
....@@ -5519,7 +5556,9 @@
55195556 display.options2[2] = material.factor;
55205557
55215558 cColor.HSBtoRGB(material.color, material.modulation, 1, display.options3);
5522
- display.options3[3] = material.cameralight/0.2f;
5559
+ display.options4[0] = material.cameralight/0.2f;
5560
+ display.options4[1] = material.subsurface;
5561
+ display.options4[2] = material.sheen;
55235562
55245563 // if (display.CURRENTANTIALIAS > 0)
55255564 // display.options3[3] /= 4;
....@@ -7731,7 +7770,7 @@
77317770 if (parent == null)
77327771 {
77337772 System.out.println("NULL PARENT");
7734
- new Exception().printStackTrace();
7773
+ //new Exception().printStackTrace();
77357774 } else
77367775 {
77377776 if (parent instanceof BezierPatch)