Back to Home Page

This weeks assignment objectives are to:

This week we were introduced to computer aided design. We looked at different ways to represent shapes specifically raster and vector.

Here are the programs I will used:

2D: Gimp (raster), Inkscape (vector) 3D: Fusion 360, Blender

I will first use gimp to replicate the skecht I did in power point for my project proposal. Thereafter I will use inkscape to modify a planthopper image and convert it to a vector. Finally, I will use Fusion 360 develop a 3D model for my final project.

2D Modeling

Gimp

We were introduced to several programs. I decided to explore Gimp. Gimp stands for Gnu image manipulation program Gimp is an open source software is a very popular raster program that is supposed to cover the functions of Photoshop.

https://www.gimp.org/tutorials/

File creation allows you to specify several parameters for example you can:

  • new file creation width y height px,
  • can select templates as well, and
  • Use different fills for the background
  • and export to diffent formats export (pdf, psv, etc)

The program allows you to modify the layout of your tool menu to suit your style of design.


Figure 1. Gimp menu
Figure 1. Gimp menu

To draw circles and rectangles it was a tedious process as there seems to be a three step process specifically:

selection tools (rectangle select) => select (send to path) => edit (stroke to path)

On the other hand to make lines was simple enough you select the brush and then you can just pick a point and thereafter press shift and move the cursor to where you want your line to end.

I liked the fact that has several layers so it is easy to overlay objects on a background.

Also it was interesting even though I did not explore much that it allows you to play with the perspective of images and provides you with what would seem to be a transformation matrix.

a tutorial for beginners:

https://www.youtube.com/watch?v=YHwnlgD18kE

Figure 1. Gimp image of Intelligent Trap
Figure 1. Gimp image of Intelligent Trap

Note: some trouble that I ran into was that when I wrote text there was frame with many points surrounding the text, however after you shift to another layer you will still see the text but no longer this frame.

Inskape

Is a graphics package that uses vectors to represent shapes. For this software I wanted to be able to use a picture of a famous plant hopper jump study and extract the outline and later use node editing to improve and simplify the image. For this purpose I watch two tutorials which focus on each part of the process:

vectorize an image with trace bitmap

edit paths by nodes


Figure . Planthopper study
Figure . Planthopper study


I loaded the image into Inkscape and then I used the trace bitmap function. I used a single scan option and the brightness detection option.

Then I press the apply the button and with the node editing tools we can see all the nodes which were produced which are plenty. Thereafter I applied the function simplify to reduce the number of nodes. Then I used the delete node tool to get rid of the floor as I only wantedthe silhouette of the planthopper. There after I needed to separate the legs and for these I used functions to add, join, substract, and separate nodes.


Figure . Planthopper siloutte
Figure . Planthopper siloutte
Figure . Planthopper nodes
Figure . Planthopper nodes
Figure . Planthopper simplified(nodes)
Figure . Planthopper simplified(nodes)
Figure . Planthopper legs separation
Figure . Planthopper legs separation

I watch the following 15 minute tutorial in Spanish which was quite informative and give

https://www.youtube.com/watch?v=TKpchk09Rqg&t=588s


3D programs

Fusion 360

This week I spend quite a bit of time in Fusion 360. I learned a few things. One of them is that you can create several objects and have them as an assembly of objects. Also I used offset planes that allow you to accommodate objects a distanes from other objects keeping the same orientation.

Figure . Fusion image of Intelligent Trap
Figure . Fusion image of Intelligent Trap


Blender


Blender was definitely interesting, I started by watching the following tutorial:

https://www.youtube.com/watch?v=STGSzMfQFoA

Some commands I would like to remember were middle button for rotating the figure. Shift + middle button allowed us to move the canvas. Also the mode can be changed for concentrating in vertices edges and faces, this allows us to apply different commands to the specific geometrical features of the object. Also another command to remember is shift A for adding meshes.

Figure . Blender image of Intelligent Trap
Figure . Blender image of Intelligent Trap



Preprocessing tools

Previously I had used openCV for a course in computer vision. I tried to reinstall this software on my computer as I change to a from an Intel based mac to a Silicon one and was not able to do so. This is program that can work with python/C++ library that allows you to make image processing anything from resizing images to changin colors and image formats.

