Skip to content

Commit 55ebf28

Browse files
feat(cablebuilderspec): add Solid part specification constructor
1 parent ce79806 commit 55ebf28

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/parametricbuilder/cablebuilderspec.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,11 @@ Strip(component::Symbol; layers::Int, t, w, lay = 0.0, m) =
477477
PartSpec(component, DataModel.Strip, layers;
478478
dim = _spec(t), args = (_spec(w), _spec(lay)), material = m)
479479

480+
# solid: inherits inner radius = 0.0, builds from diameter
481+
Solid(component::Symbol; d, m) =
482+
PartSpec(component, DataModel.Tubular, 1;
483+
dim = _spec(d), args = (), material = m)
484+
480485
# central + hex rings sugar
481486
function Stranded(component::Symbol; layers::Int, d, n::Int, lay = 11.0, m)
482487
@assert layers >= 1 "stranded: layers must be ≥ 1 (includes the central wire)."

0 commit comments

Comments
 (0)