Week 2: Computer-Aided Design

This week focuses on exploring various Computer-Aided Design (CAD) tools for both 2D and 3D modeling, as well as mastering file compression techniques for web documentation.


2D Design Process: From Sketch to Vector

My 2D design process started with a hand-drawn sketch of the pill box. To transform this into a functional digital format, I followed these steps in Inkscape:

Final 2D Design

Figure 1: Final vector layout in Inkscape.

Image Compression with GIMP

To optimize the images for the web, I used GIMP to apply lossy compression, aiming for a balance between visual clarity and fast page loading. During the JPEG export process, I enabled the "Show preview in image window" option to monitor the real-time impact of the Quality slider on file size. As shown in the documentation, by reducing the quality from 63.5% to 58.5%, the file size dropped from 101.9 KB to 96.4 KB. Additionally, I utilized Optimize and Progressive settings to improve browser rendering performance and enhance the overall user experience.

Before Compression

Step 1: Quality 63.5% (101.9 KB)

After Compression

Step 2: Quality 58.5% (96.4 KB)

Download SVG Design File

3D Rendering in Fusion 360

In Fusion 360, I began by creating a 2D Sketch on the XY plane to define the base and internal compartments of the pill box. I then used the Extrude tool to transform these profiles into a 3D volume, giving the body its height and depth. To improve ergonomics and aesthetics, I applied Fillets to all sharp outer corners and top edges. Finally, I transitioned to the Render workspace within Fusion 360, where I assigned a 'Matte Plastic' Appearance to the body and distinct grey tones to the lids before generating the final high-quality visualization. After rendering, I used GIMP to optimize the image for the web by exporting it as a JPEG and reducing the quality to, which successfully compressed the file size from its original state without losing essential visual clarity.

3D Render of Pill Box

Figure 2: Final 3D visualization of the pill box in Fusion 360.

Video Compression with Handbrake

For the 3D animation, I used Handbrake (a GUI for ffmpeg) to encode and compress the raw recording. To ensure fast web playback, I enabled the "Web Optimized" checkbox, which optimizes the MP4 structure for streaming. By limiting the framerate to 30 FPS and using the H.264 codec, I successfully reduced the file size from 884 KB to 671 KB without sacrificing visual clarity of the CAD model.

Handbrake Summary Handbrake Dimensions

Figure 3: Optimized 3D animation.

File Original Size Compressed Size
Project-Animation.mp4 884 KB 671 KB

3D Design Tools and Methodology (Fusion 360)

Design Tools Used

Step-by-Step Design Process

  1. Initial 2D Sketching: I started by drawing the main rectangular base in the Sketch environment. I used the Dimension tool to set the specific length of 180mm and width of 30mm to fit the pill compartments accurately.
  2. Internal Compartments: Within the same sketch, I designed seven equal rectangular slots (approx. 18x25mm) for the medication storage, ensuring consistent spacing between them.
  3. 3D Base Extrusion: I selected the outer profile and used the Extrude tool to create the main 3D body. I then extruded the internal walls to define the height of the compartments.
  4. Ergonomic Refinement: To remove sharp edges, I used the Fillet tool on the exterior corners and top rims. This is a crucial step for a handheld medical device to ensure comfort and safety.
  5. Rendering & Visualization: Finally, I moved to the Render workspace. I applied different materials to the lids and body to simulate the final product. I generated the final image using Fusion 360's built-in renderer to showcase the textures and lighting.
Sketch 1

Sketch 1: Initial 2D Sketch

Sketch 2

Sketch 2: Dimensional Constraints

Final Project Design Files

Download the original 3D files to view or modify the design:

Download Fusion 360 (.f3d) Download STEP File (.step)