**Update I succeede installing opencv. On python:

you can follow this tutorial:

https://www.youtube.com/watch?v=s-flQ28fJWc

First you need to install python and thereafter the computer vision library

import cv2
import os 
cwd = os.getcwd()
img=cv2.imread("test.png") ## this will get the 
cv2.imwrite('test_converted.jpg', img, [cv2.IMWRITE_JPEG_QUALITY,50])
OpenCV convertion demo
OpenCV convertion demo

side by side results

I also tried with image magic by following this tutorial

https://jeuler.medium.com/how-to-convert-png-to-jpg-on-macos-using-imagemagick-9f85decc8678

where I got the following commands. The one to iterate over several files did not work for me.


cd Documents/Fab_Academy/images/week02
magick image.png output.jpg # for one image 
sudo for i in *.png; do convert$i” “${i%.*}.jpg”; done  # for several but this did not work for me for some reason

I will use the previous png file that I used in the open cv demonstration to convert it to a jpg.

Imagemagick convertion demo
Imagemagick convertion demo

Assigment Files

Blender File

Gimp File

Inskape File

Fusion File


Reflection

I never had seen the concepts of objects and paths, and I would like to investigate this a bit more in the future.

=> I asked chat gpt: I would like to know what are object,paths and strokes in gymp vs. inskape

In GIMP and Inkscape, the terms objects, paths, and strokes are important concepts, but they are used in different contexts based on the software’s purpose.

GIMP (GNU Image Manipulation Program)

GIMP is primarily a raster graphics editor, which means it works with pixel-based images (like photos). However, GIMP does have some vector-like functionality as well.

  1. Objects:
    • In GIMP, “objects” are typically used to refer to layers or items within a composition (e.g., text, images, shapes). Objects are not the same as in vector software because GIMP works mainly with raster data.
    • GIMP layers can be seen as “objects,” and you can manipulate them independently, including moving, resizing, or editing their content.
  2. Paths:
    • Paths in GIMP are vector-based objects that allow you to create shapes or lines that are not pixel-based. Paths are often used for creating selections, guiding strokes, or as outlines for shapes that can later be filled or stroked.
    • Paths are editable and scalable without losing quality since they are not bound to pixels like raster images.
  3. Strokes:
    • In GIMP, strokes are used to apply a line (outline) to a path or shape. You can customize the stroke by setting its width, color, and style (e.g., dashed or solid).
    • A stroke is applied to a path, which makes it visible as a line, and it can be used for design or outlining shapes.

Inkscape

Inkscape is a vector graphics editor, which means it deals with objects that are defined using mathematical equations rather than pixels.

  1. Objects:
    • In Inkscape, objects refer to individual vector elements such as paths, shapes (like rectangles, circles), text, or images. These objects can be manipulated independently, including moving, resizing, rotating, and applying various effects.
    • In Inkscape, objects can be stacked in layers or grouped, and you can interact with each separately.
  2. Paths:
    • Paths in Inkscape are the fundamental building blocks of vector graphics. A path is a line or shape that consists of points (called nodes) and curves (Bezier curves).
    • You can manipulate these paths to create complex shapes, drawings, or lines. Unlike GIMP, where paths are more like selections or guides, in Inkscape, paths are the main form of drawing and illustration.
    • Paths in Inkscape can be open (like a line) or closed (like a shape).
  3. Strokes:
    • Strokes in Inkscape refer to the outline or border applied to a path, shape, or object. You can customize the color, width, and style of the stroke (solid, dashed, etc.).
    • Since Inkscape is vector-based, strokes are scalable, meaning you can resize them without losing quality.

Summary of Differences:

  • GIMP is a raster editor, so the main objects are layers (which can contain raster images, text, paths, etc.). Paths are used to create vector shapes and selections, and strokes are applied to these paths.
  • Inkscape is a vector editor, so objects are vector shapes, text, and paths. Paths are the core of the design, and strokes are applied to these paths or shapes.

In summary, paths in Inkscape are core elements for creating shapes, whereas in GIMP, paths are used more for selection and creating vector outlines. Strokes in both programs are outlines, but in GIMP, strokes are applied more to paths or selections, while in Inkscape, strokes are used for defining the appearance of vector shapes and paths.