Beispiel #1
0
        static MobiusStrip()
        {
            // MinV should be -1.
            MinVProperty.OverrideMetadata(typeof(MobiusStrip), new PropertyMetadata(-1.0));

            // MaxV should be 1.
            MaxVProperty.OverrideMetadata(typeof(MobiusStrip), new PropertyMetadata(1.0));
        }
Beispiel #2
0
        static SuperToroid()
        {
            // So texture coordinates work out better, configure the default
            // MinV property to be PI.
            MinVProperty.OverrideMetadata(typeof(SuperToroid), new PropertyMetadata(Math.PI));

            // So texture coordinates work out better, configure the default
            // MaxV property to be 3*PI.
            MaxVProperty.OverrideMetadata(typeof(SuperToroid), new PropertyMetadata(Math.PI * 3.0));
        }