SALOME documentation central

1D Meshing Hypotheses
[Defining hypotheses]

Functions

def LocalLength
 Defines "LocalLength" hypothesis to cut an edge in several segments with the same length.
def MaxSize
 Defines "MaxSize" hypothesis to cut an edge into segments not longer than given value.
def NumberOfSegments
 Defines "NumberOfSegments" hypothesis to cut an edge in a fixed number of segments.
def Arithmetic1D
 Defines "Arithmetic1D" hypothesis to cut an edge in several segments with increasing arithmetic length.
def FixedPoints1D
 Defines "FixedPoints1D" hypothesis to cut an edge using parameter on curve from 0 to 1 (additionally it is neecessary to check orientation of edges and create list of reversed edges if it is needed) and sets numbers of segments between given points (default values are equals 1.
def StartEndLength
 Defines "StartEndLength" hypothesis to cut an edge in several segments with increasing geometric length.
def Deflection1D
 Defines "Deflection1D" hypothesis.
def AutomaticLength
 Defines "AutomaticLength" hypothesis.
def PythonSplit1D
 Defines "PythonSplit1D" hypothesis.

Function Documentation

def LocalLength (   self,
  l,
  UseExisting = 0,
  p = 1e-07 
) [inherited]

Defines "LocalLength" hypothesis to cut an edge in several segments with the same length.

Parameters:
l for the length of segments that cut an edge
UseExisting if ==true - searches for an existing hypothesis created with the same parameters, else (default) - creates a new one
p precision, used for calculation of the number of segments. The precision should be a positive, meaningful value within the range [0,1]. In general, the number of segments is calculated with the formula: nb = ceil((edge_length / l) - p) Function ceil rounds its argument to the higher integer. So, p=0 means rounding of (edge_length / l) to the higher integer, p=0.5 means rounding of (edge_length / l) to the nearest integer, p=1 means rounding of (edge_length / l) to the lower integer. Default value is 1e-07.
Returns:
an instance of StdMeshers_LocalLength hypothesis
def MaxSize (   self,
  length = 0.0,
  UseExisting = 0 
) [inherited]

Defines "MaxSize" hypothesis to cut an edge into segments not longer than given value.

Parameters:
length is optional maximal allowed length of segment, if it is omitted the preestimated length is used that depends on geometry size
UseExisting if ==true - searches for an existing hypothesis created with the same parameters, else (default) - create a new one
Returns:
an instance of StdMeshers_MaxLength hypothesis
def NumberOfSegments (   self,
  n,
  s = [],
  reversedEdges = [],
  UseExisting = 0 
) [inherited]

Defines "NumberOfSegments" hypothesis to cut an edge in a fixed number of segments.

Parameters:
n for the number of segments that cut an edge
s for the scale factor (optional)
reversedEdges is a list of edges to mesh using reversed orientation
UseExisting if ==true - searches for an existing hypothesis created with the same parameters, else (default) - create a new one
Returns:
an instance of StdMeshers_NumberOfSegments hypothesis
def Arithmetic1D (   self,
  start,
  end,
  reversedEdges = [],
  UseExisting = 0 
) [inherited]

Defines "Arithmetic1D" hypothesis to cut an edge in several segments with increasing arithmetic length.

Parameters:
start defines the length of the first segment
end defines the length of the last segment
reversedEdges is a list of edges to mesh using reversed orientation
UseExisting if ==true - searches for an existing hypothesis created with the same parameters, else (default) - creates a new one
Returns:
an instance of StdMeshers_Arithmetic1D hypothesis
def FixedPoints1D (   self,
  points,
  nbSegs = [1],
  reversedEdges = [],
  UseExisting = 0 
) [inherited]

Defines "FixedPoints1D" hypothesis to cut an edge using parameter on curve from 0 to 1 (additionally it is neecessary to check orientation of edges and create list of reversed edges if it is needed) and sets numbers of segments between given points (default values are equals 1.

Parameters:
points defines the list of parameters on curve
nbSegs defines the list of numbers of segments
reversedEdges is a list of edges to mesh using reversed orientation
UseExisting if ==true - searches for an existing hypothesis created with the same parameters, else (default) - creates a new one
Returns:
an instance of StdMeshers_Arithmetic1D hypothesis
def StartEndLength (   self,
  start,
  end,
  reversedEdges = [],
  UseExisting = 0 
) [inherited]

Defines "StartEndLength" hypothesis to cut an edge in several segments with increasing geometric length.

Parameters:
start defines the length of the first segment
end defines the length of the last segment
reversedEdges is a list of edges to mesh using reversed orientation
UseExisting if ==true - searches for an existing hypothesis created with the same parameters, else (default) - creates a new one
Returns:
an instance of StdMeshers_StartEndLength hypothesis
def Deflection1D (   self,
  d,
  UseExisting = 0 
) [inherited]

Defines "Deflection1D" hypothesis.

Parameters:
d for the deflection
UseExisting if ==true - searches for an existing hypothesis created with the same parameters, else (default) - create a new one
def AutomaticLength (   self,
  fineness = 0,
  UseExisting = 0 
) [inherited]

Defines "AutomaticLength" hypothesis.

Parameters:
fineness for the fineness [0-1]
UseExisting if ==true - searches for an existing hypothesis created with the same parameters, else (default) - create a new one
def PythonSplit1D (   self,
  n,
  func,
  UseExisting = 0 
) [inherited]

Defines "PythonSplit1D" hypothesis.

Parameters:
n for the number of segments that cut an edge
func for the python function that calculates the length of all segments
UseExisting if ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one
 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 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