Adding an .obj file

This tutorial will explain where to write the function definition:

I encourage you to watch the entire video.

Consider drawing a line between blocks of code (includes functions) to easily see these:

void setup()  
  {
  }
  
//**************************  

void draw() 
  {
  objAbstractShape();
  }
  
//**************************    

void objAbstractShape()
  {
  // Your code  
  }

I use my preferred indentation style to easily see blocks of code:
Indentation style - Wikipedia

:)