Torabi Architect.
Mathsurf Documents Dec 2008
arrowConstant parameters
 
Constant Parameter

Constant Parameters Rollout:

Sometimes you need to calculate a constant value base on given parameters. If this value doesn’t depend on U and V, we call it Constant Parameters that mean it needs to be evaluate one time only. For instance we assume
    Constant variable k  
aa” is a surface parameter therefore “k” is independent and we can calculate the value of “k” by given “aa”. The advantage of constant parameters is that Mathsurf doesn’t perform the operation of (   k=sin(aa^2) ) for each point of the surface thus the operation would be faster. Furthermore you can call some functions and save the result in constant parameters such as CreateHelperArray in Minimal surfaces. This function creates an array of complex numbers that will be used to gain surface points. (See Mathsurf Mathematical functions)


Constant parameters rollout offers two buttons for each parameter. Left buttons indicates the expression that makes the constant parameter in form of the equation. And the right button shows the current value of constant that it is result of the operation. The value would be available after the surface has been created in the scene.
To add a Constant parameter, press the plust button button from Constant Parameters rollout.

To edit an existing constant parameter, simply click on the left button showing the variable name.

To delete or move a constant in new place use right click menu.

 

  Constant parameters rollout

Constant parameter dialog: this dialog is very similar to “Add equation” in function definition.

Variable: contains the parameter’s name.

Expression: Contains the expression that generates parameter’s value.

In the example above the Variable must be set to “k” and Expression would be “sin(aa^2)”.

  Constant Parameter Dialog

 

Note1: All parameters are accessible in global scope with the same name.

Note 2:  the variable name could not be same as global variables in 3dMAX and Mathsurf .parameter name cannot start with the number and signs. See the global variables in Mathsurf

Note 3: you can utilize Constant parameters inside each other, but you may use those constants which have been defined before the current parameter.

 

 
arrowFormoula Definition.
arrowPlug-in features.
arrowBack to Index
www.torabiarchitect.com