Knitting offers the possibility to create 3D geometries directly, without the need for tailoring or stitching. To fabricate a given piece of weft-knitted textile, the CNC knitting machine needs a two-dimensional, line-by-line set of instructions to follow during the knitting process, known as a knitting pattern. These patterns are usually designed directly in 2D, based on developed surfaces, primitives or rationalised schemes for non-developable geometries. Any custom, non-repetitive, non-developable knitting pattern has to be programmed by the user in a way that requires detailed manipulation and understanding of knitting operations. Creating such patterns is time-consuming, and very difficult for geometries not based on known primitives.
In contrast to other industries, such as the garment, shoe or automotive industries, where knitting is used for mass production, the construction sector has a greater demand for non-repetitive modules with bespoke geometries. Creating knitting patterns for various 3D geometries in a fast and flexible way is therefore especially important.
compas_knit is a package developed as an addition to COMPAS, a Python-based computational framework for collaboration and research in architecture, structures and digital fabrication. The package is a design-to-fabrication pipeline for knitted textiles, with an approach that automatically generates knitting patterns for a given 3D geometry. The patterns are generated as a graph on a 3D model of the desired shape and represented as a 2D pixel-grid diagram, with accurate placement of shaping operations such as increases, decreases and short rows. Starting from a 3D mesh, the user defines a knitting direction and the loop parameters of a given machine. The mesh is contoured and sampled with the loop height to generate the courses, including short rows, and the courses are then sampled with the loop width to create the final topology. The approach is implemented as a design tool in Rhinoceros 3D, giving architects and designers the possibility to set the knitting parameters, choose the knitting direction, manipulate the pattern, and mark features such as channels, openings or colour patterns. Once generated, the patterns are exported as bitmap image files, which can be imported for processing in the knitting machine software.
Compatibility
The approach has been tested and proven to work with three different machine set-ups: a Steiger Libra 3.130 with Model 9, a Shima Seiki SWG091N with SDS-ONE APEX, and a Brother KH-970 electronic knitting machine with img2track.
compas_knit came out of the KnitCrete PhD research and generated the textiles for KnitBridge and KnitCandela. It remains in ongoing development and is continually adapted within the group, whose later pipelines build on it: material-informed knits in Tailored Tension, knittable patches in Informed Segmentation, and the membranes of Necto. See also Computational Fabrication Pipelines.





