pub struct SheetMetalRules {
pub thickness: f64,
pub bend_radius: f64,
pub k_factor: f64,
pub relief: Relief,
pub relief_ratio: f64,
pub corner_gap: f64,
}Expand description
How a body’s sheet metal is made and bent: what the base flange sets and every flange and the flat pattern of the body follow.
Fields§
§thickness: f64How thick the sheet is.
bend_radius: f64The inner radius of a bend, unless a flange gives its own.
k_factor: f64Where the neutral surface lies across the thickness, from the inside
of a bend (0) to its outside (1): what a bend’s developed length
is measured on, angle * (radius + k_factor * thickness).
relief: ReliefWhat is cut beside a flange narrower than its edge.
relief_ratio: f64A relief’s width, and how far it reaches past the bend, in thicknesses.
corner_gap: f64The gap a flange keeps from a bend that already meets its edge at a corner, so that the two stay apart: an open corner.
Implementations§
Source§impl SheetMetalRules
impl SheetMetalRules
Sourcepub fn check(&self) -> GeopResult<()>
pub fn check(&self) -> GeopResult<()>
Checks that the rules describe sheet metal that can be built.
Sourcepub fn relief_size(&self) -> Option<f64>
pub fn relief_size(&self) -> Option<f64>
How wide a relief is, and how far past the bend it reaches; none for a tear.
Trait Implementations§
Source§impl Clone for SheetMetalRules
impl Clone for SheetMetalRules
Source§fn clone(&self) -> SheetMetalRules
fn clone(&self) -> SheetMetalRules
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more