This article has described some useful steps for compiling UDS DLLs:

  • Using mathematical editor to enter the equations for the surface sag and surface normals
  • Using Maple’s Codegen package to produce optimized C-code
  • Using DebugView for DLL debugging


References.

1. Eric W. Weisstein. "Normal Vector." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/NormalVector.html
2. http://www.sysinternals.com/Utilities/DebugView.html