<p>I have written a standalone java program (ObjectVolume) which reads an object file (.obj) and calculates the surface area, centroid and volume of any closed triangular mesh. The program also displays the file name, number of faces, the number of 3D coordinates and program run times. The program is in the public domain and is located at:</p>

<p><a href="https://sourceforge.net/projects/objectvolume/?source=navbar" rel="nofollow noreferrer">https://sourceforge.net/projects/objectvolume/?source=navbar</a></p>

<p>Included is a detail description of the process and the code.  The source code is included so you can add whatever you like.</p>

CC BY-SA 3.0
2016-11-16T00:25:28.440Z
2016-11-17T21:17:42.587Z
2016-11-17T21:17:42.587Z
Tony DeCaria
<p><strong>For OBJ Files</strong></p>

<p>Free tools like <a href="http://meshlab.sourceforge.net/">MeshLab</a>, <a href="https://www.blender.org/">Blender</a>, and <a href="http://www.glc-player.net/">GLC_Player</a> are able to load OBJ files and give you basic information about their content.</p>

<p>Apparently, GLC_Player can also load COLLADA.</p>

<p>In code you can use the following standard tools:</p>

<ol>
<li><a href="https://github.com/assimp/assimp">Assimp</a> - Library for loading many common formats including OBJ</li>
<li><a href="https://github.com/syoyo/tinyobjloader">TinyObjLoader</a> - .h/.cc only, no external dependencies</li>
</ol>

CC BY-SA 3.0
2015-11-04T22:31:27.753Z
2015-11-04T22:31:27.753Z
ap_
<p>I need a source code that takes as input a COLLADA file and/or an OBJ file, and gives as output basic information about the file, such as file size, model dimension, volume and if possible texture issues.</p>

CC BY-SA 3.0
2015-11-04T22:16:51.503Z
obj is simple enough to write a parser for, collada also has free libs to parse it.
ratchet freak
CC BY-SA 3.0
2016-11-16T14:38:49.280Z
Requests for software recommendations are off topic here, but you may be interested in [softwarerecs.se].
trichoplax is on Codidact now
<implementation>
Is there any open code to get information about COLLADA or OBJ files?
Pottercomuneo
# Is there any open code to get information about COLLADA or OBJ files?

(Asked by: username_0 on 2015-11-04)

I need a source code that takes as input a COLLADA file and/or an OBJ file, and gives as output basic information about the file, such as file size, model dimension, volume and if possible texture issues.

**Tags:** implementation

> **Comments:**
> **username_1**: obj is simple enough to write a parser for, collada also has free libs to parse it.  
> **username_2**: Requests for software recommendations are off topic here, but you may be interested in [softwarerecs.se].  

---

## 2 answers

### Answer by username_4 on 2015-11-04. Score: 6 | Accepted answer

**For OBJ Files**

Free tools like [MeshLab](http://meshlab.sourceforge.net/), [Blender](https://www.blender.org/), and [GLC\_Player](http://www.glc-player.net/) are able to load OBJ files and give you basic information about their content.

Apparently, GLC\_Player can also load COLLADA.

In code you can use the following standard tools:

1. [Assimp](https://github.com/assimp/assimp) - Library for loading many common formats including OBJ
2. [TinyObjLoader](https://github.com/syoyo/tinyobjloader) - .h/.cc only, no external dependencies


---

### Answer by username_3 on 2016-11-16. Score: 2

I have written a standalone java program (ObjectVolume) which reads an object file (.obj) and calculates the surface area, centroid and volume of any closed triangular mesh. The program also displays the file name, number of faces, the number of 3D coordinates and program run times. The program is in the public domain and is located at:

<https://sourceforge.net/projects/objectvolume/?source=navbar>

Included is a detail description of the process and the code. The source code is included so you can add whatever you like.


---

