Declare std::offsetPlane in KCL (#6344)
* Declare std::offsetPlane in KCL Signed-off-by: Nick Cameron <nrc@ncameron.org> * Use two axes to define planes in KCL Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
		@ -95,14 +95,6 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
              "type": "Mm"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "zAxis": {
 | 
			
		||||
            "x": 0.0,
 | 
			
		||||
            "y": 0.0,
 | 
			
		||||
            "z": 1.0,
 | 
			
		||||
            "units": {
 | 
			
		||||
              "type": "Mm"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "solid": {
 | 
			
		||||
            "type": "Solid",
 | 
			
		||||
            "id": "[uuid]",
 | 
			
		||||
@ -174,14 +166,6 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
                  "units": {
 | 
			
		||||
                    "type": "Mm"
 | 
			
		||||
                  }
 | 
			
		||||
                },
 | 
			
		||||
                "zAxis": {
 | 
			
		||||
                  "x": 0.0,
 | 
			
		||||
                  "y": 0.0,
 | 
			
		||||
                  "z": 1.0,
 | 
			
		||||
                  "units": {
 | 
			
		||||
                    "type": "Mm"
 | 
			
		||||
                  }
 | 
			
		||||
                }
 | 
			
		||||
              },
 | 
			
		||||
              "start": {
 | 
			
		||||
@ -342,11 +326,90 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "start": {
 | 
			
		||||
            "from": [
 | 
			
		||||
              2.0625,
 | 
			
		||||
              0.0
 | 
			
		||||
            ],
 | 
			
		||||
            "to": [
 | 
			
		||||
              2.0625,
 | 
			
		||||
              0.0
 | 
			
		||||
            ],
 | 
			
		||||
            "units": {
 | 
			
		||||
              "type": "Inches"
 | 
			
		||||
            },
 | 
			
		||||
            "zAxis": {
 | 
			
		||||
            "tag": null,
 | 
			
		||||
            "__geoMeta": {
 | 
			
		||||
              "id": "[uuid]",
 | 
			
		||||
              "sourceRange": []
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "artifactId": "[uuid]",
 | 
			
		||||
          "originalId": "[uuid]",
 | 
			
		||||
          "units": {
 | 
			
		||||
            "type": "Inches"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "type": "Sketch",
 | 
			
		||||
        "value": {
 | 
			
		||||
          "type": "Sketch",
 | 
			
		||||
          "id": "[uuid]",
 | 
			
		||||
          "paths": [
 | 
			
		||||
            {
 | 
			
		||||
              "__geoMeta": {
 | 
			
		||||
                "id": "[uuid]",
 | 
			
		||||
                "sourceRange": []
 | 
			
		||||
              },
 | 
			
		||||
              "ccw": true,
 | 
			
		||||
              "center": [
 | 
			
		||||
                1.75,
 | 
			
		||||
                0.0
 | 
			
		||||
              ],
 | 
			
		||||
              "from": [
 | 
			
		||||
                2.0625,
 | 
			
		||||
                0.0
 | 
			
		||||
              ],
 | 
			
		||||
              "radius": 0.3125,
 | 
			
		||||
              "tag": null,
 | 
			
		||||
              "to": [
 | 
			
		||||
                2.0625,
 | 
			
		||||
                0.0
 | 
			
		||||
              ],
 | 
			
		||||
              "type": "Circle",
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Inches"
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
          ],
 | 
			
		||||
          "on": {
 | 
			
		||||
            "type": "plane",
 | 
			
		||||
            "id": "[uuid]",
 | 
			
		||||
            "artifactId": "[uuid]",
 | 
			
		||||
            "value": "XY",
 | 
			
		||||
            "origin": {
 | 
			
		||||
              "x": 0.0,
 | 
			
		||||
              "y": 0.0,
 | 
			
		||||
              "z": 1.0,
 | 
			
		||||
              "z": 0.0,
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            },
 | 
			
		||||
            "xAxis": {
 | 
			
		||||
              "x": 1.0,
 | 
			
		||||
              "y": 0.0,
 | 
			
		||||
              "z": 0.0,
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            },
 | 
			
		||||
            "yAxis": {
 | 
			
		||||
              "x": 0.0,
 | 
			
		||||
              "y": 1.0,
 | 
			
		||||
              "z": 0.0,
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
@ -437,14 +500,6 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            },
 | 
			
		||||
            "zAxis": {
 | 
			
		||||
              "x": 0.0,
 | 
			
		||||
              "y": 0.0,
 | 
			
		||||
              "z": 1.0,
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "start": {
 | 
			
		||||
@ -532,109 +587,6 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            },
 | 
			
		||||
            "zAxis": {
 | 
			
		||||
              "x": 0.0,
 | 
			
		||||
              "y": 0.0,
 | 
			
		||||
              "z": 1.0,
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "start": {
 | 
			
		||||
            "from": [
 | 
			
		||||
              2.0625,
 | 
			
		||||
              0.0
 | 
			
		||||
            ],
 | 
			
		||||
            "to": [
 | 
			
		||||
              2.0625,
 | 
			
		||||
              0.0
 | 
			
		||||
            ],
 | 
			
		||||
            "units": {
 | 
			
		||||
              "type": "Inches"
 | 
			
		||||
            },
 | 
			
		||||
            "tag": null,
 | 
			
		||||
            "__geoMeta": {
 | 
			
		||||
              "id": "[uuid]",
 | 
			
		||||
              "sourceRange": []
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "artifactId": "[uuid]",
 | 
			
		||||
          "originalId": "[uuid]",
 | 
			
		||||
          "units": {
 | 
			
		||||
            "type": "Inches"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "type": "Sketch",
 | 
			
		||||
        "value": {
 | 
			
		||||
          "type": "Sketch",
 | 
			
		||||
          "id": "[uuid]",
 | 
			
		||||
          "paths": [
 | 
			
		||||
            {
 | 
			
		||||
              "__geoMeta": {
 | 
			
		||||
                "id": "[uuid]",
 | 
			
		||||
                "sourceRange": []
 | 
			
		||||
              },
 | 
			
		||||
              "ccw": true,
 | 
			
		||||
              "center": [
 | 
			
		||||
                1.75,
 | 
			
		||||
                0.0
 | 
			
		||||
              ],
 | 
			
		||||
              "from": [
 | 
			
		||||
                2.0625,
 | 
			
		||||
                0.0
 | 
			
		||||
              ],
 | 
			
		||||
              "radius": 0.3125,
 | 
			
		||||
              "tag": null,
 | 
			
		||||
              "to": [
 | 
			
		||||
                2.0625,
 | 
			
		||||
                0.0
 | 
			
		||||
              ],
 | 
			
		||||
              "type": "Circle",
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Inches"
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
          ],
 | 
			
		||||
          "on": {
 | 
			
		||||
            "type": "plane",
 | 
			
		||||
            "id": "[uuid]",
 | 
			
		||||
            "artifactId": "[uuid]",
 | 
			
		||||
            "value": "XY",
 | 
			
		||||
            "origin": {
 | 
			
		||||
              "x": 0.0,
 | 
			
		||||
              "y": 0.0,
 | 
			
		||||
              "z": 0.0,
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            },
 | 
			
		||||
            "xAxis": {
 | 
			
		||||
              "x": 1.0,
 | 
			
		||||
              "y": 0.0,
 | 
			
		||||
              "z": 0.0,
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            },
 | 
			
		||||
            "yAxis": {
 | 
			
		||||
              "x": 0.0,
 | 
			
		||||
              "y": 1.0,
 | 
			
		||||
              "z": 0.0,
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            },
 | 
			
		||||
            "zAxis": {
 | 
			
		||||
              "x": 0.0,
 | 
			
		||||
              "y": 0.0,
 | 
			
		||||
              "z": 1.0,
 | 
			
		||||
              "units": {
 | 
			
		||||
                "type": "Mm"
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "start": {
 | 
			
		||||
@ -737,14 +689,6 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
            "units": {
 | 
			
		||||
              "type": "Mm"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "zAxis": {
 | 
			
		||||
            "x": 0.0,
 | 
			
		||||
            "y": 0.0,
 | 
			
		||||
            "z": 1.0,
 | 
			
		||||
            "units": {
 | 
			
		||||
              "type": "Mm"
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "start": {
 | 
			
		||||
@ -898,14 +842,6 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
              "type": "Mm"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "zAxis": {
 | 
			
		||||
            "x": 0.0,
 | 
			
		||||
            "y": 0.0,
 | 
			
		||||
            "z": 1.0,
 | 
			
		||||
            "units": {
 | 
			
		||||
              "type": "Mm"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "solid": {
 | 
			
		||||
            "type": "Solid",
 | 
			
		||||
            "id": "[uuid]",
 | 
			
		||||
@ -970,14 +906,6 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
                    "type": "Mm"
 | 
			
		||||
                  }
 | 
			
		||||
                },
 | 
			
		||||
                "zAxis": {
 | 
			
		||||
                  "x": 0.0,
 | 
			
		||||
                  "y": 0.0,
 | 
			
		||||
                  "z": 1.0,
 | 
			
		||||
                  "units": {
 | 
			
		||||
                    "type": "Mm"
 | 
			
		||||
                  }
 | 
			
		||||
                },
 | 
			
		||||
                "solid": {
 | 
			
		||||
                  "type": "Solid",
 | 
			
		||||
                  "id": "[uuid]",
 | 
			
		||||
@ -1049,14 +977,6 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
                        "units": {
 | 
			
		||||
                          "type": "Mm"
 | 
			
		||||
                        }
 | 
			
		||||
                      },
 | 
			
		||||
                      "zAxis": {
 | 
			
		||||
                        "x": 0.0,
 | 
			
		||||
                        "y": 0.0,
 | 
			
		||||
                        "z": 1.0,
 | 
			
		||||
                        "units": {
 | 
			
		||||
                          "type": "Mm"
 | 
			
		||||
                        }
 | 
			
		||||
                      }
 | 
			
		||||
                    },
 | 
			
		||||
                    "start": {
 | 
			
		||||
@ -1230,14 +1150,6 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
              "type": "Mm"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "zAxis": {
 | 
			
		||||
            "x": 0.0,
 | 
			
		||||
            "y": 0.0,
 | 
			
		||||
            "z": 1.0,
 | 
			
		||||
            "units": {
 | 
			
		||||
              "type": "Mm"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "solid": {
 | 
			
		||||
            "type": "Solid",
 | 
			
		||||
            "id": "[uuid]",
 | 
			
		||||
@ -1309,14 +1221,6 @@ description: Variables in memory after executing flange.kcl
 | 
			
		||||
                  "units": {
 | 
			
		||||
                    "type": "Mm"
 | 
			
		||||
                  }
 | 
			
		||||
                },
 | 
			
		||||
                "zAxis": {
 | 
			
		||||
                  "x": 0.0,
 | 
			
		||||
                  "y": 0.0,
 | 
			
		||||
                  "z": 1.0,
 | 
			
		||||
                  "units": {
 | 
			
		||||
                    "type": "Mm"
 | 
			
		||||
                  }
 | 
			
		||||
                }
 | 
			
		||||
              },
 | 
			
		||||
              "start": {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user