Synopsis

PDX_MSGT gdx_GetSurfCurvature(long option, double uv_direction[2], double derivs[][GDX_MAX_DEG + 1][3], GDX_SURFACE_CURVATURE *curvature)

Purpose

Calculate the GDX surface curvature values

Description

Given the surface derivatives upto and including second mixed partial derivaties, calulates the GDX Gaussian, Mean, Minimium, Maximium, and optional Directional surface curvatute. If a divide by zero is detected, the curvature value being calculated is set to infinity(DBL_MAX).

Input

option

GDX_DIRECTCURV

Calculate the directional curvature

uv_direction

For the option GDX_DIRECTCURV, the vector in the surface UV plane that indicates the direction in which the curvature should be calculated

derivs

The surface derivatives at the desired UV location upto and including second derivatives.

Output

curvature

The GDX surface curvature data

Tolerances

ZERO_TOL

Return

GDX_NOERR