Maxima – 265 – draw – 12

1DfC

Continuo da qui, copio dal Reference Manual, PDF scaricabile da qui, sono a p.817.

interpolate_color
Default value: false.

This option is relevant only when enhanced3d is not false.

When interpolate_color is false, surfaces are colored with homogeneous quadrangles. When true, color transitions are smoothed by interpolation.

interpolate_color also accepts a list of two numbers, [m, n]. For positive m and n, each quadrangle or triangle is interpolated m times and n times in the respective direction. For negative m and n, the interpolation frequency is chosen so that there will be at least |m| and |n| points drawn; you can consider this as a special gridding function. Zeros, i.e. interpolate_color=[0, 0], will automatically choose an optimal number of interpolated surface points.

Also, interpolate_color = true is equivalent to interpolate_color = [0, 0].

Color interpolation with explicit functions.

(%i1) draw3d(
        enhanced3d = sin(x*y),
        explicit(20*exp(-x^2-y^2)-10, x , -3, 3, y, -3, 3)) $

265-0

(%i2) draw3d(
        interpolate_color = true,
        enhanced3d = sin(x*y),
        explicit(20*exp(-x^2-y^2)-10, x , -3, 3, y, -3, 3)) $

265-1

(%i3) draw3d(
        interpolate_color = [-10, 0],
        enhanced3d = sin(x*y),
        explicit(20*exp(-x^2-y^2)-10, x , -3, 3, y, -3, 3)) $

265-2

Color interpolation with the mesh graphic object.

Interpolating colors in parametric surfaces can give unexpected results.

(%i4) draw3d(
        enhanced3d = true,
        mesh([[1, 1, 3],
        [7, 3, 1], [12, -2, 4], [15, 0, 5]],
        [[2, 7, 8],
        [4, 3, 1], [10, 5, 8], [12, 7, 1]],
        [[-2, 11, 10], [6, 9, 5], [6, 15, 1], [20, 15, 2]])) $

265-3

(%i5) draw3d(
        enhanced3d = true,
        interpolate_color = [0, 0],
        mesh([[1, 1, 3],
        [7, 3, 1], [12, -2, 4], [15, 0, 5]],
        [[2, 7, 8],
        [4, 3, 1], [10, 5, 8], [12, 7, 1]],
        [[-2, 11, 10], [6, 9, 5], [6, 15, 1], [20, 15, 2]])) $

ho avuto qualche difficoltà a riuscirci, probabilmente per via della versione non aggiornata.

265-4

(%i8) draw3d(
        enhanced3d = true,
        interpolate_color = true,
        view=map,
        mesh([[1, 1, 3],
        [7, 3, 1], [12, -2, 4], [15, 0, 5]],
        [[2, 7, 8],
        [4, 3, 1], [10, 5, 8], [12, 7, 1]],
        [[-2, 11, 10], [6, 9, 5], [6, 15, 1], [20, 15, 2]])) $

265-5

ip_grid
Default value: [50, 50].

ip_grid sets the grid for the first sampling in implicit plots. This option is relevant only for implicit objects.

ip_grid_in
Default value: [5, 5].

ip_grid_in sets the grid for the second sampling in implicit plots. This option is relevant only for implicit objects.

Posta un commento o usa questo indirizzo per il trackback.

Trackback

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Google photo

Stai commentando usando il tuo account Google. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...

Questo sito utilizza Akismet per ridurre lo spam. Scopri come vengono elaborati i dati derivati dai commenti.

%d blogger hanno fatto clic su Mi Piace per questo: