Version: 6.3.1
Functions

Smoothing

Modifying meshes
Collaboration diagram for Smoothing:

Functions

def smeshDC::Mesh.Smooth
 Smoothes elements.
def smeshDC::Mesh.SmoothObject
 Smoothes elements which belong to the given object.
def smeshDC::Mesh.SmoothParametric
 Parametrically smoothes the given elements.
def smeshDC::Mesh.SmoothParametricObject
 Parametrically smoothes the elements which belong to the given object.

Function Documentation

def smeshDC.Mesh.Smooth (   self,
  IDsOfElements,
  IDsOfFixedNodes,
  MaxNbOfIterations,
  MaxAspectRatio,
  Method 
) [inherited]

Smoothes elements.

Parameters:
IDsOfElementsthe list if ids of elements to smooth
IDsOfFixedNodesthe list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
MaxNbOfIterationsthe maximum number of iterations
MaxAspectRatiovaries in range [1.0, inf]
Methodis Laplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 3004 of file smeshDC.py.

03006                                                          :
03007         if IDsOfElements == []:
03008             IDsOfElements = self.GetElementsId()
03009         MaxNbOfIterations,MaxAspectRatio,Parameters = geompyDC.ParseParameters(MaxNbOfIterations,MaxAspectRatio)
03010         self.mesh.SetParameters(Parameters)
03011         return self.editor.Smooth(IDsOfElements, IDsOfFixedNodes,
03012                                   MaxNbOfIterations, MaxAspectRatio, Method)

def smeshDC.Mesh.SmoothObject (   self,
  theObject,
  IDsOfFixedNodes,
  MaxNbOfIterations,
  MaxAspectRatio,
  Method 
) [inherited]

Smoothes elements which belong to the given object.

Parameters:
theObjectthe object to smooth
IDsOfFixedNodesthe list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
MaxNbOfIterationsthe maximum number of iterations
MaxAspectRatiovaries in range [1.0, inf]
Methodis Laplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 3022 of file smeshDC.py.

03024                                                                :
03025         if ( isinstance( theObject, Mesh )):
03026             theObject = theObject.GetMesh()
03027         return self.editor.SmoothObject(theObject, IDsOfFixedNodes,
03028                                         MaxNbOfIterations, MaxAspectRatio, Method)

def smeshDC.Mesh.SmoothParametric (   self,
  IDsOfElements,
  IDsOfFixedNodes,
  MaxNbOfIterations,
  MaxAspectRatio,
  Method 
) [inherited]

Parametrically smoothes the given elements.

Parameters:
IDsOfElementsthe list if ids of elements to smooth
IDsOfFixedNodesthe list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
MaxNbOfIterationsthe maximum number of iterations
MaxAspectRatiovaries in range [1.0, inf]
Methodis Laplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 3038 of file smeshDC.py.

03040                                                                    :
03041         if IDsOfElements == []:
03042             IDsOfElements = self.GetElementsId()
03043         MaxNbOfIterations,MaxAspectRatio,Parameters = geompyDC.ParseParameters(MaxNbOfIterations,MaxAspectRatio)
03044         self.mesh.SetParameters(Parameters)
03045         return self.editor.SmoothParametric(IDsOfElements, IDsOfFixedNodes,
03046                                             MaxNbOfIterations, MaxAspectRatio, Method)

def smeshDC.Mesh.SmoothParametricObject (   self,
  theObject,
  IDsOfFixedNodes,
  MaxNbOfIterations,
  MaxAspectRatio,
  Method 
) [inherited]

Parametrically smoothes the elements which belong to the given object.

Parameters:
theObjectthe object to smooth
IDsOfFixedNodesthe list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
MaxNbOfIterationsthe maximum number of iterations
MaxAspectRatiovaries in range [1.0, inf]
MethodLaplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 3056 of file smeshDC.py.

03058                                                                          :
03059         if ( isinstance( theObject, Mesh )):
03060             theObject = theObject.GetMesh()
03061         return self.editor.SmoothParametricObject(theObject, IDsOfFixedNodes,
03062                                                   MaxNbOfIterations, MaxAspectRatio, Method)

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