Surf curvature
This feature is available in Alias AutoStudio and is a purchasable Advanced Evaluation option
Purpose
To evaluate the amount of curvature across a surface by displaying a quick-rendered image using color and texture.
See Evaluate
Surface curvature
Surf curv params... for information on setting parameters to use with Surf curvature.
Overview
Surf curvature determines inconsistent curvature on surfaces by producing a quick-rendered image that evaluates the curvature at points on a surface and assigns colors based on the value. The points on the surface are determined by the renderer subdividing the surface patches and examining the surface at the vertices of the subdivided patches. The smoothness and imperfections of surfaces can be clearly seen in the quick-rendered image. Many surface conditions can be examined or adjusted.
How to Use
Select Surf curvature from the Surface Curvature cascading menu, or click this icon.

A quick-rendered image is produced in the active window, based on the options set in the Surface Curvature Options box and the parameters set in the Evaluate
Surface curvature
Surf curv params control window.
Surface Curvature Options
Select Surf curvature -
to display the Surface Curvature Options box.

Mode
Click to include only Active (picked) objects or All objects.
Range
- Automatic the system calculates a default range is calculated to be used for displaying the curvature.
- From Parameter
- Window values from the Range sliding scales in the Surf curv params. control window are used.
For more information, see Evaluate
Surface curvature
Surf curv params.
Note: Automatic takes approximately twice as long as From Parameter Window. It is recommended that you use Automatic the first time you perform a curvature rendering. If you are satisfied with the results, set the Range to From Parameter Window for subsequent renderings of the surface (since Automatic updates the Range in Surf curv params... to the values it calculates). However, if you want to use values you've set in surf curv params... to find inflections, do not set this option to Automatic since it will change the range settings and move the color bands in Surf curv params.
Surf curv params
This feature is available in Alias AutoStudio and is a purchasable Advanced Evaluation option
Purpose
To select the colors and texture, and set other parameters to use with Evaluate
Surface Curvature
Surf curvature.
Overview
Surf curv params... opens a texture control window in which you can set desired parameters. In addition, a color ramp editor is built into the window, along with a Show Mapping feature that identifies the values associated with each color. Colors are mapped onto the incandescence values of the shader, so that the colors you see are unaffected by the placement of lights in the scene.
Note: Only one curvature texture can be placed per surface.
How to Use
To access Surf curv params, select it from the Surface curvature cascading menu, or click this icon.

Curvature Window
Select Surf curv params to display the curvature window.

If you click the arrow beside the Name field, the Common Shader Parameter window is displayed, from which you can choose different shaders, change color properties, and adjust raytrace parameters to further evaluate your surface. For more information about shaders and textures, see Windows
Multi-lister.
Name
Editable field where you can identify which shader you are evaluating.
Curvature Texture Parameters
Curvature Type
Click to the right of the heading to display the Curvature Type menu from which you can choose from four types of curvature to use for evaluation purposes: MEAN, GAUSSIAN, PRINC MIN, and PRINC MAX curvature.
- MEAN the average between the two principal curvatures, approximating the average curvature through the point.
- GAUSSIAN the product of the two principal curvature values.
- PRINC MIN/MAX the extreme values of this curvature function, that is the curvature of the steepest and flattest curves that pass through a given point on the surface. These two curvatures are most useful for detecting inflection points on the surface (points where the curvature changes from concave to convex).
Note: MEAN and GAUSSIAN curvatures are most useful for detecting surface irregularities.
Display
Click to the right of the heading to display the Display menu from which you can choose the CURVATURE or RADIUS of curvature. RADIUS plots the inverse (1/x) of the CURVATURE values.
Scale
Click to the right of the heading to display the Scale menu.
- LINEAR gives an equal weight to all colors in interpolation.
- LOG (logarithmic) plots the information on a logarithmic scale, compressing wide ranges of curvature values.
Range
You can change the Min and Max Range values by either clicking in the field, typing a new value and pressing Enter, or by dragging the slider bar.
min
This value represents the minimum angle of the side of the highlight vector. The range is from -90 to 90 degrees. It indicates the range over which the highlight map will be shown on one side of the highlight vector.
max
This value represents the maximum angle of the side of the highlight vector, indicating the range of degrees over which the highlight map will be shown. The range is from -90 to 90 degrees.
The following options, which let you make changes to the mapping you use to evaluate the curvature of a surface, are also available from the Surf curv params window.
Show Mapping
To adjust the density of the mapping you assign to evaluate the curvature of a surface, click on the arrow beside Show Mapping to display the color mapping scroll panel.

