Exemple #1
0
        internal static void OnMaterialChanged(Object sender, DependencyPropertyChangedEventArgs e)
        {
            Primitive3D p = ((Primitive3D)sender);

            p._content.Material = p.Material;
            p._content.Geometry = p.Tessellate();
        }
Exemple #2
0
        internal static void OnLengthChanged(Object sender, DependencyPropertyChangedEventArgs e)
        {
            Primitive3D p = ((Primitive3D)sender);

            p.Length            = (double)(e.NewValue);
            p._content.Geometry = p.Tessellate();
        }
Exemple #3
0
        internal static void OnGeometryChanged(DependencyObject d)
        {
            Primitive3D p = ((Primitive3D)d);

            p._content.Geometry = p.Tessellate();
        }