Skip to main content

solve

Function solve 

Source
pub fn solve(doc: &SketchDoc) -> Result<(SketchDoc, SketchDiagnostics), String>
Expand description

Solve doc and return the solved coordinates plus the constraint diagnostics.

remove_implied_duplicates is left off (the display path never edits constraints, so we keep every authored constraint) and the Newton polish is left on (polish: None → default true) so the displayed coordinates match what a committed feature-pipeline solve would produce.