fix conic tests

This commit is contained in:
benjamaan476
2025-06-25 19:16:06 +01:00
parent 94d2a8addb
commit eb8499f35b
5 changed files with 19 additions and 19 deletions

16
rust/Cargo.lock generated
View File

@ -536,7 +536,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c" checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"windows-sys 0.52.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -960,7 +960,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d"
dependencies = [ dependencies = [
"libc", "libc",
"windows-sys 0.52.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -1736,7 +1736,7 @@ checksum = "e04d7f318608d35d4b61ddd75cbdaee86b023ebe2bd5a66ee0915f0bf93095a9"
dependencies = [ dependencies = [
"hermit-abi", "hermit-abi",
"libc", "libc",
"windows-sys 0.52.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -3052,7 +3052,7 @@ dependencies = [
"once_cell", "once_cell",
"socket2", "socket2",
"tracing", "tracing",
"windows-sys 0.52.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -3360,7 +3360,7 @@ dependencies = [
"errno", "errno",
"libc", "libc",
"linux-raw-sys 0.4.15", "linux-raw-sys 0.4.15",
"windows-sys 0.52.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -3373,7 +3373,7 @@ dependencies = [
"errno", "errno",
"libc", "libc",
"linux-raw-sys 0.9.2", "linux-raw-sys 0.9.2",
"windows-sys 0.52.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -3969,7 +3969,7 @@ dependencies = [
"getrandom 0.3.1", "getrandom 0.3.1",
"once_cell", "once_cell",
"rustix 1.0.2", "rustix 1.0.2",
"windows-sys 0.52.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]
@ -4860,7 +4860,7 @@ version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
dependencies = [ dependencies = [
"windows-sys 0.52.0", "windows-sys 0.59.0",
] ]
[[package]] [[package]]

View File

@ -2007,8 +2007,7 @@ export fn conic(
/// |> startProfile(at = [0,0]) /// |> startProfile(at = [0,0])
/// |> parabolic( /// |> parabolic(
/// end = [10,0], /// end = [10,0],
/// coefficient = 2, /// coefficients = [2, 0, 0],
/// interior = [0,0]
/// ) /// )
/// |>close() /// |>close()
///``` ///```
@ -2033,8 +2032,8 @@ export fn parabolic(
/// Calculate the point (x, y) on a parabola given x or y and the coefficients [a, b, c] of the parabola. /// Calculate the point (x, y) on a parabola given x or y and the coefficients [a, b, c] of the parabola.
/// ///
/// ```kcl /// ```kcl
/// point001 = parabolicPoint(x = 5, a = 0.1, b = 0, c = 0) /// point001 = parabolicPoint(x = 5, coefficients = [0.1, 0, 0])
/// point002 = parabolicPoint(y = 2.5, a = 0.1, b = 0, c = 0) /// point002 = parabolicPoint(y = 2.5, coefficients = [0.1, 0, 0])
/// assert(point001[0], isEqualTo = point002[0]) /// assert(point001[0], isEqualTo = point002[0])
/// assert(point001[1], isEqualTo = point002[1]) /// assert(point001[1], isEqualTo = point002[1])
///``` ///```
@ -2101,12 +2100,13 @@ export fn hyperbolicPoint(
/// Add a parabolic section to an existing sketch. /// Add a parabolic section to an existing sketch.
/// ///
/// ```kcl /// ```kcl
/// exampleSketch = startSketchOn(XZ) /// majorRadius = 2
/// |> startProfile(at = [0, 0]) /// minorRadius = 1
/// |> elliptic( /// ellip = ellipticPoint(majorRadius, minorRadius, x = 2)
/// endAbsolute = [10,0], ///
/// interiorAbsolute = [5,5] /// exampleSketch = startSketchOn(XY)
/// ) /// |> startProfile(at = ellip, tag = $start)
/// |> elliptic(center = [0, 0], angleStart = segAng(start), angleEnd = 160, majorRadius, minorRadius)
/// |> close() /// |> close()
/// example = extrude(exampleSketch, length = 10) /// example = extrude(exampleSketch, length = 10)
/// ``` /// ```

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB