コード例 #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));
        }
コード例 #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));
        }
コード例 #3
0
 static Cone()
 {
     // The height of the cone is specified by MaxV, so make the default
     // MaxV property be 1.
     MaxVProperty.OverrideMetadata(typeof(Cone), new PropertyMetadata(1.0));
 }
コード例 #4
0
 static Cylinder()
 {
     // The height of the cylinder is specified by MaxV, so make the
     // default MaxV property be 1.
     MaxVProperty.OverrideMetadata(typeof(Cylinder), new PropertyMetadata(1.0));
 }