[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.3.5 Points

Points are supported in 3Delight through the standard RenderMan Points primitive. Points' size is controlled using either "width" or "constantwidth" variable (RI_WIDTH or RI_CONSTANTWIDTH in the API). The way 3Delight renders points is selectable during primitive declaration using the "uniform string type" variable which can take two values: `sphere' or `disk'. Default is `sphere'.

EXAMPLE

 
WorldBegin
  Translate 0 0 10
  Color 1 1 1
  TransformBegin
    Rotate -30 0 1 0
    Rotate 60 1 0 0
    Scale 0.3 0.3 0.3
    # Render some points using the 'sphere' primitive ...
    Points
      "P" [ -3 2 1 3 2 1 -3 0 1 -1 0 1 1 0 1 3 0 1
            -1 -4 1 1 -4 1 -3 2 -1
             3 2 -1 -3 0 -1 -1 0 -1 1 0 -1 3 0 -1 -1 -4 -1 1 -4 -1 ]
      "constantwidth" [0.2]
      "uniform string type" "sphere"
  TransformEnd
WorldEnd



This document was generated by Aghiles Kheffache on July, 31 2003 using texi2html
3Delight 1.0.0. Copyright 2000-2003 The 3Delight Team. All Rights Reserved.