Function lupnt::PlotBody

Function Documentation

matplot::surface_handle lupnt::PlotBody(BodyId body, Vec3 r_body = Vec3::Zero())

Plot a celestial body as a shaded sphere centered at r_body.

Used in scenario examples (e.g. ex_frozen_orbits.cc) to draw the Earth or Moon for visual context alongside plotted orbits, using the body’s mean radius from GetBodyRadius.

Parameters:
  • bodyBody to draw (its radius is looked up via GetBodyRadius)

  • r_body – Center of the sphere [length units, e.g. 1e3 km to match the axis labels set by this function]

Returns:

Handle to the created surface plot