From a9e479d971715362477e044e30347453c101b01e Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Sat, 4 Jul 2020 14:57:01 +0100 Subject: [PATCH] Documented camera lens module. --- readme.md | 1 + vitamins/camera.scad | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 6fafd18..1c3ffb3 100644 --- a/readme.md +++ b/readme.md @@ -457,6 +457,7 @@ PCB cameras. | Module | Description | |:--- |:--- | | ```camera(type)``` | Draw specified PCB camera | +| ```camera_lens(type, offset = 0)``` | Draw the lens stack, with optional offset for making a clearance hole | ![cameras](tests/png/cameras.png) diff --git a/vitamins/camera.scad b/vitamins/camera.scad index a33c2ac..b4c2b5c 100644 --- a/vitamins/camera.scad +++ b/vitamins/camera.scad @@ -29,7 +29,7 @@ function camera_lens(type) = type[4]; //! Stack of lens parts, can be r function camera_connector_pos(type) = type[5]; //! The flex connector block for the camera itself's position function camera_connector_size(type)= type[6]; //! The flex connector block for the camera itself's size -module camera_lens(type, offset = 0) +module camera_lens(type, offset = 0) //! Draw the lens stack, with optional offset for making a clearance hole color(grey(20)) translate(camera_lens_offset(type)) for(p = camera_lens(type)) {