Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

kcl-samples

KittyCAD Language (KCL) is our language for defining geometry and working with our Geometry Engine efficiently.

This repository includes a mixture of simple and complex models demonstrating the features and syntax of KCL.

The samples can be browsed in our documentation at https://zoo.dev/docs/kcl-samples.

Guidelines for adding samples

KCL samples conform to a set of style guidelines to ensure consistency and readability.

  1. File Naming: Name your KCL files descriptively and concisely, using hyphens to separate words (e.g., flange.kcl, ball-bearing.kcl).

  2. File Header: The first comment line should be the file's title. The second - a brief description explaining what the model is and its typical use cases. Optionally, but preferred, the third comment line should be "Categories:" followed by a category value or comma separated category values. Leaving this off won't break anything, but will list the sample on the website as "Uncategorized".

  3. Inline Comments: Use inline comments to explain non-obvious parts of the code. Each major section should have a comment describing its purpose.

  4. Constants: Define constants at the beginning of your KCL files for any values that might change or need to be reused (e.g., dimensions, angles).

Snapshot and export

When you submit a PR to add or modify KCL samples, you need to run a few commands to generate the required artifacts. Note: You must have a ZOO_API_TOKEN set in your env for this to work.

cd rust
just overwrite-sim-test-sample samplename

ex. just overwrite-sim-test-sample angle-gauge


angle-gauge

axial-fan

ball-bearing

battery-module-cooling-plate

bench

bench-for-kids

bike-hub-washer

bone-plate

bottle

box

bracket

bracket-with-slot

c-shape-solid

camshaft

car-wheel-assembly

cassette

ceiling-fan

clock

coilover-assembly

cold-plate

color-cube

cone

contra-rotor

counterdrilled-weldment

countersunk-plate

cpu-cooler

crash-box

curtain-wall-anchor-plate

cycloidal-gear

cylinder

desk-edge-stopper

dining-table

dodecahedron

dog-house-great-dane

enclosure

end-effector-gripper-fingers

engine-valve

exhaust-manifold

field-monitor-stand

flange

flat-bladed-impeller

focusrite-scarlett-mounting-bracket

food-service-spatula

french-press

gallows-bracket

gas-impeller

gear-rack

gingerbread-man

gingerbread-man-cookie-cutter

golf-tee

gridfinity-baseplate

gridfinity-baseplate-magnets

gridfinity-bins

gridfinity-bins-stacking-lip

hammer

hand-trolley

helical-gear

helical-planetary-gearset

helium-tank

herringbone-gear

herringbone-planetary-gearset

hex-nut

hex-nut-with-chamfer

holder-rod-angle

i-beam

inner-thread

keyboard

kitt

lattice-cubic

lego

linear-shelf-system

liquid-impeller

makeup-mirror

manhole-cover

marine-ladder

modular-shelf-grid

mounting-plate

mug

multi-axis-robot

parametric-shelf-unit

pdu-faceplate

pergola

pillow-block-bearing

pipe

pipe-elbow-90deg

pipe-flange-assembly

pipe-manifold

pipe-straight

pipe-with-bend

poopy-shoe

propellant-line-brackets

propeller

prosthetic-hip

racing-seat-brackets

rack-blanking-panel

radial-flow-centrifugal-impeller

rectangle-table

round-table

router-template-cross-bar

router-template-slate

sash-window

saturn-v

scrub-daddy-holder

shaft-grommet

sheet-metal-bracket

shepherds-hook-bolt

single-impeller-blade

sls

snowman

socket-head-cap-screw

sphere

spinning-highrise-tower

split-washer-flat-version

split-washer-spring-version

spool

sprocket

spur-gear

spur-reduction-gearset

starlink-mini-bracket

straight-rung-ladder

stylized-car

stylized-cybertruck

stylized-dump-truck

stylized-firetruck

stylized-mini-bus

stylized-pickup-truck

surgical-drill-guide

t-slot-frame

t-slot-rail

t-slot-rectangle

t-slot-shelf

teapot

telemetry-antenna

thermal-block-insert

tooling-nest-block

torus

truss-structure

tube-manifold

twisted-wire-sculpture

usb-c

utility-sink

v-block

walkie-talkie

washer

wedge

wheel-hub

wind-turbine-blade-root-inserts

wing-spar

wood-screw

zoo-logo