# 3d scanner with Arduino and laser pointer

**URL:** <https://discourse.processing.org/t/3d-scanner-with-arduino-and-laser-pointer/30360>\
**Category:** Project Guidance\
**Created:** [May 29, 2021, 5:51pm UTC](https://discourse.processing.org/t/3d-scanner-with-arduino-and-laser-pointer/30360 "2021-05-29T17:51:33Z")\
**Posts on this page:** 1\
**Showing post:** 73

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [June 13, 2021, 9:08pm UTC](https://discourse.processing.org/t/3d-scanner-with-arduino-and-laser-pointer/30360/73 "2021-06-13T21:08:16Z")

</div>

@paulgoux

if you can explain this code and how to use it

```auto
PImage imga;// the image which is inside the subfolder called "autredos" and you want to get
Activity act;
String finalPath;
PImage[] img;// arrayList for all images

void setup(){
  size(600,400);
  background(255);
  act= this.getActivity();
  img = loadImages("autredos"+"/"+"autresousdos");// for creating the list in the subfolder
  imga = img[0];// here i suppose that i know the image i will display; in some cases you have to create a list view and can choose from it
  
  
}

void draw(){
  background(255,0,0);
  image(imga, 0, 0); //displaying the image imaga, in the subfolder
}

PImage[] loadImages(String folderName_){
  
  
  AssetManager assetManager = act.getAssets();
  try{
    String[] imgPath = assetManager.list(folderName_);
    println(imgPath.length);
    File[] files = new File[imgPath.length];
    
    img = new PImage[imgPath.length];
     for(int i=0; i<imgPath.length; i++){
       println (imgPath[i]);
    
     img[i] = loadImage(folderName_ + "/" + imgPath[i]);
     files[i] = new File(folderName_+"/" + imgPath[i]);//pour des fichiers quelconque, here you can find all folders
     println("file=====" + files[i]);
    }
    
    
  }
  catch(IOException ex){
       System.out.println (ex.toString());   
  }
  
  return img;
}

```

# [Load Image in and outside data folder](https://discourse.processing.org/t/load-image-in-and-outside-data-folder/23537)

[Processing for Android](https://discourse.processing.org/c/processing-android/12)

---

_[View the full topic](https://discourse.processing.org/t/3d-scanner-with-arduino-and-laser-pointer/30360)._
