On Apr 09, 2013, at 01:46 PM, Joshua Stults <joshua.stu...@gmail.com> wrote:

I am trying to speed up export of a region to stl format, and I noticed in g-stl.c that there is a hard-coded ncpu=1 [1].  Does changing this to 2 or 4 speed up the stl conversion (if there are 2 or 4 cores available)?
 
If all it took to speed it up was changing that to a bigger number, we would have done that.. ;)

It looks like there is a command line option to set ncpu [2], but lower down in the code it is hard-coded to 1 [3].

The exporter is not currently set up to perform a conversion in parallel.  Someone started working on infrastructure to support that many years ago, but the work was never completed.

Depending on your use case, one faster way to obtain an STL conversion is via the bot_dump command in mged.  That will export a mesh without first validating that it's solid.  Of course, you still need to convert to a BoT mesh first via the facetize command, and I suspect that's more likely where you're currently spending the majority of your time.

Another option would be to perform the conversion in parallel at a scripting level, running multiple g-stl at the same time (on different objects).

Cheers!
Sean

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
BRL-CAD Users mailing list
brlcad-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-users

Reply via email to