Version: 6.3.1
Modules | Functions

Defining hypotheses

Creating meshes
Collaboration diagram for Defining hypotheses:

Modules

 1D Meshing Hypotheses
 2D Meshing Hypotheses
 Max Element Volume hypothesis
 Netgen 2D and 3D hypotheses
 GHS3D Parameters hypothesis
 BLSURF Parameters hypothesis
 Hexotic Parameters hypothesis
 Quadrangle Parameters hypothesis
 Additional Hypotheses

Functions

def smeshDC::Mesh.AddHypothesis
 Assigns a hypothesis.
def smeshDC::Mesh.RemoveHypothesis
 Unassigns a hypothesis.
def smeshDC::Mesh.GetHypothesisList
 Gets the list of hypotheses added on a geometry.
def smeshDC::Mesh.RemoveGlobalHypotheses
 Removes all global hypotheses.

Function Documentation

def smeshDC.Mesh.AddHypothesis (   self,
  hyp,
  geom = 0 
) [inherited]

Assigns a hypothesis.

Parameters:
hypa hypothesis to assign
geoma subhape of mesh geometry
Returns:
SMESH.Hypothesis_Status

Definition at line 1615 of file smeshDC.py.

01616                                         :
01617         if isinstance( hyp, Mesh_Algorithm ):
01618             hyp = hyp.GetAlgorithm()
01619             pass
01620         if not geom:
01621             geom = self.geom
01622             if not geom:
01623                 geom = self.mesh.GetShapeToMesh()
01624             pass
01625         status = self.mesh.AddHypothesis(geom, hyp)
01626         isAlgo = hyp._narrow( SMESH_Algo )
01627         hyp_name = GetName( hyp )
01628         geom_name = ""
01629         if geom:
01630             geom_name = GetName( geom )
01631         TreatHypoStatus( status, hyp_name, geom_name, isAlgo )
01632         return status

def smeshDC.Mesh.GetHypothesisList (   self,
  geom 
) [inherited]

Gets the list of hypotheses added on a geometry.

Parameters:
geoma subshape of mesh geometry
Returns:
the sequence of SMESH_Hypothesis

Definition at line 1652 of file smeshDC.py.

01653                                      :
01654         return self.mesh.GetHypothesisList( geom )

def smeshDC.Mesh.RemoveGlobalHypotheses (   self) [inherited]

Removes all global hypotheses.

Definition at line 1657 of file smeshDC.py.

01658                                     :
01659         current_hyps = self.mesh.GetHypothesisList( self.geom )
01660         for hyp in current_hyps:
01661             self.mesh.RemoveHypothesis( self.geom, hyp )
01662             pass
01663         pass

def smeshDC.Mesh.RemoveHypothesis (   self,
  hyp,
  geom = 0 
) [inherited]

Unassigns a hypothesis.

Parameters:
hypa hypothesis to unassign
geoma subshape of mesh geometry
Returns:
SMESH.Hypothesis_Status

Definition at line 1638 of file smeshDC.py.

01639                                            :
01640         if isinstance( hyp, Mesh_Algorithm ):
01641             hyp = hyp.GetAlgorithm()
01642             pass
01643         if not geom:
01644             geom = self.geom
01645             pass
01646         status = self.mesh.RemoveHypothesis(geom, hyp)
01647         return status

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS