* change translate & scale to be better & docs Signed-off-by: Jess Frazelle <github@jessfraz.com> * autocomplete Signed-off-by: Jess Frazelle <github@jessfraz.com> * gen std Signed-off-by: Jess Frazelle <github@jessfraz.com> * kcl-samples Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
28 lines
634 B
Plaintext
28 lines
634 B
Plaintext
// Car Wheel Assembly
|
|
// A car wheel assembly with a rotor, tire, and lug nuts.
|
|
|
|
// Set units
|
|
@settings(defaultLengthUnit = in)
|
|
|
|
import "car-wheel.kcl" as carWheel
|
|
import "car-rotor.kcl" as carRotor
|
|
import "brake-caliper.kcl" as brakeCaliper
|
|
import "lug-nut.kcl" as lugNut
|
|
import "car-tire.kcl" as carTire
|
|
import lugCount from "globals.kcl"
|
|
|
|
carRotor
|
|
|> translate(x = 0, y = 0.5, z = 0)
|
|
carWheel
|
|
lugNut
|
|
|> patternCircular3d(
|
|
arcDegrees = 360,
|
|
axis = [0, 1, 0],
|
|
center = [0, 0, 0],
|
|
instances = lugCount,
|
|
rotateDuplicates = false,
|
|
)
|
|
brakeCaliper
|
|
|> translate(x = 0, y = 0.5, z = 0)
|
|
carTire
|