Add units to geometry structs (#5075)

* Make all geometry KclValue variants into struct variants

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

* Add units to geometry types

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

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-01-22 09:42:09 +13:00
committed by GitHub
parent 965cb18059
commit 2692f2b73a
75 changed files with 83685 additions and 65672 deletions

File diff suppressed because it is too large Load Diff

28
docs/kcl/types/Face.md Normal file
View File

@ -0,0 +1,28 @@
---
title: "Face"
excerpt: "A face."
layout: manual
---
A face.
**Type:** `object`
## Properties
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `id` |`string`| The id of the face. | No |
| `value` |`string`| The tag of the face. | No |
| `xAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the faces X axis be? | No |
| `yAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the faces Y axis be? | No |
| `zAxis` |[`Point3d`](/docs/kcl/types/Point3d)| The z-axis (normal). | No |
| `solid` |[`Solid`](/docs/kcl/types/Solid)| The solid the face is on. | No |
| `units` |[`UnitLen`](/docs/kcl/types/UnitLen)| A face. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |

View File

@ -20,6 +20,7 @@ A helix.
| `revolutions` |`number`| Number of revolutions. | No |
| `angleStart` |`number`| Start angle (in degrees). | No |
| `ccw` |`boolean`| Is the helix rotation counter clockwise? | No |
| `units` |[`UnitLen`](/docs/kcl/types/UnitLen)| A helix. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |

View File

@ -20,6 +20,7 @@ A helix.
| `revolutions` |`number`| Number of revolutions. | No |
| `angleStart` |`number`| Start angle (in degrees). | No |
| `ccw` |`boolean`| Is the helix rotation counter clockwise? | No |
| `units` |[`UnitLen`](/docs/kcl/types/UnitLen)| A helix. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |

View File

@ -168,7 +168,6 @@ Any KCL value.
----
A plane.
**Type:** `object`
@ -181,17 +180,10 @@ A plane.
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: [`Plane`](/docs/kcl/types/Plane)| | No |
| `id` |`string`| The id of the plane. | No |
| `value` |[`PlaneType`](/docs/kcl/types/PlaneType)| Any KCL value. | No |
| `origin` |[`Point3d`](/docs/kcl/types/Point3d)| Origin of the plane. | No |
| `xAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the planes X axis be? | No |
| `yAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the planes Y axis be? | No |
| `zAxis` |[`Point3d`](/docs/kcl/types/Point3d)| The z-axis (normal). | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |
| `value` |[`Plane`](/docs/kcl/types/Plane)| Any KCL value. | No |
----
A face.
**Type:** `object`
@ -203,14 +195,8 @@ A face.
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Face`| | No |
| `id` |`string`| The id of the face. | No |
| `value` |`string`| The tag of the face. | No |
| `xAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the faces X axis be? | No |
| `yAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the faces Y axis be? | No |
| `zAxis` |[`Point3d`](/docs/kcl/types/Point3d)| The z-axis (normal). | No |
| `solid` |[`Solid`](/docs/kcl/types/Solid)| The solid the face is on. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |
| `type` |enum: [`Face`](/docs/kcl/types/Face)| | No |
| `value` |[`Face`](/docs/kcl/types/Face)| Any KCL value. | No |
----
@ -246,7 +232,6 @@ A face.
----
An solid is a collection of extrude surfaces.
**Type:** `object`
@ -259,14 +244,7 @@ An solid is a collection of extrude surfaces.
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: [`Solid`](/docs/kcl/types/Solid)| | No |
| `id` |`string`| The id of the solid. | No |
| `value` |`[` [`ExtrudeSurface`](/docs/kcl/types/ExtrudeSurface) `]`| The extrude surfaces. | No |
| `sketch` |[`Sketch`](/docs/kcl/types/Sketch)| The sketch. | No |
| `height` |`number`| The height of the solid. | No |
| `startCapId` |`string`| The id of the extrusion start cap | No |
| `endCapId` |`string`| The id of the extrusion end cap | No |
| `edgeCuts` |`[` [`EdgeCut`](/docs/kcl/types/EdgeCut) `]`| Chamfers or fillets on this solid. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| Metadata. | No |
| `value` |[`Solid`](/docs/kcl/types/Solid)| Any KCL value. | No |
----
@ -286,7 +264,6 @@ An solid is a collection of extrude surfaces.
----
A helix.
**Type:** `object`
@ -299,11 +276,7 @@ A helix.
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: [`Helix`](/docs/kcl/types/Helix)| | No |
| `value` |`string`| The id of the helix. | No |
| `revolutions` |`number`| Number of revolutions. | No |
| `angleStart` |`number`| Start angle (in degrees). | No |
| `ccw` |`boolean`| Is the helix rotation counter clockwise? | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |
| `value` |[`Helix`](/docs/kcl/types/Helix)| Any KCL value. | No |
----

View File

@ -22,6 +22,7 @@ A plane.
| `xAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the planes X axis be? | No |
| `yAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the planes Y axis be? | No |
| `zAxis` |[`Point3d`](/docs/kcl/types/Point3d)| The z-axis (normal). | No |
| `units` |[`UnitLen`](/docs/kcl/types/UnitLen)| A plane. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |

View File

@ -21,6 +21,7 @@ A sketch is a collection of paths.
| `on` |[`SketchSurface`](/docs/kcl/types/SketchSurface)| What the sketch is on (can be a plane or a face). | No |
| `start` |[`BasePath`](/docs/kcl/types/BasePath)| The starting path. | No |
| `tags` |`object`| Tag identifiers that have been declared in this sketch. | No |
| `units` |[`UnitLen`](/docs/kcl/types/UnitLen)| A sketch is a collection of paths. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| Metadata. | No |

View File

@ -30,6 +30,7 @@ A sketch is a collection of paths.
| `on` |[`SketchSurface`](/docs/kcl/types/SketchSurface)| What the sketch is on (can be a plane or a face). | No |
| `start` |[`BasePath`](/docs/kcl/types/BasePath)| The starting path. | No |
| `tags` |`object`| Tag identifiers that have been declared in this sketch. | No |
| `units` |[`UnitLen`](/docs/kcl/types/UnitLen)| A sketch or a group of sketches. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| Metadata. | No |

View File

@ -31,6 +31,7 @@ A plane.
| `xAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the planes X axis be? | No |
| `yAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the planes Y axis be? | No |
| `zAxis` |[`Point3d`](/docs/kcl/types/Point3d)| The z-axis (normal). | No |
| `units` |[`UnitLen`](/docs/kcl/types/UnitLen)| A sketch type. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |
@ -54,6 +55,7 @@ A face.
| `yAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the faces Y axis be? | No |
| `zAxis` |[`Point3d`](/docs/kcl/types/Point3d)| The z-axis (normal). | No |
| `solid` |[`Solid`](/docs/kcl/types/Solid)| The solid the face is on. | No |
| `units` |[`UnitLen`](/docs/kcl/types/UnitLen)| A sketch type. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |

View File

@ -23,6 +23,7 @@ An solid is a collection of extrude surfaces.
| `startCapId` |`string`| The id of the extrusion start cap | No |
| `endCapId` |`string`| The id of the extrusion end cap | No |
| `edgeCuts` |`[` [`EdgeCut`](/docs/kcl/types/EdgeCut) `]`| Chamfers or fillets on this solid. | No |
| `units` |[`UnitLen`](/docs/kcl/types/UnitLen)| An solid is a collection of extrude surfaces. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| Metadata. | No |

View File

@ -32,6 +32,7 @@ An solid is a collection of extrude surfaces.
| `startCapId` |`string`| The id of the extrusion start cap | No |
| `endCapId` |`string`| The id of the extrusion end cap | No |
| `edgeCuts` |`[` [`EdgeCut`](/docs/kcl/types/EdgeCut) `]`| Chamfers or fillets on this solid. | No |
| `units` |[`UnitLen`](/docs/kcl/types/UnitLen)| A solid or a group of solids. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| Metadata. | No |

107
docs/kcl/types/UnitLen.md Normal file
View File

@ -0,0 +1,107 @@
---
title: "UnitLen"
excerpt: ""
layout: manual
---
**This schema accepts exactly one of the following:**
**Type:** `object`
## Properties
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Mm`| | No |
----
**Type:** `object`
## Properties
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Cm`| | No |
----
**Type:** `object`
## Properties
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `M`| | No |
----
**Type:** `object`
## Properties
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Inches`| | No |
----
**Type:** `object`
## Properties
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Feet`| | No |
----
**Type:** `object`
## Properties
| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Yards`| | No |
----

View File

@ -2051,8 +2051,8 @@ export class SceneEntities {
)
if (!(sk instanceof Reason)) {
sketch = sk
} else if ((maybeSketch as Solid).sketch) {
sketch = (maybeSketch as Solid).sketch
} else if (maybeSketch && (maybeSketch.value as Solid)?.sketch) {
sketch = (maybeSketch.value as Solid).sketch
}
if (!sketch) return
@ -2541,7 +2541,7 @@ export function sketchFromPathToNode({
const varDec = _varDec.node
const result = programMemory.get(varDec?.id?.name || '')
if (result?.type === 'Solid') {
return result.sketch
return result.value.sketch
}
const sg = sketchFromKclValue(result, varDec?.id?.name)
if (err(sg)) {

View File

@ -95,9 +95,11 @@ export const processMemory = (programMemory: ProgramMemory) => {
) {
const sk = sketchFromKclValueOptional(val, key)
if (val.type === 'Solid') {
processedMemory[key] = val.value.map(({ ...rest }: ExtrudeSurface) => {
processedMemory[key] = val.value.value.map(
({ ...rest }: ExtrudeSurface) => {
return rest
})
}
)
} else if (!(sk instanceof Reason)) {
processedMemory[key] = sk.paths.map(({ __geoMeta, ...rest }: Path) => {
return rest

View File

@ -54,6 +54,9 @@ const mySketch001 = startSketchOn('XY')
},
],
id: expect.any(String),
units: {
type: 'Mm',
},
__meta: [{ sourceRange: [46, 71, 0] }],
},
})
@ -71,6 +74,8 @@ const mySketch001 = startSketchOn('XY')
// @ts-ignore
const sketch001 = execState.memory.get('mySketch001')
expect(sketch001).toEqual({
type: 'Solid',
value: {
type: 'Solid',
id: expect.any(String),
value: [
@ -91,6 +96,9 @@ const mySketch001 = startSketchOn('XY')
],
sketch: {
id: expect.any(String),
units: {
type: 'Mm',
},
__meta: expect.any(Array),
on: expect.any(Object),
start: expect.any(Object),
@ -121,7 +129,11 @@ const mySketch001 = startSketchOn('XY')
height: 2,
startCapId: expect.any(String),
endCapId: expect.any(String),
units: {
type: 'Mm',
},
__meta: [{ sourceRange: [46, 71, 0] }],
},
})
})
test('sketch extrude and sketch on one of the faces', async () => {
@ -153,6 +165,8 @@ const sk2 = startSketchOn('XY')
const geos = [programMemory.get('theExtrude'), programMemory.get('sk2')]
expect(geos).toEqual([
{
type: 'Solid',
value: {
type: 'Solid',
id: expect.any(String),
value: [
@ -189,6 +203,9 @@ const sk2 = startSketchOn('XY')
on: expect.any(Object),
start: expect.any(Object),
type: 'Sketch',
units: {
type: 'Mm',
},
tags: {
p: {
__meta: [
@ -242,9 +259,15 @@ const sk2 = startSketchOn('XY')
height: 2,
startCapId: expect.any(String),
endCapId: expect.any(String),
units: {
type: 'Mm',
},
__meta: [{ sourceRange: [38, 63, 0] }],
},
},
{
type: 'Solid',
value: {
type: 'Solid',
id: expect.any(String),
value: [
@ -277,6 +300,9 @@ const sk2 = startSketchOn('XY')
],
sketch: {
id: expect.any(String),
units: {
type: 'Mm',
},
__meta: expect.any(Array),
on: expect.any(Object),
start: expect.any(Object),
@ -335,6 +361,10 @@ const sk2 = startSketchOn('XY')
startCapId: expect.any(String),
endCapId: expect.any(String),
__meta: [{ sourceRange: [342, 367, 0] }],
units: {
type: 'Mm',
},
},
},
])
})

View File

@ -221,6 +221,9 @@ const newVar = myVar + 1`
},
],
id: expect.any(String),
units: {
type: 'Mm',
},
__meta: [{ sourceRange: [39, 63, 0] }],
},
})

