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:
@ -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(),
|
||||
|
Reference in New Issue
Block a user