Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/structRingParams.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:26:20 2014 Кодировка: Поисковые слова: regolith |
Stellarium 0.12.3
|
Parameters specifying how to generate a ring. More...
#include <StelGeometryBuilder.hpp>
Public Member Functions | |
RingParams (const float innerRadius, const float outerRadius) | |
Construct RingParams specifying the required inner and outer radius parameter and other parameters at default values. More... | |
RingParams & | resolution (const int slices, const int loops) |
Set resolution (detail) of the ring. More... | |
RingParams & | flipFaces () |
If specified, the ring will be flipped to face the opposite side. More... | |
Public Attributes | |
float | innerRadius_ |
Inner radius of the ring. More... | |
float | outerRadius_ |
Outer radius of the ring. More... | |
int | loops_ |
Number of loops in the ring. More... | |
int | slices_ |
Number of slices/subdivisions in the ring. More... | |
bool | flipFaces_ |
Should the faces in the ring be flipped to face the opposite side? More... | |
Parameters specifying how to generate a ring.
These are passed to StelGeometryBuilder to build a sphere.
This is a builder-style struct. Parameters can be specified like this:
Definition at line 345 of file StelGeometryBuilder.hpp.
|
inline |
Construct RingParams specifying the required inner and outer radius parameter and other parameters at default values.
Default values are 20 loops, 20 slices and faces not flipped.
innerRadius | Inner radius. Must be greater than zero. |
outerRadius | Outer radius. Must be greater than the inner radius. |
Definition at line 354 of file StelGeometryBuilder.hpp.
|
inline |
If specified, the ring will be flipped to face the opposite side.
Definition at line 379 of file StelGeometryBuilder.hpp.
|
inline |
Set resolution (detail) of the ring.
Higher values result in more detail, but also higher resource usage.
slices | Number of slices/subdivisions. E.g. 3 is a triangle, 5 a pentagon, etc. Must be at least 3 and at most 4096. |
loops | Number of concentric loops in the ring. Must be at least 1. |
Definition at line 371 of file StelGeometryBuilder.hpp.
bool RingParams::flipFaces_ |
Should the faces in the ring be flipped to face the opposite side?
Definition at line 394 of file StelGeometryBuilder.hpp.
float RingParams::innerRadius_ |
Inner radius of the ring.
Definition at line 386 of file StelGeometryBuilder.hpp.
int RingParams::loops_ |
Number of loops in the ring.
Definition at line 390 of file StelGeometryBuilder.hpp.
float RingParams::outerRadius_ |
Outer radius of the ring.
Definition at line 388 of file StelGeometryBuilder.hpp.
int RingParams::slices_ |
Number of slices/subdivisions in the ring.
Definition at line 392 of file StelGeometryBuilder.hpp.