More numeric types baby steps (#5388)

* Add units to Paths

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Add some NumericType combination functions

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Fix docs/json/snippets generation from schemas

Signed-off-by: Nick Cameron <nrc@ncameron.org>

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-02-20 10:12:37 +13:00
committed by GitHub
parent b2e1d21d45
commit 45707d2974
83 changed files with 40831 additions and 18188 deletions

View File

@ -90,6 +90,7 @@ async fn inner_circle(
SketchOrSurface::SketchSurface(surface) => surface,
SketchOrSurface::Sketch(group) => group.on,
};
let units = sketch_surface.units();
let sketch = crate::std::sketch::inner_start_profile_at(
[data.center[0] + data.radius, data.center[1]],
sketch_surface,
@ -125,6 +126,7 @@ async fn inner_circle(
from,
to: from,
tag: tag.clone(),
units,
geo_meta: GeoMeta {
id,
metadata: args.source_range.into(),
@ -236,6 +238,7 @@ async fn inner_circle_three_point(
from,
to: from,
tag: tag.clone(),
units: sketch.units,
geo_meta: GeoMeta {
id,
metadata: args.source_range.into(),
@ -402,6 +405,7 @@ async fn inner_polygon(
from: from.into(),
to: *vertex,
tag: tag.clone(),
units: sketch.units,
geo_meta: GeoMeta {
id,
metadata: args.source_range.into(),
@ -437,6 +441,7 @@ async fn inner_polygon(
from: from.into(),
to: vertices[0],
tag: tag.clone(),
units: sketch.units,
geo_meta: GeoMeta {
id: close_id,
metadata: args.source_range.into(),