From 65ae7cda6d4df8b3efb4e3bcacbf451984b40480 Mon Sep 17 00:00:00 2001 From: Andrew Keller Date: Mon, 24 Apr 2017 13:50:21 -0700 Subject: [PATCH] A few tweaks to interdigit --- NEWS.md | 4 ++-- src/tags.jl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS.md b/NEWS.md index 5df7dc0..47c14a9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,8 +3,8 @@ This will also be true for functions passed to `Paths.CPW` or `Paths.Trace`. - Breaking change: `minimum` and `maximum` no longer defined for polygons; use `lowerleft` and `upperright` instead. - - Breaking change: some of the methods in 'src/tags.jl' that you probably weren't using - anyway may have had changes to their method signatures. + - Breaking change: some of the methods in `src/tags.jl` may have had changes to their + method signatures. - Breaking change: `flatten` always returns a `Cell`, never an array of `Polygon`s. The behavior of `flatten!` (which modifies a `Cell`) is unchanged. - Implement our own rendering algorithms. This enables continuous integration testing and diff --git a/src/tags.jl b/src/tags.jl index ed54f7a..9120ba9 100644 --- a/src/tags.jl +++ b/src/tags.jl @@ -153,18 +153,18 @@ function grating!{T}(c::Cell{T}, line, space, size; kwargs...) end """ - interdigit!{T}(c::Cell{T}, width, length, xgap, ygap, npairs::Integer, + interdigit!{T}(c::Cell{T}, width, length, fingergap, fingeroffset, npairs::Integer, skiplast=true; kwargs...) Creates interdigitated fingers, e.g. for a lumped element capacitor. - `width`: finger width - `length`: finger length - - `xgap`: x-offset at ends of fingers + - `fingeroffset`: x-offset at ends of fingers - `fingergap`: gap between fingers - `npairs`: number of fingers - `skiplast`: should we skip the last finger, leaving an odd number? """ function interdigit!{T}(c::Cell{T}, width, length, fingergap, fingeroffset, npairs::Integer, - skiplast; kwargs...) + skiplast=true; kwargs...) for i in 1:npairs render!(c, Rectangle(Point(zero(T), (i-1) * 2 * (width + fingergap)), Point(length, (i-1) * 2 * (width + fingergap) + width); kwargs...))