# Examples from pyvista.line_segments_from_points
# ===============================================

# This example plots two line segments at right angles to each other.
import pyvista as pv
import numpy as np
points = np.array([[0, 0, 0], [1, 0, 0], [1, 0, 0], [1, 1, 0]])
lines = pv.line_segments_from_points(points)
lines.plot()

# See Plot a 3D Graph Network for more examples using this function.

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

