# More questions about the geometry engine

**URL:** https://qa.fmod.com/t/more-questions-about-the-geometry-engine/22684
**Category:** FMOD Engine
**Created:** [March 11, 2025, 11:45am UTC](https://qa.fmod.com/t/more-questions-about-the-geometry-engine/22684 "2025-03-11T11:45:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ethin](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@Ethin](https://qa.fmod.com/u/Ethin)
#### Post date: [March 11, 2025, 11:45am UTC](https://qa.fmod.com/t/more-questions-about-the-geometry-engine/22684/1 "2025-03-11T11:45:10Z")

</div>

So I’m a bit confused on the limitations/requirements of the geometry engine.

I’ve been playing with a few algorithms for binary voxel grid → mesh conversion (Marching Cubes and Surface Nets mainly) but I keep getting errors from FMOD telling me I’m passing invalid parameters. Either that, or it doesn’t create the geometry when I call `createGeometry` and returns an error there. Does FMOD enforce requirements like “there must not be degenerate polygons/vertices” or something? My code is (API wise) doing everything correctly, but for some reason FMOD is really not liking the vertices I’m passing in.

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [March 16, 2025, 11:54pm UTC](https://qa.fmod.com/t/more-questions-about-the-geometry-engine/22684/2 "2025-03-16T23:54:35Z")

</div>

What is the `FMOD_RESULT` of your failing `createGeometry` calls? A failure in `createGeometry` would indicate a null geometry pointer in the last argument or a \<= 0 for `maxNumPolygons` or `maxNumVertices`. `addPolygon` can fail if you’ve exceeded the max polygons or vertices you specified in `createGeometry`  
If you can please give me a sample of some of the failing inputs I can step through and see what’s going wrong?
