Monty Montgomery de7ffc5906 Eliminate a "C++ initialization order fiasco" for geometryregister
Current initialization of the global geometryregister suffers from a
classic 'initialization order fiasco'.  Depending on the order the
compilation units are loaded/linked, the initialization of the global
geometryregisterarray is not guaranteed to happen (and indeed often
does not happen) before it is used.  This leads to entries being
appended before it's initialized (usually 'suceeding, but potentially
causing memory corruption if the segment at that point isn't zeroed),
initialization then happening halfway through (wiping the initial
entries) and then the last entries being the only ones that show up.

The net effect is either a crash at startup, or several geometry types
seeming to be missing.  Eg, step files will oad, but STL files are
just ignored.  The bug is actively observed on, eg, Linux.

This patch implements a simple 'initialize at first access' convention
for the array, eliminating the ordering problem.

I've not reviewed the rest of the source for other potential examples
of the fiasco pattern; this fixes only the geometryregister, since
that was actively biting.
2022-05-22 11:29:10 -04:00
2022-03-25 18:22:05 -04:00
2022-03-25 18:22:05 -04:00
2022-03-25 18:22:05 -04:00
2020-11-24 12:11:43 +01:00
2012-06-11 20:19:06 +00:00
2009-01-12 23:40:13 +00:00
2022-05-05 18:08:29 +02:00
2009-01-12 23:40:13 +00:00
2009-01-12 23:40:13 +00:00
2009-01-24 23:28:47 +00:00
2009-01-12 23:40:13 +00:00
2015-12-21 20:22:17 +01:00
2009-01-12 23:40:13 +00:00
2016-07-11 10:31:48 +02:00
2009-01-12 23:40:13 +00:00

Netgen mesh generator

NETGEN is an automatic 3d tetrahedral mesh generator. It accepts input from constructive solid geometry (CSG) or boundary representation (BRep) from STL file format. The connection to a geometry kernel allows the handling of IGES and STEP files. NETGEN contains modules for mesh optimization and hierarchical mesh refinement. Netgen 6.x supports scripting via a Python interface. Netgen is open source based on the LGPL license. It is available for Unix/Linux, Windows, and OSX.

Description
Mesh generator
Readme LGPL-2.1 13 MiB
Languages
C++ 78.3%
C 11.2%
Tcl 4.3%
M4 1.6%
Python 1.5%
Other 3%