RangeError: Maximum call stack size exceeded (Forma.geometry.getTriangles())

RangeError: Maximum call stack size exceeded (Forma.geometry.getTriangles())

vc6XFSA
Contributor Contributor
466 Views
1 Reply
Message 1 of 2

RangeError: Maximum call stack size exceeded (Forma.geometry.getTriangles())

vc6XFSA
Contributor
Contributor

Hello, 

 

I have encountered an issue when importing terrain geometry into my plugin using the Forma API. Specifically, when working at the maximum allowed boundary size within Autodesk Forma, the mesh seems to be too complex, resulting in an error during import.

 

I tested this in the center of Hamburg. When the requested map area is 500 meters, everything works correctly.

2025_04_18_34_31_040.png

However, when I increase the area to 1000 meters, the import fails. 

Uncaught (in promise) RangeError: Maximum call stack size exceeded

2025_04_18_35_28_174.png

 

Could you please clarify whether this is a problem on my side, or does Autodesk Forma have an internal limit on the number of triangles or geometry complexity that can be retrieved through the API?  Is there any way to narrow down the request part of the meshes in advance to avoid this error?

 

Thank you very much in advance for your support.

Kind regards,

Vsevolod

 

0 Likes
467 Views
1 Reply
Reply (1)
Message 2 of 2

henrik_steenJL382
Autodesk
Autodesk

Hello Vsevolod,

 

Apologize for not coming back to you on this ealier.

 

We've tried to reproduce this but so far been unable to. We've tested this on multiple proposal including one with 10M+ triangles.

 

Were you able to sort this out? If not, can you provide some details such as the stack on the error you get?

 

Best regards,

Henrik

0 Likes