Skip to main content

Crate geop_ops_drawing

Crate geop_ops_drawing 

Source
Expand description

2-D engineering drawings of a part: projected views with hidden lines and silhouettes (hidden_lines) — of an assembly, of every part placed, where it is placed (scene) — laid out on a sheet with dimensions, centre marks, a title block and a ballooned bill of materials (see geop_lib_sheet); the Drawing operation of a program, which describes one; and the DrawingExporter, which writes it as SVG or DXF.

Re-exports§

pub use annotation::Along;
pub use annotation::Annotation;
pub use annotation::Candidate;
pub use annotation::EdgeShape;
pub use annotation::Leader;
pub use annotation::Pickable;
pub use annotation::Target;
pub use drawing::DrawingArgs;
pub use drawing::Layout;
pub use drawing::PartsListLine;
pub use drawing::Projected;
pub use drawing::Projection;
pub use drawing::SheetSize;
pub use drawing::annotated;
pub use drawing::arrange;
pub use drawing::compose;
pub use drawing::layout;
pub use drawing::project;
pub use hidden_lines::LineKind;
pub use hidden_lines::ProjectedView;
pub use hidden_lines::ViewLine;
pub use hidden_lines::ViewOptions;
pub use hidden_lines::project_view;
pub use operation::Drawing;
pub use operation::DrawingSession;
pub use view::DrawnView;
pub use view::ViewFrame;
pub use view::ViewKind;

Modules§

annotation
What is added on a drawing’s sheet by hand: dimensions between what its views show, notes and centre marks (Annotation) — and what in a view can be picked to add them (Candidate).
drawing
What a drawing shows (DrawingArgs), and composing it on a sheet (compose): the views laid out in third- or first-angle projection, each with its visible and hidden lines, centre marks on its circles and its overall size dimensioned, the dimensions asked for, a section view with its cut hatched, a border and a title block — and, if asked for, the parts list of the parts placed in it above the title block, each line ballooned where its part is drawn.
hidden_lines
Hidden-line removal: a part’s edges and silhouettes, projected onto the paper, each piece of them classified visible or hidden.
layer
The layers a drawing is drawn on (see Layer), in the order a sheet writes them (ALL).
operation
Drawing: a step describing a 2-D drawing of the part as the steps before it built it — its views, a section, the title block, and the dimensions, notes and centre marks added on its sheet. It changes nothing; the drawing is made from it when it is downloaded (crate::drawing::compose).
scene
What a drawing draws: the faces of a part and of every part placed in it, however deep, each where it is placed (Scene) — and seeing them all from one direction at once (Scene::project).
section
Section views: the part cut by a plane, with what lies on the side its normal points to taken away — by the kernel’s own boolean, subtracting a box standing on the plane from every solid.
silhouette
Silhouettes: where a curved face turns away from the eye, the outline it shows without any edge there — the sides of a cylinder seen side on.
view
The directions a part is drawn from, and projecting onto the paper.

Structs§

DrawingExporter
Writes a drawing of the part as SVG or DXF.
DrawingOptions
Which drawing is written, and what of it is changed from what its step describes — as the command line asks.

Functions§

drawing
The drawing the step step describes: its arguments, checked against the part before it.
drawing_steps
Every drawing the steps reader reads describe, by the id of its step, in the order of the steps.
parts_list
The bill of materials of the part reader reads, the program of the file file, as a drawing lists it (see PartsListLine): flat, each part and wire once with its count. Empty if args asks for none.
register
Adds what this crate offers an editor to r: drawings of a part, and the files they are written as.