Use the scroll button to adjust the density-the color panel and associated numerical value change as you scroll (the Show Mapping function is also available with Evaluate
Highlights
Highlight params...).
Ramp Parameters
To choose different ramp types, and to change the position, ramp color, or the number of times you want the ramp to appear, click on the arrow beside Ramp Parameters to display the Ramp Parameters Window.

The Interpolation menu provides a list of different ramp types to choose from. You can then scroll up and down the ramp or use the sliders to adjust the values that change the Position, Ramp Color, or Repeats (the number of times you want the ramp to appear).
Using the Ramp
See the following example:
Set the Interpolation to NONE.
Click once on the small boxes at the right of the color bar to remove all but two of the colors from the color ramp.
Select a ramp color by clicking on the circle at the left. Notice how the color changes in the Ramp Color field. In the Position slider, set the position of one of the colors at 0.5 and the other at 0.0. The color ramp will look like two fat stripes.
Set the Repeats value to a relatively high number, such as 20. This creates a pattern with twenty alternating bands of color. To see the effect clearly, choose colors that contrast strongly, like black and white.
Pick the surfaces in which you are interested (setting subdivision parameters, if necessary), then select Evaluate
Surface curvature
Surf curvature.
Where mismatches in the stripes occur, tangent directions do not match. If you do not see a clear enough image, increase the rendering subdivisions. Remember to keep neighboring surfaces subdivided similarly, so mismatches are not due to rendering coarseness. To match tangencies, use Surface Edit
Align mesh.
To find discontinuities, you will need a distinctive pattern. The built-in Ramp Color capability is perfect for this.
Color Balance
To adjust the colors of the mapping, click on the arrow beside Color Balance to display the Color Balance window.

Rgbmult
Rgbmult provides scaling factors for colors. All the pixels that contain a particular color can be specified by the percentage you assign with the sliding scale. Multiplying a range of values from 0 to 255 by 0.5 reduces the range of the colors by dividing each color's number in half-the resulting range would be from 0 to 128. Multiplying a range of values by -1 inverts the range, and if the numbers are positive, moves all of the values into a negative range. For the colors to be non-black, they must be mapped to the range of 0 to 255 by using RGBoffset (see the following).
Rgboffset
Rgboffset provides offset values for colors. The number used in RGBoffset is added to each color's number. For example, if 128 is added to a range of values between 0 and 255, the new range of values is 128 to 383 (don't forget that values are truncated above 255).
To further adjust the colors, click the black arrow in the field beside Rgbmult or Rgboffset to display its corresponding Color Editor window.

