All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.mihosoft.vrl.v3d.parametrics.CSGCache Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
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);
	}
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy