# Import geometry and individual control

**URL:** https://discourse.processing.org/t/import-geometry-and-individual-control/21988
**Category:** Project Guidance
**Created:** [June 19, 2020, 7:52am UTC](https://discourse.processing.org/t/import-geometry-and-individual-control/21988 "2020-06-19T07:52:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![TTG](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ttg/32/983_2.png) [@TTG](https://discourse.processing.org/u/TTG)
#### Post date: [June 19, 2020, 7:52am UTC](https://discourse.processing.org/t/import-geometry-and-individual-control/21988/1 "2020-06-19T07:52:46Z")

</div>

Hi team,  
I am currently trying to find an elegant way in order to import geometry.  
P5 currently supports .obj ( loadModel) . The question is as follows:

Can the loaded geometry be divided in individual parts? If the model consists out of multiple cubes (lets say 20 or 50 cubes/boxes) i would like to have control over them to color them differently and place them in an array in order to do some sorting operations.

Currently, I could not find documentation this is feasible (out of the box), hope there is a way to do so or get confirmation that such is not possible as that functionality does not exist.

If that is the case would the only solution be:  
treat the .obj file as a text file and read the code applying instructions to separate the cubes (or shapes) in the .obj file ( and then draw the shapes with beginShape()…vertex()…endShape() loops) ?

or is there a way more practical solution or library that tackles this issue in a fluent way.  
Quite keen if I can be directed to a good direction. Would be of great help

ps: if dxf or .stl would allow such operations (out of the box) that would be a way too as not fixed to .obj
