Base class for algorithms supporting radial distribution hypotheses. More...
Public Member Functions | |
def | __init__ |
def | Get2DHypothesis |
Return 2D hypothesis holding the 1D one. More... | |
def | OwnHypothesis |
Private method creating a 1D hypothesis and storing it in the LayerDistribution hypothesis. More... | |
def | NumberOfLayers |
Defines "NumberOfLayers" hypothesis, specifying the number of layers. More... | |
def | LocalLength |
Defines "LocalLength" hypothesis, specifying the segment length. More... | |
def | NumberOfSegments |
Defines "NumberOfSegments" hypothesis, specifying the number of layers. More... | |
def | Arithmetic1D |
Defines "Arithmetic1D" hypothesis, specifying the distribution of segments with a length that changes in arithmetic progression. More... | |
def | GeometricProgression |
Defines "GeometricProgression" hypothesis, specifying the distribution of segments with a length that changes in Geometric progression. More... | |
def | StartEndLength |
Defines "StartEndLength" hypothesis, specifying distribution of segments as geometric length increasing. More... | |
def | AutomaticLength |
Defines "AutomaticLength" hypothesis, specifying the number of segments. More... | |
Data Fields | |
distribHyp | |
nbLayers | |
Base class for algorithms supporting radial distribution hypotheses.
def __init__ | ( | self | ) |
def Get2DHypothesis | ( | self | ) |
Return 2D hypothesis holding the 1D one.
References StdMeshersBuilder_Prism3D.distribHyp, StdMeshersBuilder_RadialPrism3D.distribHyp, StdMeshersBuilder_RadialAlgorithm.distribHyp, and Mesh_Algorithm.Hypothesis().
def OwnHypothesis | ( | self, | |
hypType, | |||
args = [] , |
|||
so = "libStdMeshersEngine.so" |
|||
) |
Private method creating a 1D hypothesis and storing it in the LayerDistribution hypothesis.
Returns the created hypothesis
References StdMeshersBuilder_Prism3D.distribHyp, StdMeshersBuilder_RadialPrism3D.distribHyp, StdMeshersBuilder_RadialAlgorithm.distribHyp, Mesh_Algorithm.geom, StdMeshersBuilder_Segment.geom, Mesh.geom, Mesh_Algorithm.Hypothesis(), StdMeshersBuilder_Prism3D.nbLayers, StdMeshersBuilder_RadialPrism3D.nbLayers, and StdMeshersBuilder_RadialAlgorithm.nbLayers.
def NumberOfLayers | ( | self, | |
n, | |||
UseExisting = 0 |
|||
) |
Defines "NumberOfLayers" hypothesis, specifying the number of layers.
n | number of layers |
UseExisting | if ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one |
References StdMeshersBuilder_Prism3D.distribHyp, StdMeshersBuilder_RadialPrism3D.distribHyp, StdMeshersBuilder_RadialAlgorithm.distribHyp, Mesh_Algorithm.geom, StdMeshersBuilder_Segment.geom, Mesh.geom, Mesh_Algorithm.Hypothesis(), smeshBuilder.IsEqual(), StdMeshersBuilder_Prism3D.nbLayers, StdMeshersBuilder_RadialPrism3D.nbLayers, and StdMeshersBuilder_RadialAlgorithm.nbLayers.
def LocalLength | ( | self, | |
l, | |||
p = 1e-07 |
|||
) |
Defines "LocalLength" hypothesis, specifying the segment length.
l | the length of segments |
p | the precision of rounding |
References StdMeshersBuilder_Prism3D.OwnHypothesis(), and StdMeshersBuilder_RadialAlgorithm.OwnHypothesis().
def NumberOfSegments | ( | self, | |
n, | |||
s = [] |
|||
) |
Defines "NumberOfSegments" hypothesis, specifying the number of layers.
n | the number of layers |
s | the scale factor (optional) |
References StdMeshersBuilder_Prism3D.OwnHypothesis(), and StdMeshersBuilder_RadialAlgorithm.OwnHypothesis().
def Arithmetic1D | ( | self, | |
start, | |||
end | |||
) |
Defines "Arithmetic1D" hypothesis, specifying the distribution of segments with a length that changes in arithmetic progression.
start | the length of the first segment |
end | the length of the last segment |
References StdMeshersBuilder_Prism3D.OwnHypothesis(), and StdMeshersBuilder_RadialAlgorithm.OwnHypothesis().
def GeometricProgression | ( | self, | |
start, | |||
ratio | |||
) |
Defines "GeometricProgression" hypothesis, specifying the distribution of segments with a length that changes in Geometric progression.
start | the length of the first segment |
ratio | the common ratio of the geometric progression |
References StdMeshersBuilder_Prism3D.OwnHypothesis(), and StdMeshersBuilder_RadialAlgorithm.OwnHypothesis().
def StartEndLength | ( | self, | |
start, | |||
end | |||
) |
Defines "StartEndLength" hypothesis, specifying distribution of segments as geometric length increasing.
start | for the length of the first segment |
end | for the length of the last segment |
References StdMeshersBuilder_Prism3D.OwnHypothesis(), and StdMeshersBuilder_RadialAlgorithm.OwnHypothesis().
def AutomaticLength | ( | self, | |
fineness = 0 |
|||
) |
Defines "AutomaticLength" hypothesis, specifying the number of segments.
fineness | defines the quality of the mesh within the range [0-1] |
References StdMeshersBuilder_Prism3D.OwnHypothesis(), and StdMeshersBuilder_RadialAlgorithm.OwnHypothesis().
distribHyp |
nbLayers |