Offset Plane: through a point (#3765)

* claim: Offset Plane through a point

* Offset Plane: through a point instead of at a distance
This commit is contained in:
Jesper We
2026-10-25 06:02:14 +00:00
committed by GitHub
parent 611d4eb6b8
commit bbc3aa4301
21 changed files with 230 additions and 41 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ pub static COMMANDS: &[CommandSpec] = &[
];
/// A reference from its JSON form.
fn geo(s: &Session, v: Option<&Value>, cmd: &str, what: &str) -> Result<GeoRef> {
pub(super) fn geo(s: &Session, v: Option<&Value>, cmd: &str, what: &str) -> Result<GeoRef> {
let v = v.ok_or_else(|| bad(cmd, format!("`{what}` is required: {REF}")))?;
let p3 = |k: &str| v.get(k).and_then(vec3);
let mut g = if v.get("type").is_some() {