Merge branch 'main' into jtran/units-indicator
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([4.83, 12.56], %)
|
||||
|> line(end = [15.1, 2.48])
|
||||
|> line(end = [3.15, -9.85], tag = $seg01)
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([0,0], %)
|
||||
|> line(end = [0, 10], tag = $thing)
|
||||
|> line(end = [10, 0])
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([0,0], %)
|
||||
|> line(end = [0, 10], tag = $thing)
|
||||
|> line(end = [10, 0])
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([0,0], %)
|
||||
|> line(end = [0, 10], tag = $thing)
|
||||
|> line(end = [10, 0], tag = $thing1)
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([0,0], %)
|
||||
|> line(end = [0, 10], tag = $thing)
|
||||
|> line(end = [10, 0], tag = $thing1)
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([0,0], %)
|
||||
|> line(end = [0, 10], tag = $thing)
|
||||
|> line(end = [10, 0])
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [1, 3.82], tag = $seg01)
|
||||
|> angledLineToX([
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [1, 3.82], tag = $seg01)
|
||||
|> angledLineToX([
|
||||
|
@ -20,7 +20,7 @@ const thickness = sqrt(6 * M * FOS / (width * sigmaAllow))
|
||||
const filletR = 0.25
|
||||
|
||||
// Sketch the bracket and extrude with fillets
|
||||
const bracket = startSketchOn('XY')
|
||||
const bracket = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, wallMountL], tag = 'outerEdge')
|
||||
|> line(end = [-shelfMountL, 0])
|
||||
|
@ -1,4 +1,4 @@
|
||||
exampleSketch = startSketchOn('XZ')
|
||||
exampleSketch = startSketchOn(XZ)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, 2])
|
||||
|> line(end = [3, 1])
|
||||
|
@ -2,7 +2,7 @@ const center = [0,0]
|
||||
const radius = 40
|
||||
const height = 3
|
||||
|
||||
const body = startSketchOn('XY')
|
||||
const body = startSketchOn(XY)
|
||||
|> startProfileAt([center[0]+radius, center[1]], %)
|
||||
|> arc({angleEnd: 360, angleStart: 0, radius}, %)
|
||||
|> close()
|
||||
|
@ -1,3 +1,3 @@
|
||||
const cylinder = startSketchOn('XY')
|
||||
const cylinder = startSketchOn(XY)
|
||||
|> circle(center= [0, 0], radius= 22)
|
||||
|> extrude(length = 14)
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([-10, -10], %)
|
||||
|> line(end = [20, 0])
|
||||
|> line(end = [0, 20])
|
||||
|
@ -1,5 +1,5 @@
|
||||
// create a sketch with name sketch000
|
||||
const sketch000 = startSketchOn('XY')
|
||||
const sketch000 = startSketchOn(XY)
|
||||
|> startProfileAt([0.0, 0.0], %)
|
||||
|> line(end = [1.0, 1.0], tag = $line000)
|
||||
|> line(end = [0.0, -1.0], tag = $line001)
|
||||
|
@ -41,7 +41,7 @@ miniHdmiHole = startSketchOn(XY)
|
||||
], %)
|
||||
|> close()
|
||||
|
||||
case = startSketchOn('XY')
|
||||
case = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(endAbsolute = [caseWidth, 0], $edge1)
|
||||
|> line(endAbsolute = [caseWidth, caseLength], $edge2)
|
||||
|
@ -1,5 +1,5 @@
|
||||
fn box = (h, l, w) => {
|
||||
const myBox = startSketchOn('XY')
|
||||
const myBox = startSketchOn(XY)
|
||||
|> startProfileAt([0,0], %)
|
||||
|> line(end = [0, l])
|
||||
|> line(end = [w, 0])
|
||||
|
@ -1,5 +1,5 @@
|
||||
fn box = (p, h, l, w) => {
|
||||
const myBox = startSketchOn('XY')
|
||||
const myBox = startSketchOn(XY)
|
||||
|> startProfileAt(p, %)
|
||||
|> line(end = [0, l])
|
||||
|> line(end = [w, 0])
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> circle(center= [5, 5], radius= 10)
|
||||
|> extrude(length = 10)
|
||||
|> helixRevolutions({revolutions = 16, angleStart = 0}, %)
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> circle(center = [5, 5], radius = 10)
|
||||
|> extrude(length = -10)
|
||||
|> helixRevolutions({revolutions = 16, angleStart = 0}, %)
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> circle(center= [5, 5], radius= 10)
|
||||
|> extrude(length = 10)
|
||||
|> helixRevolutions({revolutions = 16, angleStart = 0, length = 3}, %)
|
||||
|
@ -1,4 +1,4 @@
|
||||
const svg = startSketchOn('XY')
|
||||
const svg = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|
||||
|> line(endAbsolute = [2.52, -26.04]) // MoveAbsolute
|
||||
|
@ -19,7 +19,7 @@ const lSegments = total_length / (lbumps + 1)
|
||||
const wSegments = total_width / (wbumps + 1)
|
||||
|
||||
// make the base
|
||||
const s = startSketchOn('XY')
|
||||
const s = startSketchOn(XY)
|
||||
|> startProfileAt([-total_width / 2, -total_length / 2], %)
|
||||
|> line(end = [total_width, 0])
|
||||
|> line(end = [0, total_length])
|
||||
|
@ -1,4 +1,4 @@
|
||||
exampleSketch = startSketchOn('XZ')
|
||||
exampleSketch = startSketchOn(XZ)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, 2])
|
||||
|> line(end = [3, 1])
|
||||
|
@ -1,4 +1,4 @@
|
||||
const svg = startSketchOn('XY')
|
||||
const svg = startSketchOn(XY)
|
||||
|> lineTo([0],%)
|
||||
|> lineTo([0 + 1],%)
|
||||
|> lineTo([0 + 1 + 2],%)
|
||||
|
@ -1,5 +1,5 @@
|
||||
fn square = (pos, scale) => {
|
||||
sg = startSketchOn('XY')
|
||||
sg = startSketchOn(XY)
|
||||
|> startProfileAt(pos, %)
|
||||
|> line(end = [0, scale])
|
||||
|> line(end = [scale, 0])
|
||||
|
@ -1,4 +1,4 @@
|
||||
const part001 = startSketchOn('XY')
|
||||
const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([0.0, 0.0], %)
|
||||
|> line(end = [-0.3670208139314082, 0.21201331909674526])
|
||||
|> line(end = [-0.4707511307971115, 0.4905279615419764])
|
||||
|
@ -3,7 +3,7 @@ const height = 10
|
||||
const length = 12
|
||||
|
||||
fn box = (sk1, sk2, scale) => {
|
||||
const boxSketch = startSketchOn('XY')
|
||||
const boxSketch = startSketchOn(XY)
|
||||
|> startProfileAt([sk1, sk2], %)
|
||||
|> line(end = [0, scale])
|
||||
|> line(end = [scale, 0])
|
||||
|
@ -1,5 +1,5 @@
|
||||
export fn foo = () => { return 0 }
|
||||
|
||||
// This interacts with the engine.
|
||||
part001 = startSketchOn('XY')
|
||||
part001 = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|
@ -7,7 +7,7 @@ const FOS = 2
|
||||
const leg1 = 5 // inches
|
||||
const leg2 = 8 // inches
|
||||
const thickness = sqrt(distance * p * FOS * 6 / sigmaAllow / width) // inches
|
||||
const bracket = startSketchOn('XY')
|
||||
const bracket = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, leg1])
|
||||
|> line(end = [leg2, 0])
|
||||
|
@ -4,7 +4,7 @@ let radius = 80
|
||||
let circ = {angle_start: 0, angle_end: 360, radius: radius}
|
||||
|
||||
let triangleLen = 500
|
||||
const p = startSketchOn('XY')
|
||||
const p = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> angledLine({angle: 60, length:triangleLen}, %, $a)
|
||||
|> angledLine({angle: 180, length: triangleLen}, %, $b)
|
||||
|
@ -1,4 +1,4 @@
|
||||
const svg = startSketchOn('XY')
|
||||
const svg = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|
||||
|> line(endAbsolute = [22.687663, -2.7664351]) // MoveRelative
|
||||
|
@ -6,7 +6,7 @@ fn m = (s) => {
|
||||
fn p = (xs, ys) => {
|
||||
let ox = 35 - (m(xs) % 70)
|
||||
let oy = 35 - (m(ys) % 70)
|
||||
const r = startSketchOn('XZ')
|
||||
const r = startSketchOn(XZ)
|
||||
|> startProfileAt([ox, oy], %)
|
||||
|> line(end = [1, 0])
|
||||
|> line(end = [0, -1])
|
||||
|
@ -8,7 +8,7 @@ let xs = 205804
|
||||
let ys = 71816
|
||||
let ox = 35 - (t(xs) % 70)
|
||||
let oy = 35 - (t(ys) % 70)
|
||||
const r = startSketchOn('XZ')
|
||||
const r = startSketchOn(XZ)
|
||||
|> startProfileAt([ox, oy], %)
|
||||
|> line(end = [1, 0])
|
||||
|> line(end = [0, -1])
|
||||
|
@ -9,7 +9,7 @@ const radius = 10
|
||||
const depth = 30
|
||||
const length001 = slateWidthHalf - radius
|
||||
const length002 = depth + minClampingDistance
|
||||
const sketch001 = startSketchOn('XZ')
|
||||
const sketch001 = startSketchOn(XZ)
|
||||
|> startProfileAt([0, depth - templateGap], %)
|
||||
|> xLine(length = length001, tag = $seg01)
|
||||
|> arc({
|
||||
|
@ -1,5 +1,5 @@
|
||||
fn rect = (origin) => {
|
||||
return startSketchOn('XZ')
|
||||
return startSketchOn(XZ)
|
||||
|> startProfileAt(origin, %)
|
||||
|> angledLine([0, 191.26], %, $rectangleSegmentA001)
|
||||
|> angledLine([
|
||||
|
@ -1,4 +1,4 @@
|
||||
const sketch001 = startSketchOn('XZ')
|
||||
const sketch001 = startSketchOn(XZ)
|
||||
|> startProfileAt([75.8, 317.2], %) // [$startCapTag, $EndCapTag]
|
||||
|> angledLine([0, 268.43], %, $rectangleSegmentA001)
|
||||
|> angledLine([
|
||||
|
@ -1,4 +1,4 @@
|
||||
const sketch001 = startSketchOn('XZ')
|
||||
const sketch001 = startSketchOn(XZ)
|
||||
|> startProfileAt([75.8, 317.2], %) // [$startCapTag, $EndCapTag]
|
||||
|> angledLine([0, 268.43], %, $rectangleSegmentA001)
|
||||
|> angledLine([
|
||||
|
@ -1,4 +1,4 @@
|
||||
part001 = startSketchOn('XY')
|
||||
part001 = startSketchOn(XY)
|
||||
|> startProfileAt([11.19, 28.35], %)
|
||||
|> line(end = [28.67, -13.25], tag = $here)
|
||||
|> line(end = [-4.12, -22.81])
|
||||
|
@ -23,7 +23,7 @@ thickness = sqrt(6 * M * FOS / (width * sigmaAllow))
|
||||
filletR = 0.25
|
||||
|
||||
// Sketch the bracket and extrude with fillets
|
||||
bracket = startSketchOn('XY')
|
||||
bracket = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, wallMountL], tag = $outerEdge)
|
||||
|> line(end = [-shelfMountL, 0], tag = $seg01)
|
||||
|
@ -1,5 +1,5 @@
|
||||
fn cube = (pos, scale) => {
|
||||
const sg = startSketchOn('XY')
|
||||
const sg = startSketchOn(XY)
|
||||
|> startProfileAt(pos, %)
|
||||
|> line(end = [0, scale])
|
||||
|> line(end = [scale, 0])
|
||||
|
@ -1,5 +1,5 @@
|
||||
fn cube = (pos, scale) => {
|
||||
const sg = startSketchOn('XY')
|
||||
const sg = startSketchOn(XY)
|
||||
|> startProfileAt(pos, %)
|
||||
|> line(end = [0, scale])
|
||||
|> line(end = [scale, 0])
|
||||
|
@ -1,5 +1,5 @@
|
||||
fn cube = (pos, scale) => {
|
||||
const sg = startSketchOn('XY')
|
||||
const sg = startSketchOn(XY)
|
||||
|> startProfileAt(pos, %)
|
||||
|> line(end = [0, scale])
|
||||
|> line(end = [scale, 0])
|
||||
|
@ -1,5 +1,5 @@
|
||||
fn cube = (pos, scale) => {
|
||||
const sg = startSketchOn('XY')
|
||||
const sg = startSketchOn(XY)
|
||||
|> startProfileAt(pos, %)
|
||||
|> line(end = [0, scale])
|
||||
|> line(end = [scale, 0])
|
||||
|
@ -4,7 +4,7 @@ let angleOffset = 135
|
||||
let r = 1
|
||||
let angleStart = 110
|
||||
|
||||
startSketchOn('XY')
|
||||
startSketchOn(XY)
|
||||
|> startProfileAt([startX, startY], %)
|
||||
|> angledLine({
|
||||
angle: angleStart,
|
||||
|
@ -1,4 +1,4 @@
|
||||
sketch002 = startSketchOn('XZ')
|
||||
sketch002 = startSketchOn(XZ)
|
||||
|> startProfileAt([-108.83, -57.48], %)
|
||||
|> angledLine([0, 105.13], %, $rectangleSegmentA001)
|
||||
|> angledLine([
|
||||
@ -10,5 +10,5 @@ sketch002 = startSketchOn('XZ')
|
||||
-segLen(rectangleSegmentA001)
|
||||
], %)
|
||||
|> close()
|
||||
sketch001 = startSketchOn('XZ')
|
||||
sketch001 = startSketchOn(XZ)
|
||||
|> circle(center = [318.33, 168.1], radius = 182.8)
|
||||
|
@ -1,4 +1,4 @@
|
||||
part001 = startSketchOn('XZ')
|
||||
part001 = startSketchOn(XZ)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(endAbsolute = [100, 100])
|
||||
|> line(endAbsolute = [100, 0])
|
||||
|
Reference in New Issue
Block a user