Purpose

The module CurveGenerator generates an output Curve given a function expression that describes the curve.

Usage

Give the function expression in the f(x) section, change constants if necessary and use SoDiagram2D to see the result curve.

Windows

Default Panel

../../../Modules/ML/MLCurveUtils/mhelp/Images/Screenshots/CurveGenerator._default.png

Output Fields

outCurve

name: outCurve, type: MLBase

Parameter Fields

Field Index

a =: Double Error:: String
b =: Double f(x) =: String
c =: Double Number of Points: Integer
Curve Name: String Start: Double
Curve Style: Integer Step: Double
d =: Double  
Enable parser optimization: Bool  
End: Double  

Visible Fields

f(x) =

name: expression, type: String, default: x^2+2*x

Sets a string that describes the mathematical expression of the curve.

Start

name: startValue, type: Double, default: 0

Sets the start value of the definition range.

End

name: endValue, type: Double, default: 1

Sets the end value of the definition range.

Step

name: stepValue, type: Double, default: 0.1

Sets a step value in x-direction for function evaluation.

Error:

name: errorText, type: String

Shows an error message if the expression string could not be parsed correctly.

a =

name: extValueA, type: Double, default: 0

Sets one of four possible variables for function definition.

b =

name: extValueB, type: Double, default: 0

Sets one of four possible variables for function definition.

c =

name: extValueC, type: Double, default: 0

Sets one of four possible variables for function definition.

d =

name: extValueD, type: Double, default: 0

Sets one of four possible variables for function definition.

Curve Style

name: style, type: Integer, default: 1

Sets the style of the output curve.

Number of Points

name: pointCount, type: Integer, default: 11

Shows the number of curve points.

Enable parser optimization

name: enableParserOptimization, type: Bool, default: FALSE

If checked, the expression is optimized.

Curve Name

name: curveName, type: String

Sets a name for the curve.