Forum

Author Topic: Running out of memory when building mesh  (Read 7696 times)

apeech

  • Newbie
  • *
  • Posts: 18
    • View Profile
Running out of memory when building mesh
« on: November 24, 2015, 06:57:10 PM »
I seem to keep running out of memory when trying to producing a mesh. I've shown the error that is displayed.

I was wondering if I'm running out of virtual memory so I've also included a picture of the amount of hard drive space being used by virtual memory.

Would having insufficient hard drive space cause this error? I have over 120 GB free (out of a 250 GB SSD drive) which seems like it should be enough.

These are the setttings used when trying to create the mesh:

General
Surface type: Arbitrary
Source data: Dense cloud
Face count: Medium (4,046,404)

Advanced
Interpolation: Enabled (default)
Point classes: All

Dave Martin

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Re: Running out of memory when building mesh
« Reply #1 on: November 24, 2015, 07:12:08 PM »
Aaron,

I can't help on the memory question specifically, but Surface Type of Height rather than Arbitrary may give better results and make less demands on memory.

Dave

apeech

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Running out of memory when building mesh
« Reply #2 on: November 24, 2015, 07:52:01 PM »
That made a world of difference, thanks for the suggestion.

Dave Martin

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Re: Running out of memory when building mesh
« Reply #3 on: November 24, 2015, 08:07:55 PM »
Thanks for the feedback - glad to help.

Dave

bigben

  • Sr. Member
  • ****
  • Posts: 406
    • View Profile
Re: Running out of memory when building mesh
« Reply #4 on: November 27, 2015, 10:57:12 AM »
For arbitrary meshes I use CloudCompare if I run out of RAM.
http://www.agisoft.com/forum/index.php?topic=4007.msg20728

Kiesel

  • Sr. Member
  • ****
  • Posts: 332
    • View Profile
Re: Running out of memory when building mesh
« Reply #5 on: November 27, 2015, 01:04:34 PM »
You could also use Meshlab for that.
See my old Tutorial "Processing projects with Agisoft PhotoScan and Meshlab if you are short in RAM" from 2013:

https://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=6&ved=0ahUKEwi3jdShprDJAhVFDCwKHRqnDQQQFghMMAU&url=http%3A%2F%2Fwww.virtumake.com%2Fforum%2Fdownload%2Ffile.php%3Fid%3D117&usg=AFQjCNGeBjVXxJrIUuJxa0YENm4HeLGenw&cad=rja

Karsten

bigben

  • Sr. Member
  • ****
  • Posts: 406
    • View Profile
Re: Running out of memory when building mesh
« Reply #6 on: November 27, 2015, 01:27:20 PM »
I've stopped using Meshlab for surface reconstructions for a couple of reasons.  1. CloudCompare is faster... multi-threaded for most of the process, more stable and capable of handling larger point clouds without freezing up your computer.  2. The other nice feature is setting the vertex density as a scalar field on the resulting mesh which is really useful for refining the edges of arbitrary meshes. This gives better control than using edge length as a filter.

I still use Meshlab for other things though...

Kiesel

  • Sr. Member
  • ****
  • Posts: 332
    • View Profile
Re: Running out of memory when building mesh
« Reply #7 on: November 27, 2015, 02:39:48 PM »
Thank you for the comparison! I have to look deeper in cloudcompare.   ;)

Karsten