forked from KittyCAD/modeling-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add units to geometry structs (KittyCAD#5075)
* Make all geometry KclValue variants into struct variants Signed-off-by: Nick Cameron <[email protected]> * Add units to geometry types Signed-off-by: Nick Cameron <[email protected]> --------- Signed-off-by: Nick Cameron <[email protected]>
- Loading branch information
1 parent
7c181a5
commit de031ab
Showing
75 changed files
with
77,023 additions
and
59,010 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 face’s X axis be? | No | | ||
| `yAxis` |[`Point3d`](/docs/kcl/types/Point3d)| What should the face’s 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 | | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | | ||
|
||
|
||
---- | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.