openspace.debugging

Functions overview

Name

Documentation

createCoordinateAxes

Creates a new scene graph node that show the coordinate system used for the currently selected focus node, or a specified scene graph node

removePathControlPoints

Removes the rendered control points

removeRenderedCameraPath

Removes the currently rendered camera path if there is one

renderCameraPath

Render the current camera path from the path navigation system

renderPathControlPoints

Render the control points for the camera path spline as spheres

Functions

createCoordinateAxes

Creates a new scene graph node that show the coordinate system used for the currently selected focus node, or a specified scene graph node.

Usage:

-- To add coordinate axes for the currently selected focus node, do not specify any
-- parameters
openspace.debugging.createCoordinateAxes()
Parameters
  • nodeIdentifier String?

    • The identifier of the scene graph node for which the axes should be added. If this parameter is not specified, the current focus node is used instead.

  • scale Number?

    • An optional parameter that specifies the size of the coordinate axes, in meters. If not specified, the size is set to 2.5 times the interaction sphere of the selected node.

Return type: void

Signature
openspace.debugging.createCoordinateAxes(nodeIdentifier, scale)

removePathControlPoints

Removes the rendered control points.

Return type: void

Signature
openspace.debugging.removePathControlPoints()

removeRenderedCameraPath

Removes the currently rendered camera path if there is one.

Return type: void

Signature
openspace.debugging.removeRenderedCameraPath()

renderCameraPath

Render the current camera path from the path navigation system. The first optional argument is the number of samples to take along the path (defaults to 100). If a second optional argument is included and set to true, a line indicating the camera view direction along the path will also be rendered. This can be useful when debugging camera orientations. Finally, the third optional argument can be used to set the length (in meter) of the view direction lines.

Parameters
  • nSteps Integer? - Default value: 100

  • renderDirections Boolean? - Default value: false

  • directionLineLength Number? - Default value: 6e7

Return type: void

Signature
openspace.debugging.renderCameraPath(nSteps, renderDirections, directionLineLength)

renderPathControlPoints

Render the control points for the camera path spline as spheres. The optional argument can be used to set the radius of the created spheres.

Parameters
  • radius Number? - Default value: 2000000.0

Return type: void

Signature
openspace.debugging.renderPathControlPoints(radius)