// Set Shatter Runtime Mode properties static void SetShatterRuntimeMode(RFShatter shatter) { shatter.EditorMode(false); shatter.SetGeneralParameter(RFShatter.GeneralParams.pre_shatter, true); shatter.SetGeneralParameter(RFShatter.GeneralParams.pre_cap, true); shatter.SetGeneralParameter(RFShatter.GeneralParams.pre_weld, true); }
// Set Shatter Editor Mode properties static void SetShatterEditorMode(RFShatter shatter, float sizeFilter, bool preCap, bool remCap, bool remDbl, bool exInside) { shatter.EditorMode(true); shatter.SetGeneralParameter(RFShatter.GeneralParams.editor_mode_pre_cap, preCap); shatter.SetGeneralParameter(RFShatter.GeneralParams.editor_mode_remove_cap_faces, remCap); shatter.SetGeneralParameter(RFShatter.GeneralParams.editor_mode_separate_only, false); shatter.SetGeneralParameter(RFShatter.GeneralParams.editor_mode_elliminateCollinears_maxIterFuse, 150); shatter.SetGeneralParameter(RFShatter.GeneralParams.editor_mode_min_bbox_diag_size_filter, sizeFilter); shatter.SetGeneralParameter(RFShatter.GeneralParams.editor_mode_exclude_inside, exInside); shatter.SetGeneralParameter(RFShatter.GeneralParams.editor_mode_remove_double_faces, remDbl); shatter.SetGeneralParameter(RFShatter.GeneralParams.editor_mode_remove_inversed_double_faces, remDbl); }
// Set Shatter Runtime Mode properties static void SetShatterRuntimeMode(RFShatter shatter) { shatter.EditorMode(false); //shatter.SetGeneralParameter(RFShatter.GeneralParams.pre_shatter, true); //shatter.SetGeneralParameter(RFShatter.GeneralParams.pre_cap, true); //shatter.SetGeneralParameter(RFShatter.GeneralParams.pre_weld, true); // TODO tests vals shatter.SetGeneralParameter(RFShatter.GeneralParams.pre_shatter, true); shatter.SetGeneralParameter(RFShatter.GeneralParams.pre_cap, true); shatter.SetGeneralParameter(RFShatter.GeneralParams.pre_weld, true); shatter.SetGeneralParameter(RFShatter.GeneralParams.minFacesFilter, 3); }