Skip to content
Alessandro Febretti edited this page Jun 12, 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
addLine() Creates a new line
removeLine(line) Removes the specified line

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

Method(s) Description
setStart(position) Sets the start position of the line (as a Vector3)
setEnd(position) Sets the end position of the line (as a Vector3)
getThickness() setThickness(value) Gets or sets the line thickness
Clone this wiki locally