use super::{FeatureInfo, Workbench};
pub const TAB: &str = "Welding";
pub const HOSTS: [&str; 4] = ["modeling", "sheetMetal", "assembly", "welding"];
pub fn is_weld_type(type_code: &str) -> bool {
brep_render::brep_kernel::is_weld_type(type_code)
}
pub static WELDING: Workbench = Workbench {
id: "welding",
label: "Welding",
glyph: "\u{E0D6}",
includes: |feature: &FeatureInfo<'_>| {
is_weld_type(feature.type_code)
|| matches!(feature.type_code, "S" | "D" | "P" | "ACOMP" | "APAT")
},
buttons: &[],
panels: &[
super::pmi::PANEL_ID,
super::assembly::CONSTRAINTS_PANEL_ID,
super::assembly::BOM_PANEL_ID,
],
};