Skip to content
Alessandro Febretti edited this page Jun 27, 2013 · 6 revisions

[[module cyclops]] extends [[Entity]] wraps cyclops::LineSet

Defines a container of 3D line primitives. Lines are drawn as cylinders. Using this class instead of the CylinderShape class is better if:

  • You have to draw lots of lines (or cylinders) that share the same material / effect
  • You want to place lines in the scene defining a start / end point and thickness (instead of position / orientation / scale)

Methods

Method(s) Description
static create() Creates a new LineSet object
Line addLine() Creates a new line
removeLine(Line line) Removes the specified line

addLine() returns an object of type Line that supports the following methods:

Method(s) Description
setStart([[Vector]]3 position) Sets the start position of the line
setEnd([[Vector]]3 position) Sets the end position of the line
float getThickness() setThickness(float value) Gets or sets the line thickness
Clone this wiki locally