エッジを表示

エッジを表示#

Show the edges of all geometries within a mesh using the show_edges property.

レンダリング時にメッシュのすべてのエッジを表示して,解像度などのデータセットの側面を伝えると便利な場合があります.

レンダリングされたデータセットのエッジを表示するには,データセットをプロットするときに Trueshow_edges キーワード引数を指定するだけです.

from __future__ import annotations

import pyvista as pv
from pyvista import examples

nefertiti = examples.download_nefertiti()

# Camera position to zoom to face
face_view = pv.CameraPosition(
    position=(194.57658338658473, -327.5539184202715, 28.106692235139377),
    focal_point=(-10.46795453395034, -67.33281919301498, -19.938084799559192),
    viewup=(-0.05444711191580967, 0.13964269728441056, 0.9887039137674948),
)


nefertiti.plot(cpos=face_view, show_edges=True, color=True)
show edges

Tags: plot

Total running time of the script: (0 minutes 9.452 seconds)

Sphinx-Galleryによるギャラリー