Skip to main content

Crate geop_ops_sketch3d

Crate geop_ops_sketch3d 

Source
Expand description

3-D sketches as an operation of a program: AddSketch3d draws points, lines, arcs and splines in space — placed on the part’s vertices, edges, faces and datums where the pointer hits them, or at typed coordinates — and constrains them (see geop_core_sketch::space). What it builds is a path for a sweep to run along, or a rail for one to follow: the sketch is a target of the part (geop_ops_model::sketch3d), a path as a whole.

Structs§

AddSketch3d
Adds a sketch in space to the part, named by the operation’s id: points, lines, arcs through three points and splines through points, with the constraints of a 3-D sketch (see geop_core_sketch::space). The step K defines the part’s 3-D sketch K (see sketch3d), a path as a whole, and builds it as a wire: an edge for every curve drawn, construction curves aside, and a vertex for every point a curve of it ends at, every point two curves pass through, and every point that stands on its own. Points made one by a coincidence are one vertex, named after the lowest of their ids: the edge of curve c3 is named sketch3d(K,c3), the vertex of point p1 sketch3d(K,p1). A curve passing through a point another curve passes through too — a spline drawn through it, an arc’s middle point — is cut there, into edges named after the curve and the point each starts at: sketch3d(K,c3,p0), sketch3d(K,c3,p1). Curves that meet anywhere else, or two points at one place that are not one, are refused by name (see geop_core_sketch::space::Sketch3d::check_wire).
AddSketch3dArgs
Sketch3dSession
The state of editing a 3-D sketch beyond its arguments.

Enums§

Reference3d
Something of the sketch given by an element of the part: where a fixed point is, what a reference curve is, which way a direction runs.
Target
What a Reference3d gives the sketch.
Tool
What a click in the viewport does.

Functions§

register
Adds what this crate offers an editor to r: the step adding a 3-D sketch.

Type Aliases§

Sketch3dEditing
What a 3-D sketch step keeps while it is edited: the drawing’s session, and the keys of the visuals selected.