16.21-rasm - WarpScalar filtrining namoyishi
Endi filtrlashning yana bir darajasini qo'shib, usulsizliklarni yaxshilaymiz
PolyDataNormals yordamida :
399
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
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 ()
Do'stlaringiz bilan baham: |