Skip to content
Snippets Groups Projects
Commit f9e6608c authored by slevy's avatar slevy
Browse files

Demonstrate attaching vectors (w/optional arrows) to points --

"vec"/"vecscale" control commands, and "vecvar" data command.
parent 09905a52
No related branches found
No related tags found
No related merge requests found
#! /usr/bin/env partiview
read vector.speck # defines a bunch of points, each with a triple of consecutive fields
vecvar x # use field "x" (and the two fields following) to define 3-D vector
eval lum const 300 # dot size
eval color color
eval vecscale 2.0 # Each point's vector is 2 * the {x y z} attributes
eval jump 0 0 10 0 0 0 # nice viewpoint
eval vec arrow # alternatives: "vec off" (points are as usual),
# "vec on" (dots with colored line segments),
# "vec arrow" (line segments with arrows)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment