Brlcad/How to mged/primitive/rcc

From Wikibooks, open books for an open world
Jump to navigation Jump to search

The rcc (right circular cylinder) primitive is used for creating cylinders.

Parameters[edit | edit source]

The following parameters are required:

  • vertex of base x
  • vertex of base y
  • vertex of base z
  • height vector x
  • height vector y
  • height vector z
  • radius

Draw a cylinder[edit | edit source]

# Create a cylinder names cyl.s of radius 5 with one end centred at the origin
# with a vector of 10 in the x direction.
in cyl.s rcc 0 0 0 10 0 0 5