View File

@ -1729,7 +1729,7 @@ export function transformAstSketchLines({
let kclVal = programMemory.get(varName)
let sketch
if (kclVal?.type === 'Solid') {
sketch = kclVal.sketch
sketch = kclVal.value.sketch
} else {
sketch = sketchFromKclValue(kclVal, varName)
if (err(sketch)) {

View File

@ -539,7 +539,8 @@ export function sketchFromKclValueOptional(
): Sketch | Reason {
if (obj?.value?.type === 'Sketch') return obj.value
if (obj?.value?.type === 'Solid') return obj.value.sketch
if (obj?.type === 'Solid') return obj.sketch
if (obj?.type === 'Sketch') return obj.value
if (obj?.type === 'Solid') return obj.value.sketch
if (!varName) {
varName = 'a KCL value'
}

View File

@ -195,7 +195,7 @@ export async function submitAndAwaitTextToKcl({
.toLowerCase()}${FILE_EXT}`
if (isDesktop()) {
// We have to pre-emptively run our unique file name logic,
// We have to preemptively run our unique file name logic,
// so that we can pass the unique file name to the toast,
// and by extension the file-deletion-on-reject logic.
newFileName = getNextFileName({

View File

@ -121,8 +121,8 @@ impl Node<MemberExpression> {
source_ranges: vec![self.clone().into()],
}))
}
(KclValue::Solid(solid), Property::String(prop)) if prop == "sketch" => Ok(KclValue::Sketch {
value: Box::new(solid.sketch),
(KclValue::Solid { value }, Property::String(prop)) if prop == "sketch" => Ok(KclValue::Sketch {
value: Box::new(value.sketch),
}),
(KclValue::Sketch { value: sk }, Property::String(prop)) if prop == "tags" => Ok(KclValue::Object {
meta: vec![Metadata {
@ -662,11 +662,11 @@ fn update_memory_for_tags_of_geometry(result: &mut KclValue, exec_state: &mut Ex
exec_state.mut_memory().update_tag(&tag.value, tag.clone())?;
}
}
KclValue::Solid(ref mut solid) => {
for value in &solid.value {
if let Some(tag) = value.get_tag() {
KclValue::Solid { ref mut value } => {
for v in &value.value {
if let Some(tag) = v.get_tag() {
// Get the past tag and update it.
let mut t = if let Some(t) = solid.sketch.tags.get(&tag.name) {
let mut t = if let Some(t) = value.sketch.tags.get(&tag.name) {
t.clone()
} else {
// It's probably a fillet or a chamfer.
@ -674,10 +674,10 @@ fn update_memory_for_tags_of_geometry(result: &mut KclValue, exec_state: &mut Ex
TagIdentifier {
value: tag.name.clone(),
info: Some(TagEngineInfo {
id: value.get_id(),
surface: Some(value.clone()),
id: v.get_id(),
surface: Some(v.clone()),
path: None,
sketch: solid.id,
sketch: value.id,
}),
meta: vec![Metadata {
source_range: tag.clone().into(),
@ -693,21 +693,21 @@ fn update_memory_for_tags_of_geometry(result: &mut KclValue, exec_state: &mut Ex
};
let mut info = info.clone();
info.surface = Some(value.clone());
info.sketch = solid.id;
info.surface = Some(v.clone());
info.sketch = value.id;
t.info = Some(info);
exec_state.mut_memory().update_tag(&tag.name, t.clone())?;
// update the sketch tags.
solid.sketch.tags.insert(tag.name.clone(), t);
value.sketch.tags.insert(tag.name.clone(), t);
}
}
// Find the stale sketch in memory and update it.
let cur_env_index = exec_state.memory().current_env.index();
if let Some(current_env) = exec_state.mut_memory().environments.get_mut(cur_env_index) {
current_env.update_sketch_tags(&solid.sketch);
current_env.update_sketch_tags(&value.sketch);
}
}
_ => {}

View File

@ -62,19 +62,27 @@ pub enum KclValue {
},
TagIdentifier(Box<TagIdentifier>),
TagDeclarator(crate::parsing::ast::types::BoxNode<TagDeclarator>),
Plane(Box<Plane>),
Face(Box<Face>),
Plane {
value: Box<Plane>,
},
Face {
value: Box<Face>,
},
Sketch {
value: Box<Sketch>,
},
Sketches {
value: Vec<Box<Sketch>>,
},
Solid(Box<Solid>),
Solid {
value: Box<Solid>,
},
Solids {
value: Vec<Box<Solid>>,
},
Helix(Box<Helix>),
Helix {
value: Box<Helix>,
},
ImportedGeometry(ImportedGeometry),
#[ts(skip)]
Function {
@ -120,7 +128,7 @@ impl From<Vec<Box<Sketch>>> for KclValue {
impl From<SolidSet> for KclValue {
fn from(eg: SolidSet) -> Self {
match eg {
SolidSet::Solid(eg) => KclValue::Solid(eg),
SolidSet::Solid(eg) => KclValue::Solid { value: eg },
SolidSet::Solids(egs) => KclValue::Solids { value: egs },
}
}
@ -129,7 +137,7 @@ impl From<SolidSet> for KclValue {
impl From<Vec<Box<Solid>>> for KclValue {
fn from(eg: Vec<Box<Solid>>) -> Self {
if eg.len() == 1 {
KclValue::Solid(eg[0].clone())
KclValue::Solid { value: eg[0].clone() }
} else {
KclValue::Solids { value: eg }
}
@ -140,15 +148,15 @@ impl From<KclValue> for Vec<SourceRange> {
match item {
KclValue::TagDeclarator(t) => vec![SourceRange::new(t.start, t.end, t.module_id)],
KclValue::TagIdentifier(t) => to_vec_sr(&t.meta),
KclValue::Solid(e) => to_vec_sr(&e.meta),
KclValue::Solid { value } => to_vec_sr(&value.meta),
KclValue::Solids { value } => value.iter().flat_map(|eg| to_vec_sr(&eg.meta)).collect(),
KclValue::Sketch { value } => to_vec_sr(&value.meta),
KclValue::Sketches { value } => value.iter().flat_map(|eg| to_vec_sr(&eg.meta)).collect(),
KclValue::Helix(e) => to_vec_sr(&e.meta),
KclValue::Helix { value } => to_vec_sr(&value.meta),
KclValue::ImportedGeometry(i) => to_vec_sr(&i.meta),
KclValue::Function { meta, .. } => to_vec_sr(&meta),
KclValue::Plane(p) => to_vec_sr(&p.meta),
KclValue::Face(f) => to_vec_sr(&f.meta),
KclValue::Plane { value } => to_vec_sr(&value.meta),
KclValue::Face { value } => to_vec_sr(&value.meta),
KclValue::Bool { meta, .. } => to_vec_sr(&meta),
KclValue::Number { meta, .. } => to_vec_sr(&meta),
KclValue::Int { meta, .. } => to_vec_sr(&meta),
@ -171,15 +179,15 @@ impl From<&KclValue> for Vec<SourceRange> {
match item {
KclValue::TagDeclarator(t) => vec![SourceRange::new(t.start, t.end, t.module_id)],
KclValue::TagIdentifier(t) => to_vec_sr(&t.meta),
KclValue::Solid(e) => to_vec_sr(&e.meta),
KclValue::Solid { value } => to_vec_sr(&value.meta),
KclValue::Solids { value } => value.iter().flat_map(|eg| to_vec_sr(&eg.meta)).collect(),
KclValue::Sketch { value } => to_vec_sr(&value.meta),
KclValue::Sketches { value } => value.iter().flat_map(|eg| to_vec_sr(&eg.meta)).collect(),
KclValue::Helix(x) => to_vec_sr(&x.meta),
KclValue::Helix { value } => to_vec_sr(&value.meta),
KclValue::ImportedGeometry(i) => to_vec_sr(&i.meta),
KclValue::Function { meta, .. } => to_vec_sr(meta),
KclValue::Plane(p) => to_vec_sr(&p.meta),
KclValue::Face(f) => to_vec_sr(&f.meta),
KclValue::Plane { value } => to_vec_sr(&value.meta),
KclValue::Face { value } => to_vec_sr(&value.meta),
KclValue::Bool { meta, .. } => to_vec_sr(meta),
KclValue::Number { meta, .. } => to_vec_sr(meta),
KclValue::Int { meta, .. } => to_vec_sr(meta),
@ -205,13 +213,13 @@ impl KclValue {
KclValue::Object { value: _, meta } => meta.clone(),
KclValue::TagIdentifier(x) => x.meta.clone(),
KclValue::TagDeclarator(x) => vec![x.metadata()],
KclValue::Plane(x) => x.meta.clone(),
KclValue::Face(x) => x.meta.clone(),
KclValue::Plane { value } => value.meta.clone(),
KclValue::Face { value } => value.meta.clone(),
KclValue::Sketch { value } => value.meta.clone(),
KclValue::Sketches { value } => value.iter().flat_map(|sketch| &sketch.meta).copied().collect(),
KclValue::Solid(x) => x.meta.clone(),
KclValue::Solid { value } => value.meta.clone(),
KclValue::Solids { value } => value.iter().flat_map(|sketch| &sketch.meta).copied().collect(),
KclValue::Helix(x) => x.meta.clone(),
KclValue::Helix { value } => value.meta.clone(),
KclValue::ImportedGeometry(x) => x.meta.clone(),
KclValue::Function { meta, .. } => meta.clone(),
KclValue::Module { meta, .. } => meta.clone(),
@ -230,7 +238,7 @@ impl KclValue {
pub(crate) fn get_solid_set(&self) -> Result<SolidSet> {
match self {
KclValue::Solid(e) => Ok(SolidSet::Solid(e.clone())),
KclValue::Solid { value } => Ok(SolidSet::Solid(value.clone())),
KclValue::Solids { value } => Ok(SolidSet::Solids(value.clone())),
KclValue::Array { value, .. } => {
let solids: Vec<_> = value
@ -266,15 +274,15 @@ impl KclValue {
KclValue::Uuid { .. } => "Unique ID (uuid)",
KclValue::TagDeclarator(_) => "TagDeclarator",
KclValue::TagIdentifier(_) => "TagIdentifier",
KclValue::Solid(_) => "Solid",
KclValue::Solid { .. } => "Solid",
KclValue::Solids { .. } => "Solids",
KclValue::Sketch { .. } => "Sketch",
KclValue::Sketches { .. } => "Sketches",
KclValue::Helix(_) => "Helix",
KclValue::Helix { .. } => "Helix",
KclValue::ImportedGeometry(_) => "ImportedGeometry",
KclValue::Function { .. } => "Function",
KclValue::Plane(_) => "Plane",
KclValue::Face(_) => "Face",
KclValue::Plane { .. } => "Plane",
KclValue::Face { .. } => "Face",
KclValue::Bool { .. } => "boolean (true/false value)",
KclValue::Number { .. } => "number",
KclValue::Int { .. } => "integer",
@ -383,7 +391,7 @@ impl KclValue {
}
pub fn as_plane(&self) -> Option<&Plane> {
if let KclValue::Plane(value) = &self {
if let KclValue::Plane { value } = &self {
Some(value)
} else {
None
@ -391,7 +399,7 @@ impl KclValue {
}
pub fn as_solid(&self) -> Option<&Solid> {
if let KclValue::Solid(value) = &self {
if let KclValue::Solid { value } = &self {
Some(value)
} else {
None

View File

@ -391,7 +391,7 @@ impl ProgramMemory {
env.bindings
.values()
.filter_map(|item| match item {
KclValue::Solid(eg) if eg.sketch.id == sketch_id => Some(eg.clone()),
KclValue::Solid { value } if value.sketch.id == sketch_id => Some(value.clone()),
_ => None,
})
.collect::<Vec<_>>()
@ -505,8 +505,8 @@ impl DynamicState {
fn append(&mut self, memory: &ProgramMemory) {
for env in &memory.environments {
for item in env.bindings.values() {
if let KclValue::Solid(eg) = item {
self.solid_ids.push(SolidLazyIds::from(eg.as_ref()));
if let KclValue::Solid { value } = item {
self.solid_ids.push(SolidLazyIds::from(value.as_ref()));
}
}
}
@ -759,6 +759,7 @@ pub struct Helix {
pub angle_start: f64,
/// Is the helix rotation counter clockwise?
pub ccw: bool,
pub units: UnitLen,
#[serde(rename = "__meta")]
pub meta: Vec<Metadata>,
}
@ -780,6 +781,7 @@ pub struct Plane {
pub y_axis: Point3d,
/// The z-axis (normal).
pub z_axis: Point3d,
pub units: UnitLen,
#[serde(rename = "__meta")]
pub meta: Vec<Metadata>,
}
@ -795,6 +797,7 @@ impl Plane {
y_axis: Point3d::new(0.0, 1.0, 0.0),
z_axis: Point3d::new(0.0, 0.0, 1.0),
value: PlaneType::XY,
units: exec_state.length_unit(),
meta: vec![],
},
crate::std::sketch::PlaneData::NegXY => Plane {
@ -804,6 +807,7 @@ impl Plane {
y_axis: Point3d::new(0.0, 1.0, 0.0),
z_axis: Point3d::new(0.0, 0.0, -1.0),
value: PlaneType::XY,
units: exec_state.length_unit(),
meta: vec![],
},
crate::std::sketch::PlaneData::XZ => Plane {
@ -813,6 +817,7 @@ impl Plane {
y_axis: Point3d::new(0.0, 0.0, 1.0),
z_axis: Point3d::new(0.0, -1.0, 0.0),
value: PlaneType::XZ,
units: exec_state.length_unit(),
meta: vec![],
},
crate::std::sketch::PlaneData::NegXZ => Plane {
@ -822,6 +827,7 @@ impl Plane {
y_axis: Point3d::new(0.0, 0.0, 1.0),
z_axis: Point3d::new(0.0, 1.0, 0.0),
value: PlaneType::XZ,
units: exec_state.length_unit(),
meta: vec![],
},
crate::std::sketch::PlaneData::YZ => Plane {
@ -831,6 +837,7 @@ impl Plane {
y_axis: Point3d::new(0.0, 0.0, 1.0),
z_axis: Point3d::new(1.0, 0.0, 0.0),
value: PlaneType::YZ,
units: exec_state.length_unit(),
meta: vec![],
},
crate::std::sketch::PlaneData::NegYZ => Plane {
@ -840,6 +847,7 @@ impl Plane {
y_axis: Point3d::new(0.0, 0.0, 1.0),
z_axis: Point3d::new(-1.0, 0.0, 0.0),
value: PlaneType::YZ,
units: exec_state.length_unit(),
meta: vec![],
},
crate::std::sketch::PlaneData::Plane {
@ -854,6 +862,7 @@ impl Plane {
y_axis: *y_axis,
z_axis: *z_axis,
value: PlaneType::Custom,
units: exec_state.length_unit(),
meta: vec![],
},
}
@ -900,6 +909,7 @@ pub struct Face {
pub z_axis: Point3d,
/// The solid the face is on.
pub solid: Box<Solid>,
pub units: UnitLen,
#[serde(rename = "__meta")]
pub meta: Vec<Metadata>,
}
@ -1018,6 +1028,7 @@ pub struct Sketch {
/// is sketched on face etc.
#[serde(skip)]
pub original_id: uuid::Uuid,
pub units: UnitLen,
/// Metadata.
#[serde(rename = "__meta")]
pub meta: Vec<Metadata>,
@ -1141,6 +1152,7 @@ pub struct Solid {
/// Chamfers or fillets on this solid.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub edge_cuts: Vec<EdgeCut>,
pub units: UnitLen,
/// Metadata.
#[serde(rename = "__meta")]
pub meta: Vec<Metadata>,

View File

@ -863,27 +863,7 @@ impl<'a> FromKclValue<'a> for crate::std::planes::StandardPlane {
impl<'a> FromKclValue<'a> for crate::execution::Plane {
fn from_kcl_val(arg: &'a KclValue) -> Option<Self> {
if let Some(plane) = arg.as_plane() {
return Some(plane.clone());
}
let obj = arg.as_object()?;
let_field_of!(obj, id);
let_field_of!(obj, value);
let_field_of!(obj, origin);
let_field_of!(obj, x_axis "xAxis");
let_field_of!(obj, y_axis "yAxis");
let_field_of!(obj, z_axis "zAxis");
let_field_of!(obj, meta "__meta");
Some(Self {
id,
value,
origin,
x_axis,
y_axis,
z_axis,
meta,
})
arg.as_plane().cloned()
}
}
@ -1238,12 +1218,12 @@ impl<'a> FromKclValue<'a> for crate::execution::Point3d {
impl<'a> FromKclValue<'a> for super::sketch::PlaneData {
fn from_kcl_val(arg: &'a KclValue) -> Option<Self> {
// Case 0: actual plane
if let KclValue::Plane(p) = arg {
if let KclValue::Plane { value } = arg {
return Some(Self::Plane {
origin: Box::new(p.origin),
x_axis: Box::new(p.x_axis),
y_axis: Box::new(p.y_axis),
z_axis: Box::new(p.z_axis),
origin: Box::new(value.origin),
x_axis: Box::new(value.x_axis),
y_axis: Box::new(value.y_axis),
z_axis: Box::new(value.z_axis),
});
}
// Case 1: predefined plane
@ -1612,7 +1592,7 @@ impl<'a> FromKclValue<'a> for Sketch {
impl<'a> FromKclValue<'a> for Helix {
fn from_kcl_val(arg: &'a KclValue) -> Option<Self> {
let KclValue::Helix(value) = arg else {
let KclValue::Helix { value } = arg else {
return None;
};
Some(value.as_ref().to_owned())
@ -1668,10 +1648,10 @@ impl<'a> FromKclValue<'a> for SketchSet {
impl<'a> FromKclValue<'a> for Box<Solid> {
fn from_kcl_val(arg: &'a KclValue) -> Option<Self> {
let KclValue::Solid(s) = arg else {
let KclValue::Solid { value } = arg else {
return None;
};
Some(s.to_owned())
Some(value.to_owned())
}
}
@ -1691,8 +1671,8 @@ impl<'a> FromKclValue<'a> for SketchOrSurface {
fn from_kcl_val(arg: &'a KclValue) -> Option<Self> {
match arg {
KclValue::Sketch { value: sg } => Some(Self::Sketch(sg.to_owned())),
KclValue::Plane(sg) => Some(Self::SketchSurface(SketchSurface::Plane(sg.clone()))),
KclValue::Face(sg) => Some(Self::SketchSurface(SketchSurface::Face(sg.clone()))),
KclValue::Plane { value } => Some(Self::SketchSurface(SketchSurface::Plane(value.clone()))),
KclValue::Face { value } => Some(Self::SketchSurface(SketchSurface::Face(value.clone()))),
_ => None,
}
}
@ -1700,8 +1680,8 @@ impl<'a> FromKclValue<'a> for SketchOrSurface {
impl<'a> FromKclValue<'a> for SketchSurface {
fn from_kcl_val(arg: &'a KclValue) -> Option<Self> {
match arg {
KclValue::Plane(sg) => Some(Self::Plane(sg.clone())),
KclValue::Face(sg) => Some(Self::Face(sg.clone())),
KclValue::Plane { value } => Some(Self::Plane(value.clone())),
KclValue::Face { value } => Some(Self::Face(value.clone())),
_ => None,
}
}

View File

@ -31,8 +31,8 @@ pub struct ChamferData {
pub async fn chamfer(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
let (data, solid, tag): (ChamferData, Box<Solid>, Option<TagNode>) = args.get_data_and_solid_and_tag()?;
let solid = inner_chamfer(data, solid, tag, exec_state, args).await?;
Ok(KclValue::Solid(solid))
let value = inner_chamfer(data, solid, tag, exec_state, args).await?;
Ok(KclValue::Solid { value })
}
/// Cut a straight transitional edge along a tagged path.

View File

@ -280,6 +280,7 @@ pub(crate) async fn do_post_extrude(
id: sketch.id,
value: new_value,
meta: sketch.meta.clone(),
units: sketch.units,
sketch,
height: length,
start_cap_id,

View File

@ -57,8 +57,8 @@ impl EdgeReference {
pub async fn fillet(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
let (data, solid, tag): (FilletData, Box<Solid>, Option<TagNode>) = args.get_data_and_solid_and_tag()?;
let solid = inner_fillet(data, solid, tag, exec_state, args).await?;
Ok(KclValue::Solid(solid))
let value = inner_fillet(data, solid, tag, exec_state, args).await?;
Ok(KclValue::Solid { value })
}
/// Blend a transitional edge along a tagged path, smoothing the sharp edge.

View File

@ -39,8 +39,8 @@ pub struct HelixData {
pub async fn helix(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
let data: HelixData = args.get_data()?;
let helix = inner_helix(data, exec_state, args).await?;
Ok(KclValue::Helix(helix))
let value = inner_helix(data, exec_state, args).await?;
Ok(KclValue::Helix { value })
}
/// Create a helix.
@ -117,6 +117,7 @@ async fn inner_helix(data: HelixData, exec_state: &mut ExecState, args: Args) ->
revolutions: data.revolutions,
angle_start: data.angle_start,
ccw: data.ccw,
units: exec_state.length_unit(),
meta: vec![args.source_range.into()],
});
@ -193,8 +194,8 @@ pub struct HelixRevolutionsData {
pub async fn helix_revolutions(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
let (data, solid): (HelixRevolutionsData, Box<Solid>) = args.get_data_and_solid()?;
let solid = inner_helix_revolutions(data, solid, exec_state, args).await?;
Ok(KclValue::Solid(solid))
let value = inner_helix_revolutions(data, solid, exec_state, args).await?;
Ok(KclValue::Solid { value })
}
/// Create a helix on a cylinder.

View File

@ -30,7 +30,7 @@ pub async fn loft(exec_state: &mut ExecState, args: Args) -> Result<KclValue, Kc
// Tolerance for the loft operation.
let tolerance: Option<f64> = args.get_kw_arg_opt("tolerance");
let solid = inner_loft(
let value = inner_loft(
sketches,
v_degree,
bez_approximate_rational,
@ -40,7 +40,7 @@ pub async fn loft(exec_state: &mut ExecState, args: Args) -> Result<KclValue, Kc
args,
)
.await?;
Ok(KclValue::Solid(solid))
Ok(KclValue::Solid { value })
}
/// Create a 3D surface or solid by interpolating between two or more sketches.

View File

@ -55,7 +55,7 @@ pub async fn offset_plane(exec_state: &mut ExecState, args: Args) -> Result<KclV
let (std_plane, offset): (StandardPlane, f64) = args.get_data_and_float()?;
let plane = inner_offset_plane(std_plane, offset, exec_state).await?;
make_offset_plane_in_engine(&plane, exec_state, &args).await?;
Ok(KclValue::Plane(Box::new(plane)))
Ok(KclValue::Plane { value: Box::new(plane) })
}
/// Offset a plane by a distance along its normal.

View File

@ -32,8 +32,8 @@ pub struct RevolveData {
pub async fn revolve(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
let (data, sketch): (RevolveData, Sketch) = args.get_data_and_sketch()?;
let solid = inner_revolve(data, sketch, exec_state, args).await?;
Ok(KclValue::Solid(solid))
let value = inner_revolve(data, sketch, exec_state, args).await?;
Ok(KclValue::Solid { value })
}
/// Rotate a sketch around some provided axis, creating a solid from its extent.

View File

@ -247,8 +247,8 @@ async fn inner_shell(
pub async fn hollow(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
let (thickness, solid): (f64, Box<Solid>) = args.get_data_and_solid()?;
let solid = inner_hollow(thickness, solid, exec_state, args).await?;
Ok(KclValue::Solid(solid))
let value = inner_hollow(thickness, solid, exec_state, args).await?;
Ok(KclValue::Solid { value })
}
/// Make the inside of a 3D object hollow.

View File

@ -955,8 +955,8 @@ pub async fn start_sketch_on(exec_state: &mut ExecState, args: Args) -> Result<K
let (data, tag): (SketchData, Option<FaceTag>) = args.get_data_and_optional_tag()?;
match inner_start_sketch_on(data, tag, exec_state, &args).await? {
SketchSurface::Plane(plane) => Ok(KclValue::Plane(plane)),
SketchSurface::Face(face) => Ok(KclValue::Face(face)),
SketchSurface::Plane(value) => Ok(KclValue::Plane { value }),
SketchSurface::Face(value) => Ok(KclValue::Face { value }),
}
}
@ -1124,6 +1124,7 @@ async fn start_sketch_on_face(
x_axis: solid.sketch.on.x_axis(),
y_axis: solid.sketch.on.y_axis(),
z_axis: solid.sketch.on.z_axis(),
units: solid.units,
solid,
meta: vec![args.source_range.into()],
}))
@ -1262,6 +1263,11 @@ pub(crate) async fn inner_start_profile_at(
_ => {}
}
let units = match &sketch_surface {
SketchSurface::Face(face) => face.units,
SketchSurface::Plane(_) => exec_state.length_unit(),
};
// Enter sketch mode on the surface.
// We call this here so you can reuse the sketch surface for multiple sketches.
let id = exec_state.next_uuid();
@ -1311,6 +1317,7 @@ pub(crate) async fn inner_start_profile_at(
original_id: path_id,
on: sketch_surface.clone(),
paths: vec![],
units,
meta: vec![args.source_range.into()],
tags: if let Some(tag) = &tag {
let mut tag_identifier: TagIdentifier = tag.into();

View File

@ -39,8 +39,8 @@ pub struct SweepData {
pub async fn sweep(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
let (data, sketch): (SweepData, Sketch) = args.get_data_and_sketch()?;
let solid = inner_sweep(data, sketch, exec_state, args).await?;
Ok(KclValue::Solid(solid))
let value = inner_sweep(data, sketch, exec_state, args).await?;
Ok(KclValue::Solid { value })
}
/// Extrude a sketch along a path.

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing angled_line.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -258,6 +258,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -340,6 +343,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -353,6 +359,9 @@ snapshot_kind: text
"height": 4.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -362,6 +371,7 @@ snapshot_kind: text
]
}
]
}
},
"seg01": {
"type": "TagIdentifier",

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing artifact_graph_example_code1.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"extrude001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -226,6 +226,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -367,6 +370,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -389,6 +395,9 @@ snapshot_kind: text
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -398,9 +407,11 @@ snapshot_kind: text
]
}
]
}
},
"extrude002": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -740,6 +751,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -881,6 +895,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -903,6 +920,9 @@ snapshot_kind: text
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -913,6 +933,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -942,6 +965,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -955,6 +981,9 @@ snapshot_kind: text
"height": 5.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -964,6 +993,7 @@ snapshot_kind: text
]
}
]
}
},
"seg01": {
"type": "TagIdentifier",
@ -1226,6 +1256,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1367,6 +1400,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1682,6 +1718,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1823,6 +1862,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1845,6 +1887,9 @@ snapshot_kind: text
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1855,6 +1900,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1884,6 +1932,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing artifact_graph_example_code_no_3d.kcl
snapshot_kind: text
---
{
"environments": [
@ -308,6 +307,9 @@ snapshot_kind: text
"y": 0.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -463,6 +465,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -575,6 +580,9 @@ snapshot_kind: text
"y": 1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -596,6 +604,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing artifact_graph_example_code_offset_planes.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"offsetPlane001": {
"type": "Plane",
"value": {
"id": "[uuid]",
"value": "Custom",
"origin": {
@ -51,10 +51,15 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
}
},
"offsetPlane002": {
"type": "Plane",
"value": {
"id": "[uuid]",
"value": "Custom",
"origin": {
@ -77,10 +82,15 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
}
},
"offsetPlane003": {
"type": "Plane",
"value": {
"id": "[uuid]",
"value": "Custom",
"origin": {
@ -103,7 +113,11 @@ snapshot_kind: text
"y": 0.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
}
},
"sketch002": {
"type": "Sketch",
@ -156,6 +170,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -177,6 +194,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing artifact_graph_sketch_on_face_etc.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"extrude001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -185,6 +185,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -267,6 +270,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -280,6 +286,9 @@ snapshot_kind: text
"height": 6.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -289,9 +298,11 @@ snapshot_kind: text
]
}
]
}
},
"extrude002": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -590,6 +601,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -672,6 +686,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -685,6 +702,9 @@ snapshot_kind: text
"height": 6.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -695,6 +715,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -724,6 +747,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -737,6 +763,9 @@ snapshot_kind: text
"height": 5.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -746,9 +775,11 @@ snapshot_kind: text
]
}
]
}
},
"extrude003": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -1199,6 +1230,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1281,6 +1315,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1294,6 +1331,9 @@ snapshot_kind: text
"height": 6.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1304,6 +1344,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1333,6 +1376,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1346,6 +1392,9 @@ snapshot_kind: text
"height": 5.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1356,6 +1405,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1446,6 +1498,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1459,6 +1514,9 @@ snapshot_kind: text
"height": 4.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1468,9 +1526,11 @@ snapshot_kind: text
]
}
]
}
},
"extrude004": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -2063,6 +2123,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -2145,6 +2208,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2158,6 +2224,9 @@ snapshot_kind: text
"height": 6.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2168,6 +2237,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2197,6 +2269,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2210,6 +2285,9 @@ snapshot_kind: text
"height": 5.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2220,6 +2298,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2310,6 +2391,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2323,6 +2407,9 @@ snapshot_kind: text
"height": 4.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2333,6 +2420,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2362,6 +2452,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2375,6 +2468,9 @@ snapshot_kind: text
"height": 3.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2384,6 +2480,7 @@ snapshot_kind: text
]
}
]
}
},
"seg01": {
"type": "TagIdentifier",
@ -2621,6 +2718,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -2703,6 +2803,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2977,6 +3080,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -3059,6 +3165,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3072,6 +3181,9 @@ snapshot_kind: text
"height": 6.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3082,6 +3194,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3111,6 +3226,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3532,6 +3650,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -3614,6 +3735,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3627,6 +3751,9 @@ snapshot_kind: text
"height": 6.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3637,6 +3764,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3666,6 +3796,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3679,6 +3812,9 @@ snapshot_kind: text
"height": 5.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3689,6 +3825,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3779,6 +3918,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4347,6 +4489,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -4429,6 +4574,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4442,6 +4590,9 @@ snapshot_kind: text
"height": 6.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4452,6 +4603,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4481,6 +4635,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4494,6 +4651,9 @@ snapshot_kind: text
"height": 5.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4504,6 +4664,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4594,6 +4757,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4607,6 +4773,9 @@ snapshot_kind: text
"height": 4.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4617,6 +4786,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4646,6 +4818,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing basic_fillet_cube_close_opposite.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -216,6 +216,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -416,6 +419,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -445,6 +451,9 @@ snapshot_kind: text
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -454,6 +463,7 @@ snapshot_kind: text
]
}
]
}
},
"thing": {
"type": "TagIdentifier",

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing basic_fillet_cube_end.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -206,6 +206,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -347,6 +350,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -376,6 +382,9 @@ snapshot_kind: text
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -385,6 +394,7 @@ snapshot_kind: text
]
}
]
}
},
"thing": {
"type": "TagIdentifier",

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing basic_fillet_cube_next_adjacent.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -226,6 +226,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -485,6 +488,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -507,6 +513,9 @@ snapshot_kind: text
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -516,6 +525,7 @@ snapshot_kind: text
]
}
]
}
},
"thing": {
"type": "TagIdentifier",

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing basic_fillet_cube_previous_adjacent.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -226,6 +226,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -485,6 +488,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -507,6 +513,9 @@ snapshot_kind: text
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -516,6 +525,7 @@ snapshot_kind: text
]
}
]
}
},
"thing": {
"type": "TagIdentifier",

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing basic_fillet_cube_start.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -206,6 +206,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -347,6 +350,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -376,6 +382,9 @@ snapshot_kind: text
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -385,6 +394,7 @@ snapshot_kind: text
]
}
]
}
},
"thing": {
"type": "TagIdentifier",

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing big_number_angle_to_match_length_x.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -165,6 +165,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -247,6 +250,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -260,6 +266,9 @@ snapshot_kind: text
"height": 10.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -269,6 +278,7 @@ snapshot_kind: text
]
}
]
}
},
"seg01": {
"type": "TagIdentifier",

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing big_number_angle_to_match_length_y.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -165,6 +165,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -247,6 +250,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -260,6 +266,9 @@ snapshot_kind: text
"height": 10.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -269,6 +278,7 @@ snapshot_kind: text
]
}
]
}
},
"seg01": {
"type": "TagIdentifier",

View File

@ -1,8 +1,6 @@
---
source: kcl/src/simulation_tests.rs
assertion_line: 99
description: Program memory after executing circle_three_point.kcl
snapshot_kind: text
---
{
"environments": [
@ -30,6 +28,7 @@ snapshot_kind: text
},
"example": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -100,6 +99,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -121,6 +123,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -134,6 +139,9 @@ snapshot_kind: text
"height": 10.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -143,6 +151,7 @@ snapshot_kind: text
]
}
]
}
},
"sketch001": {
"type": "Sketch",
@ -201,6 +210,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -222,6 +234,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [

View File

@ -736,6 +736,7 @@ description: Program memory after executing cube.kcl
},
"myCube": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -913,6 +914,9 @@ description: Program memory after executing cube.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -934,6 +938,9 @@ description: Program memory after executing cube.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -947,6 +954,9 @@ description: Program memory after executing cube.kcl
"height": 40.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -957,6 +967,7 @@ description: Program memory after executing cube.kcl
}
]
}
}
},
"parent": null
}

View File

@ -41,6 +41,7 @@ description: Program memory after executing fillet-and-shell.kcl
},
"case": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -238,6 +239,9 @@ description: Program memory after executing fillet-and-shell.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -497,6 +501,9 @@ description: Program memory after executing fillet-and-shell.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -540,6 +547,9 @@ description: Program memory after executing fillet-and-shell.kcl
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -549,6 +559,7 @@ description: Program memory after executing fillet-and-shell.kcl
]
}
]
}
},
"caseHeight": {
"type": "Number",
@ -1308,6 +1319,7 @@ description: Program memory after executing fillet-and-shell.kcl
},
"case": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -1505,6 +1517,9 @@ description: Program memory after executing fillet-and-shell.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1764,6 +1779,9 @@ description: Program memory after executing fillet-and-shell.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1807,6 +1825,9 @@ description: Program memory after executing fillet-and-shell.kcl
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1816,6 +1837,7 @@ description: Program memory after executing fillet-and-shell.kcl
]
}
]
}
},
"caseHeight": {
"type": "Number",
@ -2333,6 +2355,9 @@ description: Program memory after executing fillet-and-shell.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -2354,6 +2379,9 @@ description: Program memory after executing fillet-and-shell.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2610,6 +2638,9 @@ description: Program memory after executing fillet-and-shell.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -2631,6 +2662,9 @@ description: Program memory after executing fillet-and-shell.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [

View File

@ -429,6 +429,7 @@ description: Program memory after executing function_sketch.kcl
},
"fnBox": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -586,6 +587,9 @@ description: Program memory after executing function_sketch.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -607,6 +611,9 @@ description: Program memory after executing function_sketch.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -620,6 +627,9 @@ description: Program memory after executing function_sketch.kcl
"height": 3.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -630,6 +640,7 @@ description: Program memory after executing function_sketch.kcl
}
]
}
}
},
"parent": null
}

View File

@ -415,6 +415,7 @@ description: Program memory after executing function_sketch_with_position.kcl
},
"thing": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -572,6 +573,9 @@ description: Program memory after executing function_sketch_with_position.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -593,6 +597,9 @@ description: Program memory after executing function_sketch_with_position.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -606,6 +613,9 @@ description: Program memory after executing function_sketch_with_position.kcl
"height": 3.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -616,6 +626,7 @@ description: Program memory after executing function_sketch_with_position.kcl
}
]
}
}
},
"parent": null
}

View File

@ -1,8 +1,6 @@
---
source: kcl/src/simulation_tests.rs
assertion_line: 105
description: Program memory after executing helix_ccw.kcl
snapshot_kind: text
---
{
"environments": [
@ -30,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -100,6 +99,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -121,6 +123,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -134,6 +139,9 @@ snapshot_kind: text
"height": 10.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -144,6 +152,7 @@ snapshot_kind: text
}
]
}
}
},
"parent": null
}

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing i_shape.kcl
snapshot_kind: text
---
{
"environments": [
@ -618,6 +617,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -639,6 +641,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -731,6 +736,7 @@ snapshot_kind: text
},
"final": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -1588,6 +1594,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1609,6 +1618,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1622,6 +1634,9 @@ snapshot_kind: text
"height": 3.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1631,6 +1646,7 @@ snapshot_kind: text
]
}
]
}
},
"hand_thickness": {
"type": "Number",
@ -1876,6 +1892,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1897,6 +1916,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [

View File

@ -28,6 +28,7 @@ description: Program memory after executing import_whole.kcl
},
"bar": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -98,6 +99,9 @@ description: Program memory after executing import_whole.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -119,6 +123,9 @@ description: Program memory after executing import_whole.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -132,6 +139,9 @@ description: Program memory after executing import_whole.kcl
"height": 10.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -141,6 +151,7 @@ description: Program memory after executing import_whole.kcl
]
}
]
}
},
"foo": {
"type": "Module",

View File

@ -1,8 +1,6 @@
---
source: kcl/src/simulation_tests.rs
assertion_line: 92
description: Program memory after executing kittycad_svg.kcl
snapshot_kind: text
---
{
"environments": [
@ -30,6 +28,7 @@ snapshot_kind: text
},
"svg": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -8794,6 +8793,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -8815,6 +8817,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -8828,6 +8833,9 @@ snapshot_kind: text
"height": 1.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -8838,6 +8846,7 @@ snapshot_kind: text
}
]
}
}
},
"parent": null
}

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing mike_stress_test.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -31093,6 +31093,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -31114,6 +31117,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -31127,6 +31133,9 @@ snapshot_kind: text
"height": 5.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -31137,6 +31146,7 @@ snapshot_kind: text
}
]
}
}
},
"parent": null
}

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing neg_xz_plane.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -155,6 +155,9 @@ snapshot_kind: text
"y": 1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -176,6 +179,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -189,6 +195,9 @@ snapshot_kind: text
"height": 12.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -199,6 +208,7 @@ snapshot_kind: text
}
]
}
}
},
"parent": null
}

View File

@ -1,8 +1,6 @@
---
source: kcl/src/simulation_tests.rs
assertion_line: 92
description: Program memory after executing parametric.kcl
snapshot_kind: text
---
{
"environments": [
@ -43,6 +41,7 @@ snapshot_kind: text
},
"bracket": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -262,6 +261,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -283,6 +285,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -296,6 +301,9 @@ snapshot_kind: text
"height": 9.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -305,6 +313,7 @@ snapshot_kind: text
]
}
]
}
},
"distance": {
"type": "Number",

View File

@ -1,8 +1,6 @@
---
source: kcl/src/simulation_tests.rs
assertion_line: 92
description: Program memory after executing parametric_with_tan_arc.kcl
snapshot_kind: text
---
{
"environments": [
@ -43,6 +41,7 @@ snapshot_kind: text
},
"bracket": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -334,6 +333,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -355,6 +357,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -368,6 +373,9 @@ snapshot_kind: text
"height": 11.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -377,6 +385,7 @@ snapshot_kind: text
]
}
]
}
},
"distance": {
"type": "Number",

View File

@ -506,6 +506,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -706,6 +709,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -719,6 +725,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"height": 200.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -729,6 +738,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -825,6 +837,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1070,6 +1085,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1270,6 +1288,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1283,6 +1304,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"height": 200.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1293,6 +1317,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1389,6 +1416,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1915,6 +1945,7 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
},
"p": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -2071,6 +2102,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -2271,6 +2305,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2284,6 +2321,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"height": 200.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2293,6 +2333,7 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
]
}
},
"plumbusLen": {
"type": "Number",
@ -2365,6 +2406,7 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
},
"p": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -2521,6 +2563,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -2721,6 +2766,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2734,6 +2782,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"height": 200.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2743,9 +2794,11 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
]
}
},
"plumbus0": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -2998,6 +3051,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -3198,6 +3254,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3211,6 +3270,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"height": 200.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3221,6 +3283,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3317,6 +3382,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3346,6 +3414,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3355,9 +3426,11 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
]
}
},
"plumbus1": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -3610,6 +3683,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -3810,6 +3886,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3823,6 +3902,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"height": 200.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3833,6 +3915,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3929,6 +4014,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3958,6 +4046,9 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3967,6 +4058,7 @@ description: Program memory after executing pentagon_fillet_sugar.kcl
]
}
]
}
},
"plumbusLen": {
"type": "Number",

View File

@ -1540,6 +1540,7 @@ description: Program memory after executing pipe_as_arg.kcl
},
"myCube": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -1717,6 +1718,9 @@ description: Program memory after executing pipe_as_arg.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1738,6 +1742,9 @@ description: Program memory after executing pipe_as_arg.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1751,6 +1758,9 @@ description: Program memory after executing pipe_as_arg.kcl
"height": 400.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1760,6 +1770,7 @@ description: Program memory after executing pipe_as_arg.kcl
]
}
]
}
},
"width": {
"type": "Function",

View File

@ -1,8 +1,6 @@
---
source: kcl/src/simulation_tests.rs
assertion_line: 92
description: Program memory after executing poop_chute.kcl
snapshot_kind: text
---
{
"environments": [
@ -147,6 +145,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -593,6 +592,9 @@ snapshot_kind: text
"y": 0.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -675,6 +677,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -688,6 +693,9 @@ snapshot_kind: text
"height": 0.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -697,6 +705,7 @@ snapshot_kind: text
]
}
]
}
},
"seg01": {
"type": "TagIdentifier",
@ -1114,6 +1123,9 @@ snapshot_kind: text
"y": 0.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1196,6 +1208,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1209,6 +1224,7 @@ snapshot_kind: text
},
"sketch002": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -1655,6 +1671,9 @@ snapshot_kind: text
"y": 0.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1737,6 +1756,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1750,6 +1772,9 @@ snapshot_kind: text
"height": 1.5,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1759,6 +1784,7 @@ snapshot_kind: text
]
}
]
}
},
"wall_thickness": {
"type": "Number",

View File

@ -137,6 +137,7 @@ description: Program memory after executing riddle_small.kcl
},
"r": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -294,6 +295,9 @@ description: Program memory after executing riddle_small.kcl
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -315,6 +319,9 @@ description: Program memory after executing riddle_small.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -328,6 +335,9 @@ description: Program memory after executing riddle_small.kcl
"height": 1.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -337,6 +347,7 @@ description: Program memory after executing riddle_small.kcl
]
}
]
}
},
"t": {
"type": "Function",

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing sketch-on-chamfer-two-times-different-order.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"extrude001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -268,6 +268,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -538,6 +541,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -584,6 +590,9 @@ snapshot_kind: text
}
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -593,9 +602,11 @@ snapshot_kind: text
]
}
]
}
},
"extrude002": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -1038,6 +1049,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1308,6 +1322,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1354,6 +1371,9 @@ snapshot_kind: text
}
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1364,6 +1384,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1572,6 +1595,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1585,6 +1611,9 @@ snapshot_kind: text
"height": 50.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1594,6 +1623,7 @@ snapshot_kind: text
]
}
]
}
},
"rectangleSegmentA001": {
"type": "TagIdentifier",
@ -2308,6 +2338,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -2578,6 +2611,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2970,6 +3006,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -3240,6 +3279,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3286,6 +3328,9 @@ snapshot_kind: text
}
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3296,6 +3341,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3504,6 +3552,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3896,6 +3947,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -4166,6 +4220,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4212,6 +4269,9 @@ snapshot_kind: text
}
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4222,6 +4282,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4385,6 +4448,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing sketch-on-chamfer-two-times.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"extrude001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -268,6 +268,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -538,6 +541,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -584,6 +590,9 @@ snapshot_kind: text
}
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -593,9 +602,11 @@ snapshot_kind: text
]
}
]
}
},
"extrude002": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -1038,6 +1049,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1308,6 +1322,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1354,6 +1371,9 @@ snapshot_kind: text
}
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1364,6 +1384,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1572,6 +1595,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1585,6 +1611,9 @@ snapshot_kind: text
"height": 50.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1594,6 +1623,7 @@ snapshot_kind: text
]
}
]
}
},
"rectangleSegmentA001": {
"type": "TagIdentifier",
@ -2308,6 +2338,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -2578,6 +2611,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -2970,6 +3006,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -3240,6 +3279,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3286,6 +3328,9 @@ snapshot_kind: text
}
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3296,6 +3341,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3504,6 +3552,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -3896,6 +3947,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -4166,6 +4220,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4212,6 +4269,9 @@ snapshot_kind: text
}
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4222,6 +4282,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -4385,6 +4448,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [

View File

@ -1129,6 +1129,9 @@ description: Program memory after executing sketch_in_object.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1150,6 +1153,9 @@ description: Program memory after executing sketch_in_object.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1278,6 +1284,9 @@ description: Program memory after executing sketch_in_object.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1299,6 +1308,9 @@ description: Program memory after executing sketch_in_object.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing sketch_on_face.kcl
snapshot_kind: text
---
{
"environments": [
@ -89,6 +88,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -256,6 +256,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -338,6 +341,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -351,6 +357,9 @@ snapshot_kind: text
"height": 5.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -360,9 +369,11 @@ snapshot_kind: text
]
}
]
}
},
"part002": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -683,6 +694,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -765,6 +779,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -778,6 +795,9 @@ snapshot_kind: text
"height": 5.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -788,6 +808,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -817,6 +840,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -830,6 +856,9 @@ snapshot_kind: text
"height": 5.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -840,6 +869,7 @@ snapshot_kind: text
}
]
}
}
},
"parent": null
}

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing sketch_on_face_after_fillets_referencing_face.kcl
snapshot_kind: text
---
{
"environments": [
@ -82,6 +81,7 @@ snapshot_kind: text
},
"bracket": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -331,6 +331,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -531,6 +534,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -560,6 +566,9 @@ snapshot_kind: text
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -569,6 +578,7 @@ snapshot_kind: text
]
}
]
}
},
"filletR": {
"type": "Number",
@ -804,6 +814,7 @@ snapshot_kind: text
},
"sketch001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -1226,6 +1237,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1426,6 +1440,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1455,6 +1472,9 @@ snapshot_kind: text
"tag": null
}
],
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1465,6 +1485,9 @@ snapshot_kind: text
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1494,6 +1517,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1507,6 +1533,9 @@ snapshot_kind: text
"height": 10.0,
"startCapId": null,
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1516,6 +1545,7 @@ snapshot_kind: text
]
}
]
}
},
"thickness": {
"type": "Number",

View File

@ -416,6 +416,7 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -573,6 +574,9 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -594,6 +598,9 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -607,6 +614,9 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
"height": 20.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -616,9 +626,11 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
]
}
]
}
},
"part002": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -852,6 +864,9 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -873,6 +888,9 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -886,6 +904,9 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
"height": 20.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -896,6 +917,9 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -992,6 +1016,9 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1005,6 +1032,9 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
"height": 5.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1015,6 +1045,7 @@ description: Program memory after executing sketch_on_face_circle_tagged.kcl
}
]
}
}
},
"parent": null
}

View File

@ -350,6 +350,7 @@ description: Program memory after executing sketch_on_face_end.kcl
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -507,6 +508,9 @@ description: Program memory after executing sketch_on_face_end.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -528,6 +532,9 @@ description: Program memory after executing sketch_on_face_end.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -541,6 +548,9 @@ description: Program memory after executing sketch_on_face_end.kcl
"height": 20.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -550,9 +560,11 @@ description: Program memory after executing sketch_on_face_end.kcl
]
}
]
}
},
"part002": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -863,6 +875,9 @@ description: Program memory after executing sketch_on_face_end.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -884,6 +899,9 @@ description: Program memory after executing sketch_on_face_end.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -897,6 +915,9 @@ description: Program memory after executing sketch_on_face_end.kcl
"height": 20.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -907,6 +928,9 @@ description: Program memory after executing sketch_on_face_end.kcl
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -936,6 +960,9 @@ description: Program memory after executing sketch_on_face_end.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -949,6 +976,9 @@ description: Program memory after executing sketch_on_face_end.kcl
"height": 5.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -959,6 +989,7 @@ description: Program memory after executing sketch_on_face_end.kcl
}
]
}
}
},
"parent": null
}

View File

@ -350,6 +350,7 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -507,6 +508,9 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -528,6 +532,9 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -541,6 +548,9 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
"height": 20.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -550,9 +560,11 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
]
}
]
}
},
"part002": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -863,6 +875,9 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -884,6 +899,9 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -897,6 +915,9 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
"height": 20.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -907,6 +928,9 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -936,6 +960,9 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -949,6 +976,9 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
"height": -5.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -959,6 +989,7 @@ description: Program memory after executing sketch_on_face_end_negative_extrude.
}
]
}
}
},
"parent": null
}

View File

@ -350,6 +350,7 @@ description: Program memory after executing sketch_on_face_start.kcl
},
"foo": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -507,6 +508,9 @@ description: Program memory after executing sketch_on_face_start.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -528,6 +532,9 @@ description: Program memory after executing sketch_on_face_start.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -541,6 +548,9 @@ description: Program memory after executing sketch_on_face_start.kcl
"height": 20.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -550,9 +560,11 @@ description: Program memory after executing sketch_on_face_start.kcl
]
}
]
}
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -710,6 +722,9 @@ description: Program memory after executing sketch_on_face_start.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -731,6 +746,9 @@ description: Program memory after executing sketch_on_face_start.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -744,6 +762,9 @@ description: Program memory after executing sketch_on_face_start.kcl
"height": 20.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -753,9 +774,11 @@ description: Program memory after executing sketch_on_face_start.kcl
]
}
]
}
},
"part002": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -1066,6 +1089,9 @@ description: Program memory after executing sketch_on_face_start.kcl
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -1087,6 +1113,9 @@ description: Program memory after executing sketch_on_face_start.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1100,6 +1129,9 @@ description: Program memory after executing sketch_on_face_start.kcl
"height": 20.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1110,6 +1142,9 @@ description: Program memory after executing sketch_on_face_start.kcl
}
]
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1139,6 +1174,9 @@ description: Program memory after executing sketch_on_face_start.kcl
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1152,6 +1190,9 @@ description: Program memory after executing sketch_on_face_start.kcl
"height": 5.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -1162,6 +1203,7 @@ description: Program memory after executing sketch_on_face_start.kcl
}
]
}
}
},
"parent": null
}

View File

@ -1,8 +1,6 @@
---
source: kcl/src/simulation_tests.rs
assertion_line: 105
description: Program memory after executing tangential_arc.kcl
snapshot_kind: text
---
{
"environments": [
@ -30,6 +28,7 @@ snapshot_kind: text
},
"boxSketch": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -161,6 +160,9 @@ snapshot_kind: text
"y": 0.0,
"z": 1.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -182,6 +184,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -195,6 +200,9 @@ snapshot_kind: text
"height": 10.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -205,6 +213,7 @@ snapshot_kind: text
}
]
}
}
},
"parent": null
}

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing xz_plane.kcl
snapshot_kind: text
---
{
"environments": [
@ -29,6 +28,7 @@ snapshot_kind: text
},
"part001": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"value": [
@ -155,6 +155,9 @@ snapshot_kind: text
"y": -1.0,
"z": 0.0
},
"units": {
"type": "Mm"
},
"__meta": []
},
"start": {
@ -176,6 +179,9 @@ snapshot_kind: text
]
}
},
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -189,6 +195,9 @@ snapshot_kind: text
"height": 12.0,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Mm"
},
"__meta": [
{
"sourceRange": [
@ -199,6 +208,7 @@ snapshot_kind: text
}
]
}
}
},
"parent": null
}