eu.mihosoft.vrl.v3d.parametrics.CSGCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaCad Show documentation
Show all versions of JavaCad Show documentation
A Java based CSG Cad library
package eu.mihosoft.vrl.v3d.parametrics;
import java.util.HashMap;
import eu.mihosoft.vrl.v3d.CSG;
import eu.mihosoft.vrl.v3d.ItoCSG;
public class CSGCache {
private HashMap chache = new HashMap<>();
CSG get(String key, ItoCSG builder){
if(chache.get(key) == null){
chache.put(key, builder.toCSG());
}
return chache.get(key);
}
}