Drawing3d documented Class Library

CustomSurface Class

This Surface allows you to implement his function by its events. For example

    private void Form1_Load(object sender, EventArgs e)
    {   ...
        MySurface.OnGetValue += new RealFunction2d3d(MySurface_OnGetValue);
     }      
     xyz MySurface_OnGetValue(object sender, double u, double v)
     {
         u = (u - 0.5)*5 ; // map 0,1 --> -2.5,2.5
         v = (v - 0.5)*5 ; // map 0,1 --> -2.5,2.5
         return new xyz(u,v,(u * u + v * v)/2);
     }
 

For a list of all members of this type, see CustomSurface Members .

System.Object
   Surface
      CustomSurface

[Visual Basic]
<Serializable> _
Public Class CustomSurface
    Inherits Surface
[C#]
[Serializable]
public class CustomSurface : Surface

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: Drawing3d.Surfaces

Assembly: Drawing3d (in Drawing3d.dll)

See Also

CustomSurface Members | Drawing3d.Surfaces Namespace