Rename FilletOrChamfer to EdgeCut (#3383)
* Rename FilletOrChamfer to EdgeCut * Update tests
This commit is contained in:
@ -161,10 +161,8 @@ const extrusion = extrude(5, sketch001)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -192,6 +190,8 @@ const extrusion = extrude(5, sketch001)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -165,10 +165,8 @@ const extrusion = extrude(5, sketch001)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -196,6 +194,8 @@ const extrusion = extrude(5, sketch001)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -80,10 +80,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -111,6 +109,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -500,10 +500,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -531,6 +529,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -79,10 +79,8 @@ const extrusion = extrude(10, sketch001)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -110,6 +108,8 @@ const extrusion = extrude(10, sketch001)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -499,10 +499,8 @@ const extrusion = extrude(10, sketch001)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -530,6 +528,8 @@ const extrusion = extrude(10, sketch001)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -81,10 +81,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -112,6 +110,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -501,10 +501,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -532,6 +530,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -173,10 +173,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -204,6 +202,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -593,10 +593,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -624,6 +622,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -78,10 +78,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -109,6 +107,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -498,10 +498,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -529,6 +527,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -78,10 +78,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -109,6 +107,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -498,10 +498,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -529,6 +527,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -91,10 +91,8 @@ const exampleSketch = startSketchOn('XZ')
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -122,6 +120,8 @@ const exampleSketch = startSketchOn('XZ')
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -511,10 +511,8 @@ const exampleSketch = startSketchOn('XZ')
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -542,6 +540,8 @@ const exampleSketch = startSketchOn('XZ')
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -84,10 +84,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -115,6 +113,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -504,10 +504,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -535,6 +533,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -144,10 +144,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
* `extrude_group`: `ExtrudeGroup` - An extrude group is a collection of extrude surfaces. (REQUIRED)
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -175,6 +173,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -218,10 +218,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -249,6 +247,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -548,10 +548,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
`ExtrudeGroup` - An extrude group is a collection of extrude surfaces.
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -579,6 +577,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -622,10 +622,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -653,6 +651,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -77,10 +77,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -108,6 +106,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -365,10 +365,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -396,6 +394,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -664,10 +664,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -695,6 +693,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -79,10 +79,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -110,6 +108,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -499,10 +499,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -530,6 +528,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -104,10 +104,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -135,6 +133,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -482,10 +482,8 @@ const example = extrude(10, exampleSketch)
|
||||
`ExtrudeGroupSet` - A extrude group or a group of extrude groups.
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -513,6 +511,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -556,10 +556,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -587,6 +585,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -144,10 +144,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
* `extrude_group`: `ExtrudeGroup` - An extrude group is a collection of extrude surfaces. (REQUIRED)
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -175,6 +173,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -218,10 +218,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -249,6 +247,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -548,10 +548,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
`ExtrudeGroup` - An extrude group is a collection of extrude surfaces.
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -579,6 +577,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -622,10 +622,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -653,6 +651,8 @@ const mountingPlate = extrude(thickness, mountingPlateSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -45,10 +45,8 @@ const part001 = startSketchOn('XY')
|
||||
* `extrude_group`: `ExtrudeGroup` - An extrude group is a collection of extrude surfaces. (REQUIRED)
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -76,6 +74,8 @@ const part001 = startSketchOn('XY')
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -119,10 +119,8 @@ const part001 = startSketchOn('XY')
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -150,6 +148,8 @@ const part001 = startSketchOn('XY')
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -440,10 +440,8 @@ const part001 = startSketchOn('XY')
|
||||
`ExtrudeGroup` - An extrude group is a collection of extrude surfaces.
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -471,6 +469,8 @@ const part001 = startSketchOn('XY')
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -514,10 +514,8 @@ const part001 = startSketchOn('XY')
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -545,6 +543,8 @@ const part001 = startSketchOn('XY')
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -90,10 +90,8 @@ const example = extrude(1, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -121,6 +119,8 @@ const example = extrude(1, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -502,10 +502,8 @@ const example = extrude(1, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -533,6 +531,8 @@ const example = extrude(1, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -913,10 +913,8 @@ const example = extrude(1, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -944,6 +942,8 @@ const example = extrude(1, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -70,10 +70,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -101,6 +99,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -70,10 +70,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -101,6 +99,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -83,10 +83,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -114,6 +112,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -503,10 +503,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -534,6 +532,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -70,10 +70,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -101,6 +99,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -490,10 +490,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -521,6 +519,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -88,10 +88,8 @@ const example = extrude(1, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -119,6 +117,8 @@ const example = extrude(1, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -50,10 +50,8 @@ const example = extrude(-5, exampleSketch)
|
||||
* `extrude_group_set`: `ExtrudeGroupSet` - A extrude group or a group of extrude groups. (REQUIRED)
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -81,6 +79,8 @@ const example = extrude(-5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -124,10 +124,8 @@ const example = extrude(-5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -155,6 +153,8 @@ const example = extrude(-5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -81,10 +81,8 @@ const example = extrude(1, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -112,6 +110,8 @@ const example = extrude(1, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -48,10 +48,8 @@ const example = extrude(1, exampleSketch)
|
||||
* `extrude_group_set`: `ExtrudeGroupSet` - A extrude group or a group of extrude groups. (REQUIRED)
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -79,6 +77,8 @@ const example = extrude(1, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -122,10 +122,8 @@ const example = extrude(1, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -153,6 +151,8 @@ const example = extrude(1, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -50,10 +50,8 @@ let vase = layer()
|
||||
* `extrude_group_set`: `ExtrudeGroupSet` - A extrude group or a group of extrude groups. (REQUIRED)
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -81,6 +79,8 @@ let vase = layer()
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -124,10 +124,8 @@ let vase = layer()
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -155,6 +153,8 @@ let vase = layer()
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -71,10 +71,8 @@ const sketch001 = startSketchOn('XY')
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -102,6 +100,8 @@ const sketch001 = startSketchOn('XY')
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -66,10 +66,8 @@ const sketch001 = startSketchOn('XY')
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -97,6 +95,8 @@ const sketch001 = startSketchOn('XY')
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -65,10 +65,8 @@ const sketch001 = startSketchOn('XY')
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -96,6 +94,8 @@ const sketch001 = startSketchOn('XY')
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -287,10 +287,8 @@ uuid |
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -318,6 +316,8 @@ uuid |
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -661,10 +661,8 @@ uuid |
|
||||
`ExtrudeGroup` - An extrude group is a collection of extrude surfaces.
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -692,6 +690,8 @@ uuid |
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -735,10 +735,8 @@ uuid |
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -766,6 +764,8 @@ uuid |
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -132,10 +132,8 @@ shell({ faces: ['end'], thickness: 0.25 }, firstSketch)
|
||||
* `extrude_group`: `ExtrudeGroup` - An extrude group is a collection of extrude surfaces. (REQUIRED)
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -163,6 +161,8 @@ shell({ faces: ['end'], thickness: 0.25 }, firstSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -206,10 +206,8 @@ shell({ faces: ['end'], thickness: 0.25 }, firstSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -237,6 +235,8 @@ shell({ faces: ['end'], thickness: 0.25 }, firstSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -527,10 +527,8 @@ shell({ faces: ['end'], thickness: 0.25 }, firstSketch)
|
||||
`ExtrudeGroup` - An extrude group is a collection of extrude surfaces.
|
||||
```js
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -558,6 +556,8 @@ shell({ faces: ['end'], thickness: 0.25 }, firstSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -601,10 +601,8 @@ shell({ faces: ['end'], thickness: 0.25 }, firstSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -632,6 +630,8 @@ shell({ faces: ['end'], thickness: 0.25 }, firstSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -92,10 +92,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -123,6 +121,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -452,10 +452,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -483,6 +481,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -96,10 +96,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -127,6 +125,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -161,10 +161,8 @@ const a1 = startSketchOn({
|
||||
},
|
||||
} |
|
||||
{
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -192,6 +190,8 @@ const a1 = startSketchOn({
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -577,10 +577,8 @@ const a1 = startSketchOn({
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -608,6 +606,8 @@ const a1 = startSketchOn({
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
1330
docs/kcl/std.json
1330
docs/kcl/std.json
File diff suppressed because it is too large
Load Diff
@ -80,10 +80,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -111,6 +109,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -500,10 +500,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -531,6 +529,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -70,10 +70,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -101,6 +99,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -490,10 +490,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -521,6 +519,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -73,10 +73,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -104,6 +102,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -493,10 +493,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -524,6 +522,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -73,10 +73,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -104,6 +102,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -493,10 +493,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -524,6 +522,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -71,10 +71,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -102,6 +100,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -491,10 +491,8 @@ const example = extrude(10, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -522,6 +520,8 @@ const example = extrude(10, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -69,10 +69,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -100,6 +98,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
@ -489,10 +489,8 @@ const example = extrude(5, exampleSketch)
|
||||
{
|
||||
// The extrude group the face is on.
|
||||
extrudeGroup: {
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// Chamfers or fillets on this extrude group.
|
||||
filletOrChamfers: [{
|
||||
edgeCuts: [{
|
||||
// The engine id of the edge to fillet.
|
||||
edgeId: uuid,
|
||||
// The id of the engine command that called this fillet.
|
||||
@ -520,6 +518,8 @@ const example = extrude(5, exampleSketch)
|
||||
},
|
||||
type: "chamfer",
|
||||
}],
|
||||
// The id of the extrusion end cap
|
||||
endCapId: uuid,
|
||||
// The height of the extrude group.
|
||||
height: number,
|
||||
// The id of the extrude group.
|
||||
|
@ -241,12 +241,12 @@ impl DynamicState {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn fillet_or_chamfer_ids_on_sketch_group(&self, sketch_group_id: uuid::Uuid) -> Vec<uuid::Uuid> {
|
||||
pub fn edge_cut_ids_on_sketch_group(&self, sketch_group_id: uuid::Uuid) -> Vec<uuid::Uuid> {
|
||||
self.extrude_group_ids
|
||||
.iter()
|
||||
.flat_map(|eg| {
|
||||
if eg.sketch_group_id == sketch_group_id {
|
||||
eg.fillet_or_chamfers.clone()
|
||||
eg.edge_cuts.clone()
|
||||
} else {
|
||||
Vec::new()
|
||||
}
|
||||
@ -1029,15 +1029,15 @@ pub struct ExtrudeGroup {
|
||||
pub end_cap_id: Option<uuid::Uuid>,
|
||||
/// Chamfers or fillets on this extrude group.
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub fillet_or_chamfers: Vec<FilletOrChamfer>,
|
||||
pub edge_cuts: Vec<EdgeCut>,
|
||||
/// Metadata.
|
||||
#[serde(rename = "__meta")]
|
||||
pub meta: Vec<Metadata>,
|
||||
}
|
||||
|
||||
impl ExtrudeGroup {
|
||||
pub(crate) fn get_all_fillet_or_chamfer_ids(&self) -> Vec<uuid::Uuid> {
|
||||
self.fillet_or_chamfers.iter().map(|foc| foc.id()).collect()
|
||||
pub(crate) fn get_all_edge_cut_ids(&self) -> Vec<uuid::Uuid> {
|
||||
self.edge_cuts.iter().map(|foc| foc.id()).collect()
|
||||
}
|
||||
}
|
||||
|
||||
@ -1049,7 +1049,7 @@ pub struct ExtrudeGroupLazyIds {
|
||||
pub sketch_group_id: uuid::Uuid,
|
||||
/// Chamfers or fillets on this extrude group.
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub fillet_or_chamfers: Vec<uuid::Uuid>,
|
||||
pub edge_cuts: Vec<uuid::Uuid>,
|
||||
}
|
||||
|
||||
impl From<&ExtrudeGroup> for ExtrudeGroupLazyIds {
|
||||
@ -1057,7 +1057,7 @@ impl From<&ExtrudeGroup> for ExtrudeGroupLazyIds {
|
||||
Self {
|
||||
extrude_group_id: eg.id,
|
||||
sketch_group_id: eg.sketch_group.id,
|
||||
fillet_or_chamfers: eg.fillet_or_chamfers.iter().map(|foc| foc.id()).collect(),
|
||||
edge_cuts: eg.edge_cuts.iter().map(|foc| foc.id()).collect(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1066,7 +1066,7 @@ impl From<&ExtrudeGroup> for ExtrudeGroupLazyIds {
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
|
||||
#[ts(export)]
|
||||
#[serde(tag = "type", rename_all = "camelCase")]
|
||||
pub enum FilletOrChamfer {
|
||||
pub enum EdgeCut {
|
||||
/// A fillet.
|
||||
Fillet {
|
||||
/// The id of the engine command that called this fillet.
|
||||
@ -1089,25 +1089,25 @@ pub enum FilletOrChamfer {
|
||||
},
|
||||
}
|
||||
|
||||
impl FilletOrChamfer {
|
||||
impl EdgeCut {
|
||||
pub fn id(&self) -> uuid::Uuid {
|
||||
match self {
|
||||
FilletOrChamfer::Fillet { id, .. } => *id,
|
||||
FilletOrChamfer::Chamfer { id, .. } => *id,
|
||||
EdgeCut::Fillet { id, .. } => *id,
|
||||
EdgeCut::Chamfer { id, .. } => *id,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn edge_id(&self) -> uuid::Uuid {
|
||||
match self {
|
||||
FilletOrChamfer::Fillet { edge_id, .. } => *edge_id,
|
||||
FilletOrChamfer::Chamfer { edge_id, .. } => *edge_id,
|
||||
EdgeCut::Fillet { edge_id, .. } => *edge_id,
|
||||
EdgeCut::Chamfer { edge_id, .. } => *edge_id,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn tag(&self) -> Option<TagDeclarator> {
|
||||
match self {
|
||||
FilletOrChamfer::Fillet { tag, .. } => *tag.clone(),
|
||||
FilletOrChamfer::Chamfer { tag, .. } => *tag.clone(),
|
||||
EdgeCut::Fillet { tag, .. } => *tag.clone(),
|
||||
EdgeCut::Chamfer { tag, .. } => *tag.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -131,16 +131,13 @@ impl Args {
|
||||
self.current_program_memory
|
||||
.find_extrude_groups_on_sketch_group(extrude_group.sketch_group.id)
|
||||
.iter()
|
||||
.flat_map(|eg| eg.get_all_fillet_or_chamfer_ids()),
|
||||
);
|
||||
ids.extend(
|
||||
self.dynamic_state
|
||||
.fillet_or_chamfer_ids_on_sketch_group(sketch_group_id),
|
||||
.flat_map(|eg| eg.get_all_edge_cut_ids()),
|
||||
);
|
||||
ids.extend(self.dynamic_state.edge_cut_ids_on_sketch_group(sketch_group_id));
|
||||
traversed_sketch_groups.push(sketch_group_id);
|
||||
}
|
||||
|
||||
ids.extend(extrude_group.get_all_fillet_or_chamfer_ids());
|
||||
ids.extend(extrude_group.get_all_edge_cut_ids());
|
||||
}
|
||||
|
||||
// We can return early if there are no fillets or chamfers.
|
||||
|
@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
|
||||
use crate::{
|
||||
ast::types::TagDeclarator,
|
||||
errors::{KclError, KclErrorDetails},
|
||||
executor::{ChamferSurface, ExtrudeGroup, ExtrudeSurface, FilletOrChamfer, GeoMeta, KclValue},
|
||||
executor::{ChamferSurface, EdgeCut, ExtrudeGroup, ExtrudeSurface, GeoMeta, KclValue},
|
||||
std::{fillet::EdgeReference, Args},
|
||||
};
|
||||
|
||||
@ -95,7 +95,7 @@ async fn inner_chamfer(
|
||||
}
|
||||
|
||||
let mut extrude_group = extrude_group.clone();
|
||||
let mut fillet_or_chamfers = Vec::new();
|
||||
let mut edge_cuts = Vec::new();
|
||||
for edge_tag in data.tags {
|
||||
let edge_id = match edge_tag {
|
||||
EdgeReference::Uuid(uuid) => uuid,
|
||||
@ -115,7 +115,7 @@ async fn inner_chamfer(
|
||||
)
|
||||
.await?;
|
||||
|
||||
fillet_or_chamfers.push(FilletOrChamfer::Chamfer {
|
||||
edge_cuts.push(EdgeCut::Chamfer {
|
||||
id,
|
||||
edge_id,
|
||||
length: data.length,
|
||||
@ -134,7 +134,7 @@ async fn inner_chamfer(
|
||||
}
|
||||
}
|
||||
|
||||
extrude_group.fillet_or_chamfers = fillet_or_chamfers;
|
||||
extrude_group.edge_cuts = edge_cuts;
|
||||
|
||||
Ok(extrude_group)
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ pub(crate) async fn do_post_extrude(
|
||||
height: length,
|
||||
start_cap_id,
|
||||
end_cap_id,
|
||||
fillet_or_chamfers: vec![],
|
||||
edge_cuts: vec![],
|
||||
meta: sketch_group.meta,
|
||||
}))
|
||||
}
|
||||
|
@ -10,9 +10,7 @@ use uuid::Uuid;
|
||||
use crate::{
|
||||
ast::types::TagDeclarator,
|
||||
errors::{KclError, KclErrorDetails},
|
||||
executor::{
|
||||
ExtrudeGroup, ExtrudeSurface, FilletOrChamfer, FilletSurface, GeoMeta, KclValue, TagIdentifier, UserVal,
|
||||
},
|
||||
executor::{EdgeCut, ExtrudeGroup, ExtrudeSurface, FilletSurface, GeoMeta, KclValue, TagIdentifier, UserVal},
|
||||
std::Args,
|
||||
};
|
||||
|
||||
@ -100,7 +98,7 @@ async fn inner_fillet(
|
||||
}
|
||||
|
||||
let mut extrude_group = extrude_group.clone();
|
||||
let mut fillet_or_chamfers = Vec::new();
|
||||
let mut edge_cuts = Vec::new();
|
||||
for edge_tag in data.tags {
|
||||
let edge_id = match edge_tag {
|
||||
EdgeReference::Uuid(uuid) => uuid,
|
||||
@ -120,7 +118,7 @@ async fn inner_fillet(
|
||||
)
|
||||
.await?;
|
||||
|
||||
fillet_or_chamfers.push(FilletOrChamfer::Fillet {
|
||||
edge_cuts.push(EdgeCut::Fillet {
|
||||
id,
|
||||
edge_id,
|
||||
radius: data.radius,
|
||||
@ -139,7 +137,7 @@ async fn inner_fillet(
|
||||
}
|
||||
}
|
||||
|
||||
extrude_group.fillet_or_chamfers = fillet_or_chamfers;
|
||||
extrude_group.edge_cuts = edge_cuts;
|
||||
|
||||
Ok(extrude_group)
|
||||
}
|
||||
|
Reference in New Issue
Block a user