Version: 6.3.1
Functions

Quadrangle Parameters hypothesis

Defining hypotheses
Collaboration diagram for Quadrangle Parameters hypothesis:

Functions

def smeshDC::Mesh_Quadrangle.QuadrangleParameters
 Defines "QuadrangleParameters" hypothesis.
def smeshDC::Mesh_Quadrangle.QuadranglePreference
 Defines "QuadrangleParams" hypothesis with a type of quadrangulation that only quadrangles are built in the transition area along the finer meshed sides, iff the total quantity of segments on all four sides of the face is even.
def smeshDC::Mesh_Quadrangle.TrianglePreference
 Defines "QuadrangleParams" hypothesis with a type of quadrangulation that only triangles are built in the transition area along the finer meshed sides.
def smeshDC::Mesh_Quadrangle.Reduced
 Defines "QuadrangleParams" hypothesis with a type of quadrangulation that only quadrangles are built and the transition between the sides is made gradually, layer by layer.
def smeshDC::Mesh_Quadrangle.TriangleVertex
 Defines "QuadrangleParams" hypothesis with QUAD_STANDARD type of quadrangulation.

Function Documentation

def smeshDC.Mesh_Quadrangle.QuadrangleParameters (   self,
  quadType = StdMeshers.QUAD_STANDARD,
  triangleVertex = 0,
  UseExisting = 0 
) [inherited]

Defines "QuadrangleParameters" hypothesis.

Parameters:
quadTypedefines the algorithm of transition between differently descretized sides of a geometrical face:

  • QUAD_STANDARD - both triangles and quadrangles are possible in the transition area along the finer meshed sides.
  • QUAD_TRIANGLE_PREF - only triangles are built in the transition area along the finer meshed sides.
  • QUAD_QUADRANGLE_PREF - only quadrangles are built in the transition area along the finer meshed sides, iff the total quantity of segments on all four sides of the face is even (divisible by 2).
  • QUAD_QUADRANGLE_PREF_REVERSED - same as QUAD_QUADRANGLE_PREF but the transition area is located along the coarser meshed sides.
  • QUAD_REDUCED - only quadrangles are built and the transition between the sides is made gradually, layer by layer. This type has a limitation on the number of segments: one pair of opposite sides must have the same number of segments, the other pair must have an even difference between the numbers of segments on the sides.
triangleVertex,:vertex of a trilateral geometrical face, around which triangles will be created while other elements will be quadrangles. Vertex can be either a GEOM_Object or a vertex ID within the shape to mesh
UseExisting,:if ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Definition at line 5207 of file smeshDC.py.

05208                                                                                                       :
05209         vertexID = triangleVertex
05210         if isinstance( triangleVertex, geompyDC.GEOM._objref_GEOM_Object ):
05211             vertexID = self.mesh.geompyD.GetSubShapeID( self.mesh.geom, triangleVertex )
05212         if not self.params:
05213             compFun = lambda hyp,args: \
05214                       hyp.GetQuadType() == args[0] and \
05215                       ( hyp.GetTriaVertex()==args[1] or ( hyp.GetTriaVertex()<1 and args[1]<1))
05216             self.params = self.Hypothesis("QuadrangleParams", [quadType,vertexID],
05217                                           UseExisting = UseExisting, CompareMethod=compFun)
05218             pass
05219         if self.params.GetQuadType() != quadType:
05220             self.params.SetQuadType(quadType)
05221         if vertexID > 0:
05222             self.params.SetTriaVertex( vertexID )
05223         return self.params

def smeshDC.Mesh_Quadrangle.QuadranglePreference (   self,
  reversed = False,
  UseExisting = 0 
) [inherited]

Defines "QuadrangleParams" hypothesis with a type of quadrangulation that only quadrangles are built in the transition area along the finer meshed sides, iff the total quantity of segments on all four sides of the face is even.

Parameters:
reversedif True, transition area is located along the coarser meshed sides.
UseExisting,:if ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Definition at line 5231 of file smeshDC.py.

05232                                                                  :
05233         if reversed:
05234             return self.QuadrangleParameters(QUAD_QUADRANGLE_PREF_REVERSED,UseExisting=UseExisting)
05235         return self.QuadrangleParameters(QUAD_QUADRANGLE_PREF,UseExisting=UseExisting)

def smeshDC.Mesh_Quadrangle.Reduced (   self,
  UseExisting = 0 
) [inherited]

Defines "QuadrangleParams" hypothesis with a type of quadrangulation that only quadrangles are built and the transition between the sides is made gradually, layer by layer.

This type has a limitation on the number of segments: one pair of opposite sides must have the same number of segments, the other pair must have an even difference between the numbers of segments on the sides.

Parameters:
UseExisting,:if ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Definition at line 5252 of file smeshDC.py.

05253                                     :
05254         return self.QuadrangleParameters(QUAD_REDUCED,UseExisting=UseExisting)

def smeshDC.Mesh_Quadrangle.TrianglePreference (   self,
  UseExisting = 0 
) [inherited]

Defines "QuadrangleParams" hypothesis with a type of quadrangulation that only triangles are built in the transition area along the finer meshed sides.

Parameters:
UseExisting,:if ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Definition at line 5241 of file smeshDC.py.

05242                                                :
05243         return self.QuadrangleParameters(QUAD_TRIANGLE_PREF,UseExisting=UseExisting)

def smeshDC.Mesh_Quadrangle.TriangleVertex (   self,
  vertex,
  UseExisting = 0 
) [inherited]

Defines "QuadrangleParams" hypothesis with QUAD_STANDARD type of quadrangulation.

Parameters:
vertex,:vertex of a trilateral geometrical face, around which triangles will be created while other elements will be quadrangles. Vertex can be either a GEOM_Object or a vertex ID within the shape to mesh
UseExisting,:if ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Definition at line 5263 of file smeshDC.py.

05264                                                    :
05265         return self.QuadrangleParameters(QUAD_STANDARD,vertex,UseExisting)
05266 
05267 
05268 # Public class: Mesh_Tetrahedron
05269 # ------------------------------

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