Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Quadrangle Parameters hypothesis

Functions

def QuadrangleParameters
 Defines "QuadrangleParameters" hypothesis. More...
 
def 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. More...
 
def TrianglePreference
 Defines "QuadrangleParams" hypothesis with a type of quadrangulation that only triangles are built in the transition area along the finer meshed sides. More...
 
def 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. More...
 
def TriangleVertex
 Defines "QuadrangleParams" hypothesis with QUAD_STANDARD type of quadrangulation. More...
 

Detailed Description

Function Documentation

def QuadrangleParameters (   self,
  quadType = StdMeshers.QUAD_STANDARD,
  triangleVertex = 0,
  enfVertices = [],
  enfPoints = [],
  UseExisting = 0 
)

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
enfVertices,:list of shapes defining positions where nodes (enforced nodes) must be created by the mesher. Shapes can be of any type, vertices of given shapes define positions of enforced nodes. Only vertices successfully projected to the face are used.
enfPoints,:list of points giving positions of enforced nodes. Point can be defined either as SMESH.PointStruct's ([SMESH.PointStruct(x1,y1,z1), SMESH.PointStruct(x2,y2,z2),...]) or triples of values ([[x1,y1,z1], [x2,y2,z2], ...]). In the case if the defined QuadrangleParameters() refer to a sole face, all given points must lie on this face, else the mesher fails.
UseExisting,:if True - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

References StdMeshersBuilder_Quadrangle.params.

def QuadranglePreference (   self,
  reversed = False,
  UseExisting = 0 
)

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

References StdMeshersBuilder_Quadrangle.QuadrangleParameters().

def TrianglePreference (   self,
  UseExisting = 0 
)

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

References StdMeshersBuilder_Quadrangle.QuadrangleParameters().

def Reduced (   self,
  UseExisting = 0 
)

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

References StdMeshersBuilder_Quadrangle.QuadrangleParameters().

def TriangleVertex (   self,
  vertex,
  UseExisting = 0 
)

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

References StdMeshersBuilder_Quadrangle.QuadrangleParameters().