+ def AutomaticTetrahedralization(self):
+ """
+ Compute tetrahedral mesh using AutomaticLength + MEFISTO + NETGEN
+ """
+ dim = self.MeshDimension()
+ # assign hypotheses
+ self.RemoveGlobalHypotheses()
+ self.Segment().AutomaticLength()
+ if dim > 1 :
+ self.Triangle().LengthFromEdges()
+ pass
+ if dim > 2 :
+ self.Tetrahedron(NETGEN)
+ pass
+ self.Compute()
+ pass
+
+ def AutomaticHexahedralization(self):
+ """
+ Compute hexahedral mesh using AutomaticLength + Quadrangle + Hexahedron
+ """
+ dim = self.MeshDimension()
+ # assign hypotheses
+ self.RemoveGlobalHypotheses()
+ self.Segment().AutomaticLength()
+ if dim > 1 :
+ self.Quadrangle()
+ pass
+ if dim > 2 :
+ self.Hexahedron()
+ pass
+ self.Compute()
+ pass
+
+ def RemoveGlobalHypotheses(self):
+ """
+ Removes all global hypotheses
+ """
+ current_hyps = self.mesh.GetHypothesisList( self.geom )
+ for hyp in current_hyps:
+ self.mesh.RemoveHypothesis( self.geom, hyp )
+ pass
+ pass
+