Use the sliders from both the Color Balance and the color editor windows to adjust colors. For more information on Ramp parameters and the Color Editor, see Windows
Multi-lister.
Tips on using surf curv params...
Finding Small Radii
When a surface is not permitted to have a radius smaller than a given size, the Surf curv params options can provide solutions.
To search for the places where curvature is at a maximum, set Curvature Type to PRINC MAX.
Specify a range of radius values to display the results. Set Display to RADIUS and enter the minimum allowable radius for Range max and its negative for Range min. By entering it as positive and negative, you are avoiding inconsistencies with the surface normal. The color ramp will be spread across this range of small radii.
To make values that fall within this range stand out clearly, a single bright color is a good choice over almost the entire range. At the very extremes however, you should use a contrasting color. The color ramp should have crisp edges at these extreme points, or violations will not be clearly seen.
In the interior, you may want additional colors to help identify the smallest radii. For the best effect, set the hottest color at 0 and use symmetrical colors on either side. If used this way, the Show Mapping parameter window can be used to help evaluate actual minimum radius values on the surface.
This process does not necessarily show the most curved surface locations, just the locations where the highest curvature is smaller than an allowable radius. In a similar vein, the surface of a one-inch sphere is less curved than a.98 inch cylinder.
To find the most curved areas, look for extreme mean curvature values, shown with a Display type of CURVATURE. These may be extreme highs or extreme lows, depending on surface normal direction.
Another important tool you can use to find extremes of curvature is the GAUSSIAN Curvature Type. When the GAUSSIAN Curvature Type is selected and you use the CURVATURE Display mode, extreme positive or negative values occur where the surface is most strongly deformed.
Finding Flat Areas
You may need to find areas that do not possess enough curvature. This is usually expressed as a maximum allowable radius (since an infinite radius is flat). It may be more convenient however to consider this as a case where curvature is approaching zero.
To locate unacceptably flat areas, you are trying to find locations where the minimum curvature is less than an allowable value. This curvature (the inverse of the maximum radius allowed) is entered into the Range max field and its negative in the Range min field. The Curvature Type should be PRINC MIN and the Display type should be CURVATURE.
Use the same sort of color ramp as described in Finding Small Radii. You need to see where violations occur and perhaps how bad they are.
Note: Be aware that this method only locates areas that do not possess the required amount of curvature in any direction. If a surface must have curvature that falls between limits, you need to combine this procedure with Finding Small Radii on page 672 for a thorough evaluation.
GAUSSIAN curvature is less effective for finding very small amounts of curvature, because the small curvatures compound each other when multiplied. While still valid, care must be taken to specify GAUSSIAN curvature ranges. If the GAUSSIAN curvature is zero, at least one of the principal curvatures is zero (the surface is flat in that direction). If both the GAUSSIAN and MEAN curvatures are zero, the surface is completely flat at that location.
By themselves, mean curvature values are rather deceptive for detecting small amounts of curvature and should be cross-checked by other means. They do provide a sense of overall surface direction, however.
Finding Irregularly Changing Curvature
Just as with curves, surfaces have desired distributions of curvature values. By using Surf curvature and Surf crv params, the actual distribution can be seen and adjusted.
It must be mentioned that adjusting surface curvature by moving CVs can be done, but it is very tricky. Care should be taken to adjust CVs so they are in harmony with their neighboring CVs, or the whole effort will fail to improve the surface. The rules for moving surface CVs are just like those for moving curve CVs. Keep in mind that surface CVs have more neighbors with which to agree.
Because the color ramp greatly influences the perception of curvature rate of change, it should be constructed with some care. Try to create a smoothly blended set of colors that seem evenly spaced.
GAUSSIAN curvature is most useful for seeing the total character of a surface's curvature. Display should be set to CURVATURE. If the range of surface curvature values is very broad, it can be helpful to use a LOG Scale.
Finding Surface Inflections and Saddles
GAUSSIAN curvature is the essential tool for finding surface inflections. Properly used, it calls immediate attention to changes in surface direction. You can immediately spot a dent in the side of your car's door because it is an unwanted inflection in the surface, even if the surface is still tangent and curvature continuous.
Saddle-shaped (hyperbolic) areas are often unwanted because of the potential for machining difficulties or because they mark an inflection. These doubly-curved areas are also readily found by using GAUSSIAN curvature display. If the GAUSSIAN curvature is positive, the surface is elliptical, which means the two principal curvatures agree in their signs. If it is negative however, their signs are opposite and the surface is hyperbolic. A saddle-shaped area exists.
To find inflections and saddles, it is important that the zero point is evident. For a surface to inflect, it must pass through a zero curvature value. The same is true for a saddle-to go from positive to negative, it must pass through zero. In either case, setting the Range fields to equal positive and negative values (to properly mark the zero point) is an important step.
The color ramp should have two or three linear bands of color as well. If two are used, they should meet at zero-if three, a thin band of bright color should be at zero. A thin middle band can help draw attention to the extent of the flat that occurs. A useful ramp might have red on top, thin yellow in the middle, and blue on the bottom.
Note: Do not set the AUTOMATIC option in the Surf curvature option window since this will change the range settings and move the color bands.
When this has been done, the image shows where the surface inflects and which regions are saddles. If for instance, you have pulled a CV too far up on the corner of a crowned (elliptical) surface, it immediately stands out. If you have a dent in a surface, it is easily seen by its inflection ring.
Inflections can also often be seen using the default rainbow color ramp, but it is not as sure to find them. Smoothly-ramped mean curvature images can also be used to see the dominant surface direction, but inflections and saddles are usually more important features to find.
aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.