Пример #1
0
        public override void Map(DifferentialGeometry dg, ref float s, ref float t, ref float dsdx, ref float dtdx,
                                 ref float dsdy,
                                 ref float dtdy)
        {
            Vector3 vec;
            var     zero = new Vector3(0);

            Vector3.Subtract(ref dg.Point, ref zero, out vec);
            s = _ds + Vector3.Dot(vec, _vs);
            t = _dt + Vector3.Dot(vec, _vt);
            Vector3.Dot(ref dg.Dpdx, ref _vs, out dsdx);
            Vector3.Dot(ref dg.Dpdx, ref _vt, out dtdx);
            Vector3.Dot(ref dg.Dpdy, ref _vs, out dsdy);
            Vector3.Dot(ref dg.Dpdy, ref _vt, out dtdy);
        }
 public override void Map(DifferentialGeometry dg, ref float s, ref float t, ref float dsdx, ref float dtdx,
                          ref float dsdy,
                          ref float dtdy)
 {
     throw new NotImplementedException();
 }