Skip to content

Commit

Permalink
Merge branch 'development' of github.com:NeuronRobotics/JCSG into dev…
Browse files Browse the repository at this point in the history
…elopment
  • Loading branch information
madhephaestus committed Dec 27, 2024
2 parents 7f6af18 + cf25ced commit 552527a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/main/java/eu/mihosoft/vrl/v3d/CSG.java
Original file line number Diff line number Diff line change
Expand Up @@ -2570,6 +2570,9 @@ public CSG setRegenerate(IRegenerate function) {
regenerate = function;
return this;
}
public IRegenerate getRegenerate() {
return regenerate ;
}

public CSG regenerate() {
this.markForRegeneration = false;
Expand Down Expand Up @@ -3151,6 +3154,7 @@ public boolean isHole() {

public CSG syncProperties(CSG dying) {
getStorage().syncProperties(dying.getStorage());
regenerate=dying.regenerate;
return this;
}

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/eu/mihosoft/vrl/v3d/PropertyStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
*/
package eu.mihosoft.vrl.v3d;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
Expand Down Expand Up @@ -122,6 +123,12 @@ public void syncProperties(PropertyStorage dying) {
HashSet<String> clonedSet = new HashSet<String>();
clonedSet.addAll((HashSet<String>)property);
property=clonedSet;
}
if(ArrayList.class.isInstance(property)) {
Object clonedSet = map.get(o);
ArrayList<String> newList = clonedSet==null?new ArrayList<String>():(ArrayList<String>)clonedSet;
newList.addAll((ArrayList<String>)property);
property=newList;
}
set(o,property);
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/eu/mihosoft/vrl/v3d/StlExportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public class StlExportTest {

@Test
public void makeBadSTL() throws IOException {
//Plane.setEPSILON(1.0e-11);
//Vector3d.setEXPORTEPSILON(10);
Plane.setEPSILON(1.0e-12);
Vector3d.setEXPORTEPSILON(1.0e-9);
CSG.setUseGPU(false);
CSG.setPreventNonManifoldTriangles(true);
CSG badExport2 = CSG.text(" A QUICK BROWN FOX JUMPS OVER THE LAZY DOG", 10,30,"Serif Regular").movey(30);
Expand Down

0 comments on commit 552527a

Please sign in to comment.