Antiprism Up Next

off_normals - utility for working with normals

Usage    |    Examples    |    Notes


Usage: off_normals [options] [input_file]

Display normals of faces, implicit edges, and vertices
If input_file is not given the program reads from standard input.

  -h,--help this help message (run 'off_util -H help' for general help)
  --version version information
  -u        unit normals  (positional normals otherwise)
  -e        connect to element centroid
  -p <opt>  force polarity. o - set all outward,  i - set all inward
               r - reverse both inward and outward
  -i <elms> include normals. The element string can include o, i and h
               to show, respectively, outward, inward and hemispherical
               note: exlusion occurs before -p  (default: oih)
  -s <elms> include elements. The element string can include v, e and f
               to show, respectively, vertices, edges and faces  (default: f)
  -d <opt>  delete elements.  f - delete faces of unincluded normals
               a - delete all of original model
  -c <opts> average pattern string for edge and vertex normals. Done before -p
               r - raw,  o - outward,  i - inward,  u - unit  (default: r)
  -a        alternate calculation for vertex normals
  -C <xyz>  center of model, in form 'X,Y,Z'  (default: centroid)
  -l <lim>  minimum distance for unique vertex locations as negative exponent
               (default: 12 giving 1e-12)
  -o <file> write output to file  (default: write to standard output)

Coloring Options (run 'off_util -H color' for help on color formats)
  -O <col>  outward normal vertex color
  -I <col>  inward normal vertex color
               default: vertex color is negative of outward col
  -H <col>  hemispherical normal vertex color  (default: gray50)
  -E <col>  normal vector color. connected to element centroid
               default: color of normal vertex
               key word: r take random color
  -B <col>  normal vector base color. color at element centroid
               key word: b take color of element (default)
               key word: n take color of normal vertex


Show the normals of a dodecahedron. Outward normals will be colored white
off_normals dod -O white | antiview -v 0.075

Show the normals of a rhombic triacontahedron which has been oriented for negative volume so normals are reversed. Normals are joined to face centres with an edge of random colour, making it easier to see which normal belongs to which face
off_util -O n rt | off_normals -e -E r | antiview -v 0.075 -x f

Show the edge normals of an icosidodecahedron
off_normals icosidodecahedron -s e -O white -e | off_color -r A0.3,f | antiview -v 0.02


off_normals was written by Roger Kaufman.

     Next: conv_hull - convex hulls (using Qhull)
     Up: Programs and Documentation

Home   |   Programs   |   Examples   |   Album   |   Download   |   Development   |   Forum   |   About

Contact:      -      Modified 12.9.2016