Skip to main content

Crate geop_ops_sheetmetal

Crate geop_ops_sheetmetal 

Source
Expand description

Sheet metal: bodies of one thickness, flat faces joined by bends — brackets and enclosures — and the flat blanks they are cut from.

  • BaseFlange starts a body from a sketch: a plate from its area, or a bent strip from a chain of lines and arcs, with the body’s SheetMetalRules (thickness, bend radius, K-factor, reliefs).
  • EdgeFlange bends a flange up from a straight edge of the body, cutting reliefs beside it and keeping a gap at corners; Hem folds an edge right back on itself.
  • SheetCut cuts holes and notches through the body, across its bends unrolled.
  • FlatPattern unfolds the body: each bend laid flat as long as its developed length, with its bend lines; FlatPatternDxf writes it for laser cutting.

Each operation records the body’s Sheet for the solid it builds, in the part’s target sheets: which faces are flat and which are bends, and how they join, so that the next flange and the flat pattern work from what the body is made of rather than guessing it from its geometry. The solid itself is built from the sheet in one go (see thicken).

Re-exports§

pub use base_flange::BaseFlange;
pub use base_flange::BaseFlangeArgs;
pub use body::SheetBody;
pub use body::Sheets;
pub use body::sheet_body;
pub use body::sheets;
pub use cut::FlatFaceRef;
pub use cut::SheetCut;
pub use cut::SheetCutArgs;
pub use cutting::FlatPatternDxf;
pub use cutting::FlatPatternOptions;
pub use cutting::cutting_sheet;
pub use edge_flange::Corner;
pub use edge_flange::EdgeFlange;
pub use edge_flange::EdgeFlangeArgs;
pub use edge_flange::EdgeRef;
pub use edge_flange::FlangePosition;
pub use edge_flange::LengthReference;
pub use edge_flange::edge;
pub use flat_pattern::BendLine;
pub use flat_pattern::FlatPattern;
pub use flat_pattern::FlatPatternArgs;
pub use flat_pattern::FlatPatternData;
pub use flat_pattern::SolidRef;
pub use hem::Hem;
pub use hem::HemArgs;
pub use hem::HemKind;
pub use sheet::Relief;
pub use sheet::Sheet;
pub use sheet::SheetMetalRules;

Modules§

base_flange
BaseFlange: the first piece of a sheet-metal body — a plate from a sketch’s area, or a bent strip from a chain of lines and arcs.
body
What the sheet-metal steps record of the bodies they build — the part’s target sheets, which every one of them revises — and how a step of them runs ([run]): it works out what it makes (made), records it, and builds it into the model.
cut
SheetCut: holes and notches cut through a sheet-metal body along a sketch, across its bends unrolled.
cutting
A sheet-metal body’s flat pattern laid out for cutting: its outline and holes on the CUT layer, its bend lines on the BEND layer with how each is bent beside it (cutting_sheet), written as DXF by the FlatPatternDxf exporter.
edge_flange
EdgeFlange: a flange bent up from a straight edge of a sheet-metal body.
examples
The examples of sheet metal an editor offers: a bracket flanged and cut.
flat_pattern
FlatPattern: a sheet-metal body unfolded into the flat blank it is cut from.
hem
Hem: the edge of a sheet folded right back on itself.
layout
The sheet laid out flat — Layout — and cut.
sheet
The sheet-metal model a body is built from and unfolded with: its SheetMetalRules, and its Sheet — flat faces joined by bends — recorded for the solid it builds (see crate::body::sheets).
thicken
Thickening one side of a sheet into the solid sheet of metal it is: SheetSurface, and thicken, which builds its solid in one go.

Functions§

register
Adds what this crate offers an editor to r: sheet metal: flanges, hems, cuts, the flat pattern and its DXF, and the examples of them.