MG-CADSurf 2D algorithm. More...
Public Member Functions | |
def | __init__ |
Private constructor. More... | |
def | SetPhysicalMesh |
Sets a way to define size of mesh elements to generate. More... | |
def | SetGeometricMesh |
Sets a way to define maximum angular deflection of mesh from CAD model. More... | |
def | SetPhySize |
Sets size of mesh elements to generate. More... | |
def | SetMinSize |
Sets lower boundary of mesh element size. More... | |
def | SetMaxSize |
Sets upper boundary of mesh element size. More... | |
def | SetAngleMesh |
Sets angular deflection (in degrees) from CAD surface. More... | |
def | SetChordalError |
Sets the maximum desired distance between a triangle and its supporting CAD surface. More... | |
def | SetGradation |
Sets maximal allowed ratio between the lengths of two adjacent edges. More... | |
def | SetVolumeGradation |
Sets maximal allowed ratio between the lengths of two adjacent edges in 3D mesh. More... | |
def | SetTopology |
Sets topology usage way. More... | |
def | SetDecimesh |
To respect geometrical edges or not. More... | |
def | SetVerbosity |
Sets verbosity level in the range 0 to 100. More... | |
def | SetEnforceCadEdgesSize |
Set enforce_cad_edge_sizes parameter. More... | |
def | SetJacobianRectificationRespectGeometry |
Set jacobian_rectification_respect_geometry parameter. More... | |
def | SetJacobianRectification |
Set rectify_jacobian parameter. More... | |
def | SetUseDeprecatedPatchMesher |
Set use_deprecated_patch_mesher parameter (compatibility with older versions of Meshgems) More... | |
def | SetRespectGeometry |
Set respect_geometry parameter. More... | |
def | SetMaxNumberOfPointsPerPatch |
Set max_number_of_points_per_patch parameter. More... | |
def | SetMaxNumberOfThreads |
Set max_number_of_threads parameter. More... | |
def | SetRespectGeometry |
Set respect_geometry parameter. More... | |
def | SetTinyEdgesAvoidSurfaceIntersections |
Set tiny_edges_avoid_surface_intersections parameter. More... | |
def | SetClosedGeometry |
Set closed_geometry parameter parameter. More... | |
def | SetDebug |
Set debug parameter. More... | |
def | SetPeriodicTolerance |
Set periodic_tolerance parameter. More... | |
def | SetRequiredEntities |
Set required_entities parameter. More... | |
def | SetSewingTolerance |
Set sewing_tolerance parameter. More... | |
def | SetTags |
Set tags parameter. More... | |
def | SetOptimiseTinyEdges |
Activate removal of the tiny edges from the generated mesh when it improves the local mesh quality, without taking into account the tags (attributes) specifications. More... | |
def | SetCorrectSurfaceIntersection |
Activate correction of all surface intersections. More... | |
def | SetPreCADMergeEdges |
To optimize merges edges. More... | |
def | SetPreCADRemoveDuplicateCADFaces |
To remove duplicate CAD Faces. More... | |
def | SetPreCADProcess3DTopology |
To process 3D topology. More... | |
def | SetPreCADRemoveNanoEdges |
To remove nano edges. More... | |
def | SetPreCADDiscardInput |
To compute topology from scratch. More... | |
def | SetPreCADEpsNano |
Sets the length below which an edge is considered as nano for the topology processing. More... | |
def | SetOptionValue |
Sets advanced option value. More... | |
def | SetPreCADOptionValue |
Sets advanced PreCAD option value. More... | |
def | SetAdvancedOption |
Adds custom advanced option values. More... | |
def | AddOption |
Adds custom advanced option value. More... | |
def | AddPreCADOption |
Adds custom advanced PreCAD option value. More... | |
def | SetGMFFile |
Sets GMF file for export at computation. More... | |
def | GetAllEnforcedVertices |
To get all the enforced vertices. More... | |
def | GetAllEnforcedVerticesByFace |
To get all the enforced vertices sorted by face (or group, compound) More... | |
def | GetAllEnforcedVerticesByCoords |
To get all the enforced vertices sorted by coords of input vertices. More... | |
def | GetAllCoordsByFace |
To get all the coords of input vertices sorted by face (or group, compound) More... | |
def | GetEnforcedVertices |
To get all the enforced vertices on a face (or group, compound) More... | |
def | ClearAllEnforcedVertices |
To clear all the enforced vertices. More... | |
def | SetEnforcedVertex |
To set an enforced vertex on a face (or group, compound) given the coordinates of a point. More... | |
def | SetEnforcedVertexGeom |
To set an enforced vertex on a face (or group, compound) given a GEOM vertex, group or compound. More... | |
def | AddEnforcedVertex |
Set an enforced vertex on a face given the coordinates of a point. More... | |
def | AddEnforcedVertexGeom |
To set an enforced vertex on a face given a GEOM vertex, group or compound. More... | |
def | UnsetEnforcedVertex |
To remove an enforced vertex on a given GEOM face (or group, compound) given the coordinates. More... | |
def | UnsetEnforcedVertexGeom |
To remove an enforced vertex on a given GEOM face (or group, compound) given a GEOM vertex, group or compound. More... | |
def | UnsetEnforcedVertices |
To remove all enforced vertices on a given face. More... | |
def | SetInternalEnforcedVertexAllFaces |
To tell BLSURF to add a node on internal vertices. More... | |
def | GetInternalEnforcedVertexAllFaces |
To know if BLSURF will add a node on internal vertices. More... | |
def | SetInternalEnforcedVertexAllFacesGroup |
To define a group for the nodes of internal vertices. More... | |
def | GetInternalEnforcedVertexAllFacesGroup |
To get the group name of the nodes of internal vertices. More... | |
def | SetAttractorGeom |
Sets an attractor on the chosen face. More... | |
def | UnsetAttractorGeom |
Unsets an attractor on the chosen face. More... | |
def | SetSizeMap |
To set a size map on a face, edge or vertex (or group, compound) given Python function. More... | |
def | SetConstantSizeMap |
To set a constant size map on a face, edge or vertex (or group, compound). More... | |
def | UnsetSizeMap |
To remove a size map defined on a face, edge or vertex (or group, compound) More... | |
def | ClearSizeMaps |
To remove all the size maps. More... | |
def | SetQuadAllowed |
Sets QuadAllowed flag. More... | |
def | Parameters |
Defines hypothesis having several parameters. More... | |
def | AddPreCadFacesPeriodicity |
Defines periodicity between two groups of faces, using PreCAD. More... | |
def | AddPreCadEdgesPeriodicity |
Defines periodicity between two groups of edges, using PreCAD. More... | |
def | SetHyperPatches |
Defines hyper-patches. More... | |
def | SetPhyMin |
Sets lower boundary of mesh element size (PhySize). More... | |
def | SetPhyMax |
Sets upper boundary of mesh element size (PhySize). More... | |
def | SetAngleMeshS |
Sets angular deflection (in degrees) of a mesh face from CAD surface. More... | |
def | SetAngleMeshC |
Sets angular deflection (in degrees) of a mesh edge from CAD curve. More... | |
def | SetGeoMin |
Sets lower boundary of mesh element size computed to respect angular deflection. More... | |
def | SetGeoMax |
Sets upper boundary of mesh element size computed to respect angular deflection. More... | |
Data Fields | |
params | |
geompyD | |
Static Public Attributes | |
string | meshMethod = "Triangle" |
name of the dynamic method in smeshBuilder.Mesh class More... | |
algoType = MG_CADSurf | |
type of algorithm used with helper function in smeshBuilder.Mesh class More... | |
string | docHelper = "Creates triangle algorithm for faces" |
doc string of the method More... | |
Static Private Attributes | |
int | _anisotropic_ratio = 0 |
int | _bad_surface_element_aspect_ratio = 1000 |
int | _geometric_approximation = 22 |
float | _gradation = 1.3 |
int | _volume_gradation = 2 |
string | _metric = "isotropic" |
int | _remove_tiny_edges = 0 |
MG-CADSurf 2D algorithm.
It can be created by calling smeshBuilder.Mesh.Triangle(smeshBuilder.MG-CADSurf,geom=0)
def __init__ | ( | self, | |
mesh, | |||
geom = 0 |
|||
) |
Private constructor.
mesh | parent mesh object algorithm is assigned to |
geom | geometry (shape/sub-shape) algorithm is assigned to; if it is 0 (default), the algorithm is assigned to the main shape |
References Mesh_Algorithm.algo, BLSURF_Algorithm.algoType, and Mesh_Algorithm.Create().
def SetPhysicalMesh | ( | self, | |
thePhysicalMesh = DefaultSize |
|||
) |
Sets a way to define size of mesh elements to generate.
thePhysicalMesh | is: DefaultSize, MG_CADSURF_Custom or SizeMap. |
References BLSURF_Algorithm.Parameters().
def SetGeometricMesh | ( | self, | |
theGeometricMesh = DefaultGeom |
|||
) |
Sets a way to define maximum angular deflection of mesh from CAD model.
theGeometricMesh | is: DefaultGeom (0)) or MG_CADSURF_GlobalSize (1)) |
References BLSURF_Algorithm.Parameters().
def SetPhySize | ( | self, | |
theVal, | |||
isRelative = False |
|||
) |
Sets size of mesh elements to generate.
theVal | : constant global size when using a global physical size. |
isRelative | : if True, the value is relative to the length of the diagonal of the bounding box |
References BLSURF_Algorithm.Parameters(), and BLSURF_Algorithm.SetPhysicalMesh().
def SetMinSize | ( | self, | |
theVal = -1 , |
|||
isRelative = False |
|||
) |
Sets lower boundary of mesh element size.
theVal | : global minimal cell size desired. |
isRelative | : if True, the value is relative to the length of the diagonal of the bounding box |
References BLSURF_Algorithm.Parameters().
def SetMaxSize | ( | self, | |
theVal = -1 , |
|||
isRelative = False |
|||
) |
Sets upper boundary of mesh element size.
theVal | : global maximal cell size desired. |
isRelative | : if True, the value is relative to the length of the diagonal of the bounding box |
References BLSURF_Algorithm.Parameters().
def SetAngleMesh | ( | self, | |
theVal = _geometric_approximation |
|||
) |
Sets angular deflection (in degrees) from CAD surface.
theVal | value of angular deflection |
References BLSURF_Algorithm.Parameters(), and BLSURF_Algorithm.SetGeometricMesh().
def SetChordalError | ( | self, | |
distance | |||
) |
Sets the maximum desired distance between a triangle and its supporting CAD surface.
distance | the distance between a triangle and a surface |
References BLSURF_Algorithm.Parameters().
def SetGradation | ( | self, | |
toUseGradation = True , |
|||
theVal = _gradation |
|||
) |
Sets maximal allowed ratio between the lengths of two adjacent edges.
toUseGradation | to use gradation |
theVal | value of maximal length ratio |
References BLSURF_Algorithm._gradation, and BLSURF_Algorithm.Parameters().
def SetVolumeGradation | ( | self, | |
toUseGradation = True , |
|||
theVal = _gradation |
|||
) |
Sets maximal allowed ratio between the lengths of two adjacent edges in 3D mesh.
toUseGradation | to use gradation |
theVal | value of maximal length ratio |
References BLSURF_Algorithm._volume_gradation, and BLSURF_Algorithm.Parameters().
def SetTopology | ( | self, | |
way | |||
) |
Sets topology usage way.
way | defines how mesh conformity is assured
|
References BLSURF_Algorithm.Parameters().
def SetDecimesh | ( | self, | |
toIgnoreEdges = False |
|||
) |
To respect geometrical edges or not.
toIgnoreEdges | "ignore edges" flag value |
References BLSURF_Algorithm.SetOptionValue().
def SetVerbosity | ( | self, | |
level | |||
) |
Sets verbosity level in the range 0 to 100.
level | verbosity level |
References BLSURF_Algorithm.Parameters().
def SetEnforceCadEdgesSize | ( | self, | |
toEnforce | |||
) |
Set enforce_cad_edge_sizes parameter.
Relaxes the given sizemap constraint around CAD edges to allow a better element quality and a better geometric approximation. It is only useful in combination with the gradation option.
References BLSURF_Algorithm.Parameters().
def SetJacobianRectificationRespectGeometry | ( | self, | |
allowRectification | |||
) |
Set jacobian_rectification_respect_geometry parameter.
While making the mesh quadratic, allows to lose the CAD-mesh associativity in order to correct elements with nagative Jacobian
References BLSURF_Algorithm.Parameters().
def SetJacobianRectification | ( | self, | |
allowRectification | |||
) |
Set rectify_jacobian parameter.
While making the mesh quadratic, allow to fix nagative Jacobian surface elements
References BLSURF_Algorithm.Parameters().
def SetUseDeprecatedPatchMesher | ( | self, | |
useDeprecatedPatchMesher | |||
) |
Set use_deprecated_patch_mesher parameter (compatibility with older versions of Meshgems)
the use_deprecated_patch_mesher parameter allows to keep the same behaviour than in salome < 8.3 (meshgems 2.1.11 instead of meshgems >= 2.4.5)
References BLSURF_Algorithm.Parameters().
def SetRespectGeometry | ( | self, | |
toRespect | |||
) |
Set respect_geometry parameter.
This patch independent option can be deactivated to allow MeshGems-CADSurf to lower the geometry accuracy in its patch independent process.
References BLSURF_Algorithm.Parameters().
def SetMaxNumberOfPointsPerPatch | ( | self, | |
nb | |||
) |
Set max_number_of_points_per_patch parameter.
This parameter controls the maximum amount of points MeshGems-CADSurf is allowed to generate on a single CAD patch. For an automatic gestion of the memory, one can set this parameter to 0
References BLSURF_Algorithm.Parameters().
def SetMaxNumberOfThreads | ( | self, | |
nb | |||
) |
Set max_number_of_threads parameter.
Set the maximum of threads to use for multithreading mesh computation
References BLSURF_Algorithm.Parameters().
def SetRespectGeometry | ( | self, | |
toRespect | |||
) |
Set respect_geometry parameter.
This patch independent option can be deactivated to allow MeshGems-CADSurf to lower the geometry accuracy in its patch independent process.
References BLSURF_Algorithm.Parameters(), and BLSURF_Algorithm.SetRespectGeometry().
def SetTinyEdgesAvoidSurfaceIntersections | ( | self, | |
toAvoidIntersection | |||
) |
Set tiny_edges_avoid_surface_intersections parameter.
This option defines the priority between the tiny feature suppression and the surface intersection prevention.
References BLSURF_Algorithm.Parameters().
def SetClosedGeometry | ( | self, | |
isClosed | |||
) |
Set closed_geometry parameter parameter.
Describes whether the geometry is expected to be closed or not. When activated, this option helps MeshGems-PreCAD to treat the dirtiest geometries.
References BLSURF_Algorithm.Parameters().
def SetDebug | ( | self, | |
isDebug | |||
) |
Set debug parameter.
Make MeshGems-CADSurf will be very verbose and will output some intermediate files in the working directory. This option is mainly meant for Distene support issues.
References BLSURF_Algorithm.Parameters().
def SetPeriodicTolerance | ( | self, | |
tol | |||
) |
Set periodic_tolerance parameter.
This parameter defines the maximum size difference between two periodic edges and also the maximum distance error between two periodic entities.
References BLSURF_Algorithm.Parameters().
def SetRequiredEntities | ( | self, | |
howToTreat | |||
) |
Set required_entities parameter.
The required entities control the correction operations. Accepted values for this parameter are :
References BLSURF_Algorithm.Parameters().
def SetSewingTolerance | ( | self, | |
tol | |||
) |
Set sewing_tolerance parameter.
This parameter is the tolerance of the assembly.
References BLSURF_Algorithm.Parameters().
def SetTags | ( | self, | |
howToTreat | |||
) |
Set tags parameter.
The tag (attribute) system controls the optimisation process. Accepted values for this parameter are :
References BLSURF_Algorithm.Parameters().
def SetOptimiseTinyEdges | ( | self, | |
toOptimise, | |||
length = -1 |
|||
) |
Activate removal of the tiny edges from the generated mesh when it improves the local mesh quality, without taking into account the tags (attributes) specifications.
toOptimise | "to optimize" flag value |
length | minimal length under which an edge is considered to be a tiny |
References BLSURF_Algorithm.Parameters().
def SetCorrectSurfaceIntersection | ( | self, | |
toCorrect, | |||
maxCost | |||
) |
Activate correction of all surface intersections.
toCorrect | "to correct" flag value |
maxCost | the time the user is ready to spend in the intersection prevention process For example, maxCost = 3 means that MeshGems-CADSurf will not spend more time in the intersection removal process than 3 times the time required to mesh without processing the intersections. |
References BLSURF_Algorithm.Parameters().
def SetPreCADMergeEdges | ( | self, | |
toMergeEdges = False |
|||
) |
To optimize merges edges.
toMergeEdges | "merge edges" flag value |
References BLSURF_Algorithm.Parameters().
def SetPreCADRemoveDuplicateCADFaces | ( | self, | |
toRemoveDuplicateCADFaces = False |
|||
) |
To remove duplicate CAD Faces.
toRemoveDuplicateCADFaces | "remove_duplicate_cad_faces" flag value |
References BLSURF_Algorithm.Parameters().
def SetPreCADProcess3DTopology | ( | self, | |
toProcess = False |
|||
) |
To process 3D topology.
toProcess | "PreCAD process 3D" flag value |
References BLSURF_Algorithm.Parameters().
def SetPreCADRemoveNanoEdges | ( | self, | |
toRemoveNanoEdges = False |
|||
) |
To remove nano edges.
toRemoveNanoEdges | "remove nano edges" flag value |
References BLSURF_Algorithm.SetPreCADOptionValue().
def SetPreCADDiscardInput | ( | self, | |
toDiscardInput = False |
|||
) |
To compute topology from scratch.
toDiscardInput | "discard input" flag value |
References BLSURF_Algorithm.Parameters().
def SetPreCADEpsNano | ( | self, | |
epsNano | |||
) |
Sets the length below which an edge is considered as nano for the topology processing.
epsNano | nano edge length threshold value |
References BLSURF_Algorithm.SetPreCADOptionValue().
def SetOptionValue | ( | self, | |
optionName, | |||
level | |||
) |
Sets advanced option value.
optionName | advanced option name |
level | advanced option value |
References BLSURF_Algorithm.Parameters().
def SetPreCADOptionValue | ( | self, | |
optionName, | |||
optionValue | |||
) |
Sets advanced PreCAD option value.
optionName | name of the option |
optionValue | value of the option |
References BLSURF_Algorithm.Parameters().
def SetAdvancedOption | ( | self, | |
optionsAndValues | |||
) |
Adds custom advanced option values.
optionsAndValues | options and values in a form "option_1 v1 option_2 v2'" |
References BLSURF_Algorithm.Parameters().
def AddOption | ( | self, | |
optionName, | |||
level | |||
) |
Adds custom advanced option value.
optionName | custom advanced option name |
level | custom advanced option value |
References BLSURF_Algorithm.Parameters().
def AddPreCADOption | ( | self, | |
optionName, | |||
optionValue | |||
) |
Adds custom advanced PreCAD option value.
optionName | custom name of the option |
optionValue | value of the option |
References BLSURF_Algorithm.Parameters().
def SetGMFFile | ( | self, | |
fileName | |||
) |
Sets GMF file for export at computation.
fileName | GMF file name |
References BLSURF_Algorithm.Parameters().
def GetAllEnforcedVertices | ( | self | ) |
To get all the enforced vertices.
References BLSURF_Algorithm.Parameters().
def GetAllEnforcedVerticesByFace | ( | self | ) |
To get all the enforced vertices sorted by face (or group, compound)
References BLSURF_Algorithm.Parameters().
def GetAllEnforcedVerticesByCoords | ( | self | ) |
To get all the enforced vertices sorted by coords of input vertices.
References BLSURF_Algorithm.Parameters().
def GetAllCoordsByFace | ( | self | ) |
To get all the coords of input vertices sorted by face (or group, compound)
References BLSURF_Algorithm.Parameters().
def GetEnforcedVertices | ( | self, | |
theFace | |||
) |
To get all the enforced vertices on a face (or group, compound)
theFace | : GEOM face (or group, compound) on which to define an enforced vertex |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def ClearAllEnforcedVertices | ( | self | ) |
To clear all the enforced vertices.
References BLSURF_Algorithm.Parameters().
def SetEnforcedVertex | ( | self, | |
theFace, | |||
x, | |||
y, | |||
z, | |||
vertexName = "" , |
|||
groupName = "" |
|||
) |
To set an enforced vertex on a face (or group, compound) given the coordinates of a point.
If the point is not on the face, it will projected on it. If there is no projection, no enforced vertex is created.
theFace | : GEOM face (or group, compound) on which to define an enforced vertex |
x | : x coordinate |
y | : y coordinate |
z | : z coordinate |
vertexName | : name of the enforced vertex |
groupName | : name of the group |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def SetEnforcedVertexGeom | ( | self, | |
theFace, | |||
theVertex, | |||
groupName = "" |
|||
) |
To set an enforced vertex on a face (or group, compound) given a GEOM vertex, group or compound.
theFace | : GEOM face (or group, compound) on which to define an enforced vertex |
theVertex | : GEOM vertex (or group, compound) to be projected on theFace. |
groupName | : name of the group |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def AddEnforcedVertex | ( | self, | |
x, | |||
y, | |||
z, | |||
vertexName = "" , |
|||
groupName = "" |
|||
) |
Set an enforced vertex on a face given the coordinates of a point.
The face if found by the application.
x | : x coordinate |
y | : y coordinate |
z | : z coordinate |
vertexName | : name of the enforced vertex |
groupName | : name of the group |
References BLSURF_Algorithm.Parameters().
def AddEnforcedVertexGeom | ( | self, | |
theVertex, | |||
groupName = "" |
|||
) |
To set an enforced vertex on a face given a GEOM vertex, group or compound.
The face if found by the application.
theVertex | : GEOM vertex (or group, compound). |
groupName | : name of the group |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def UnsetEnforcedVertex | ( | self, | |
theFace, | |||
x, | |||
y, | |||
z | |||
) |
To remove an enforced vertex on a given GEOM face (or group, compound) given the coordinates.
theFace | : GEOM face (or group, compound) on which to remove the enforced vertex |
x | : x coordinate |
y | : y coordinate |
z | : z coordinate |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def UnsetEnforcedVertexGeom | ( | self, | |
theFace, | |||
theVertex | |||
) |
To remove an enforced vertex on a given GEOM face (or group, compound) given a GEOM vertex, group or compound.
theFace | : GEOM face (or group, compound) on which to remove the enforced vertex |
theVertex | : GEOM vertex (or group, compound) to remove. |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def UnsetEnforcedVertices | ( | self, | |
theFace | |||
) |
To remove all enforced vertices on a given face.
theFace | : face (or group/compound of faces) on which to remove all enforced vertices |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def SetInternalEnforcedVertexAllFaces | ( | self, | |
toEnforceInternalVertices | |||
) |
To tell BLSURF to add a node on internal vertices.
toEnforceInternalVertices | : boolean; if True the internal vertices are added as enforced vertices |
References BLSURF_Algorithm.Parameters().
def GetInternalEnforcedVertexAllFaces | ( | self | ) |
To know if BLSURF will add a node on internal vertices.
References BLSURF_Algorithm.Parameters().
def SetInternalEnforcedVertexAllFacesGroup | ( | self, | |
groupName | |||
) |
To define a group for the nodes of internal vertices.
groupName | : string; name of the group |
References BLSURF_Algorithm.Parameters().
def GetInternalEnforcedVertexAllFacesGroup | ( | self | ) |
To get the group name of the nodes of internal vertices.
References BLSURF_Algorithm.Parameters().
def SetAttractorGeom | ( | self, | |
theFace, | |||
theAttractor, | |||
theStartSize, | |||
theEndSize, | |||
theInfluenceDistance, | |||
theConstantSizeDistance | |||
) |
Sets an attractor on the chosen face.
The mesh size will decrease exponentially with the distance from theAttractor, following the rule h(d) = theEndSize - (theEndSize - theStartSize) * exp [ - ( d / theInfluenceDistance ) ^ 2 ]
theFace | : face on which the attractor will be defined |
theAttractor | : geometrical object from which the mesh size "h" decreases exponentially |
theStartSize | : mesh size on theAttractor |
theEndSize | : maximum size that will be reached on theFace |
theInfluenceDistance | : influence of the attractor ( the size grow slower on theFace if it's high) |
theConstantSizeDistance | : distance until which the mesh size will be kept constant on theFace |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def UnsetAttractorGeom | ( | self, | |
theFace | |||
) |
Unsets an attractor on the chosen face.
theFace | : face on which the attractor has to be removed |
References Mesh_Algorithm.mesh, BLSURF_Algorithm.Parameters(), and BLSURF_Algorithm.SetAttractorGeom().
def SetSizeMap | ( | self, | |
theObject, | |||
theSizeMap | |||
) |
To set a size map on a face, edge or vertex (or group, compound) given Python function.
If theObject is a face, the function can be: def f(u,v): return u+v If theObject is an edge, the function can be: def f(t): return t/2 If theObject is a vertex, the function can be: def f(): return 10
theObject | : GEOM face, edge or vertex (or group, compound) on which to define a size map |
theSizeMap | : Size map defined as a string |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def SetConstantSizeMap | ( | self, | |
theObject, | |||
theSizeMap | |||
) |
To set a constant size map on a face, edge or vertex (or group, compound).
theObject | : GEOM face, edge or vertex (or group, compound) on which to define a size map |
theSizeMap | : Size map defined as a double |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def UnsetSizeMap | ( | self, | |
theObject | |||
) |
To remove a size map defined on a face, edge or vertex (or group, compound)
theObject | : GEOM face, edge or vertex (or group, compound) on which to define a size map |
References Mesh_Algorithm.mesh, and BLSURF_Algorithm.Parameters().
def ClearSizeMaps | ( | self | ) |
To remove all the size maps.
References BLSURF_Algorithm.Parameters().
def SetQuadAllowed | ( | self, | |
toAllow = True |
|||
) |
Sets QuadAllowed flag.
toAllow | "allow quadrangles" flag value |
References BLSURF_Algorithm.Parameters().
def Parameters | ( | self | ) |
Defines hypothesis having several parameters.
References Mesh_Algorithm.Hypothesis(), and BLSURF_Algorithm.params.
def AddPreCadFacesPeriodicity | ( | self, | |
theFace1, | |||
theFace2, | |||
theSourceVertices = [] , |
|||
theTargetVertices = [] |
|||
) |
Defines periodicity between two groups of faces, using PreCAD.
theFace1 | : GEOM face (or group, compound) to associate with theFace2 |
theFace2 | : GEOM face (or group, compound) associated with theFace1 |
theSourceVertices | (optionnal): list of GEOM vertices on theFace1 defining the transformation from theFace1 to theFace2. If None, PreCAD tries to find a simple translation. Else, need at least 3 not aligned vertices. |
theTargetVertices | (optionnal): list of GEOM vertices on theFace2 defining the transformation from theFace1 to theFace2. If None, PreCAD tries to find a simple translation. Else, need at least 3 not aligned vertices. |
References BLSURF_Algorithm.Parameters().
def AddPreCadEdgesPeriodicity | ( | self, | |
theEdge1, | |||
theEdge2, | |||
theSourceVertices = [] , |
|||
theTargetVertices = [] |
|||
) |
Defines periodicity between two groups of edges, using PreCAD.
theEdge1 | : GEOM edge (or group, compound) to associate with theEdge2 |
theEdge2 | : GEOM edge (or group, compound) associated with theEdge1 |
theSourceVertices | (optionnal): list of GEOM vertices on theEdge1 defining the transformation from theEdge1 to theEdge2. If None, PreCAD tries to find a simple translation. Else, need at least 3 not aligned vertices. |
theTargetVertices | (optionnal): list of GEOM vertices on theEdge2 defining the transformation from theEdge1 to theEdge2. If None, PreCAD tries to find a simple translation. Else, need at least 3 not aligned vertices. |
References BLSURF_Algorithm.Parameters().
def SetHyperPatches | ( | self, | |
hyperPatchList | |||
) |
Defines hyper-patches.
A hyper-patch is a set of adjacent faces meshed as a whole, ignoring edges between them
hyperPatchList | : list of hyper-patches. A hyper-patch is defined as a list of faces or groups of faces. A face can be identified either as a GEOM object or a face ID (returned e.g. by geompy.GetSubShapeID( mainShape, subShape )). |
Example: cadsurf.SetHyperPatches([[ Face_1, Group_2 ],[ 13, 23 ]])
References BLSURF_Algorithm.Parameters().
def SetPhyMin | ( | self, | |
theVal = -1 |
|||
) |
Sets lower boundary of mesh element size (PhySize).
References BLSURF_Algorithm.SetMinSize().
def SetPhyMax | ( | self, | |
theVal = -1 |
|||
) |
Sets upper boundary of mesh element size (PhySize).
References BLSURF_Algorithm.SetMaxSize().
def SetAngleMeshS | ( | self, | |
theVal = _geometric_approximation |
|||
) |
Sets angular deflection (in degrees) of a mesh face from CAD surface.
References BLSURF_Algorithm.SetAngleMesh().
def SetAngleMeshC | ( | self, | |
theVal = _geometric_approximation |
|||
) |
Sets angular deflection (in degrees) of a mesh edge from CAD curve.
References BLSURF_Algorithm.SetAngleMesh().
def SetGeoMin | ( | self, | |
theVal = -1 |
|||
) |
Sets lower boundary of mesh element size computed to respect angular deflection.
References BLSURF_Algorithm.SetMinSize().
def SetGeoMax | ( | self, | |
theVal = -1 |
|||
) |
Sets upper boundary of mesh element size computed to respect angular deflection.
References BLSURF_Algorithm.SetMaxSize().
|
static |
name of the dynamic method in smeshBuilder.Mesh class
|
static |
type of algorithm used with helper function in smeshBuilder.Mesh class
|
static |
doc string of the method
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
params |
geompyD |