Sahifa 1 sahifa


Download 341.46 Kb.
bet237/240
Sana02.01.2022
Hajmi341.46 Kb.
#189729
1   ...   232   233   234   235   236   237   238   239   240
Bog'liq
Python. Ma'lumotlarni vizuallashtirish - 2020 yil

16.21-rasm - WarpScalar filtrining namoyishi

Endi filtrlashning yana bir darajasini qo'shib, usulsizliklarni yaxshilaymiz



PolyDataNormals yordamida :

399




Sahifa 401

z = np.random.rand ( 15 , 15 )

src = mlab.pipeline.array2d_source (z)

çözgü = mlab.pipeline.warp_scalar (src)

poly = mlab.pipeline.poly_data_normals (çözgü)

mlab.pipeline.surface (poly)

mlab.show ()



16.22-rasm - PolyDataNormals filtrining namoyishi

QuadricDecimation

Asl meshdagi uchburchaklar sonini kamaytiradi, hosil qiladi

modelni yaxshiroq namoyish etish.

Chiqish-ni tanlang

Uchun ko'p blokli ma'lumotlar manbalari bilan ishlashda foydalaniladi

chiqish tanlovi.

Stripper

Filtr yuzalardagi bo'shliqlarni to'ldirish uchun ishlatiladi. Yarataylik

trubka striptiz filtrisiz :

t = np.linspace ( 0 , 5 * np.pi, 100 )

x = t * np.cos (t)

y = t * np.sin (t)

z = t

400




Sahifa 402

src = mlab.pipeline.line_source (x, y, z, z)

tb = mlab.pipeline.tube (src, tube_radius = 1,5 , tube_sides = 10 )

mlab.pipeline.surface (tb)

mlab.show ()




Download 341.46 Kb.

Do'stlaringiz bilan baham:
1   ...   232   233   234   235   236   237   238   239   240




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling