+# Public class: Mesh_Netgen
+# ------------------------------
+
+## Class to define a NETGEN-based 2D or 3D algorithm
+# that need no discrete boundary (i.e. independent)
+#
+# More details.
+class Mesh_Netgen(Mesh_Algorithm):
+
+ is3D = 0
+
+ ## Private constructor.
+ def __init__(self, mesh, is3D, geom=0):
+ self.is3D = is3D
+ if is3D:
+ self.Create(mesh, geom, "NETGEN_2D3D", "libNETGENEngine.so")
+ else:
+ self.Create(mesh, geom, "NETGEN_2D", "libNETGENEngine.so")
+
+ ## Define hypothesis containing parameters of the algorithm
+ def Parameters(self):
+ if self.is3D:
+ hyp = self.Hypothesis("NETGEN_Parameters", [], "libNETGENEngine.so")
+ else:
+ hyp = self.Hypothesis("NETGEN_Parameters_2D", [], "libNETGENEngine.so")
+ return hyp
+