use super::{FeatureInfo, Workbench};
pub const TAB: &str = "Gears";
pub const HOSTS: [&str; 1] = ["gears"];
pub fn is_gear_type(type_code: &str) -> bool {
brep_render::brep_kernel::is_gear_type(type_code)
}
fn includes(feature: &FeatureInfo<'_>) -> bool {
is_gear_type(feature.type_code)
|| matches!(
feature.type_code,
"S" | "D" | "P" | "P.CU" | "P.CY" | "P.CO" | "E" | "R" | "H" | "B" | "F" | "CH" | "PATTERN" | "M" | "XFORM"
)
}
pub static GEARS: Workbench = Workbench {
id: "gears",
label: "Gears",
glyph: "\u{E0E3}",
includes,
buttons: &[],
panels: &[],
};