CurveAutoSmoothSettings

Curves auto smooth settings.

@example:
# Settings class used to control parameters for curve auto smooth operation
segments = ce.getObjectsFrom(ce.scene, ce.isGraphSegment)
settings = CurveAutoSmoothSettings()
settings.setThresholdAngle(30)
settings.setHorizontalOptimize(True)
ce.curveAutoSmooth(segments, settings)

 

此处定义的方法如下:

getHorizontalOptimize

getHorizontalOptimize(self):

Gets HorizontalOptimize field.

@return: Value of HorizontalOptimize field.  [True/False]

getThresholdAngle

getThresholdAngle(self):

Gets ThresholdAngle field.

@return: Value of ThresholdAngle field.  [float]

setHorizontalOptimize

setHorizontalOptimize(self, booleanValue):

Sets HorizontalOptimize field. If enabled, horizontal edges in front of slopes are set to straight state in order to prevent the graph from oscillation.

@param booleanValue: the new value. [True/False]

setThresholdAngle

setThresholdAngle(self, floatValue):

Sets ThresholdAngle field. Angle in degrees. Curves are set to smooth state if node angle is below this value.

@param floatValue: the new value. [float]