// Constructor public RFShatterAdvanced(RFShatterAdvanced src) { seed = src.seed; decompose = src.decompose; removeCollinear = src.removeCollinear; copyComponents = src.copyComponents; inputPrecap = src.inputPrecap; outputPrecap = src.outputPrecap; removeDoubleFaces = src.removeDoubleFaces; excludeInnerFragments = src.excludeInnerFragments; elementSizeThreshold = src.elementSizeThreshold; vertexLimitation = src.vertexLimitation; vertexAmount = src.vertexAmount; }
// Copy from void CopyFrom(RayfireShatter shatter) { type = shatter.type; voronoi = new RFVoronoi(shatter.voronoi); splinters = new RFSplinters(shatter.splinters); slabs = new RFSplinters(shatter.slabs); radial = new RFRadial(shatter.radial); custom = new RFCustom(shatter.custom); slice = new RFSlice(shatter.slice); tets = new RFTets(shatter.tets); mode = shatter.mode; material.CopyFrom(shatter.material); clusters = new RFShatterCluster(shatter.clusters); advanced = new RFShatterAdvanced(shatter.advanced); }