One tool window for sketch Fillet and the three sketch Chamfers (#789)
Sketch Fillet and the three sketch Chamfers share one tool window, with its own icons, labels and a scenario.
This commit is contained in:
1 parent
dbfb689f6c
commit
bdcfe3ff1d
13 files changed
+567
-70
No files matched your search
@@ -62,6 +62,16 @@ pub fn anchor(app: &SolveApp, d: &Dialog) -> Option<(Vec3, Option<Vec3>)> {
|
||||
};
|
||||
(ss.plane.to_world(mid), dir)
|
||||
}
|
||||
// A corner picked into a sketch window ("<sketch id>:<point id>", or a bare id when it
|
||||
// was selected outside one): the value box sits on the corner itself.
|
||||
Sel::SketchPoint { id } => {
|
||||
let (sketch, point) = match id.split_once(':') {
|
||||
Some((sketch, point)) => (sketch.parse().ok()?, point),
|
||||
None => (app.session.active_sketch?, id.as_str()),
|
||||
};
|
||||
let ss = st.sketch(sketch)?;
|
||||
(ss.plane.to_world(ss.sketch.point(ss.sketch.resolve_point(point)?)?), None)
|
||||
}
|
||||
Sel::Body { name } => (st.body(name)?.mesh().bounds().center(), None),
|
||||
Sel::Plane { name } => {
|
||||
let pl = solidcraft_engine::geom::Plane::named(name).or_else(|| {
|
||||
|
||||
Reference in new issue
Block a user