34#include <NDEVR/BaseValues.h>
35#include <NDEVR/Matrix.h>
36#include <NDEVR/Vertex.h>
37#include <NDEVR/Bounds.h>
69 static void Cylinder(
Geometry&
mesh,
const Matrix<fltp08>& trans =
Matrix<fltp08>(1),
uint04 width_segments = 44,
fltp08 top_radius = 1.0f,
fltp08 bottom_radius = 1.0,
fltp08 height = 1.0,
Angle<fltp08> phi_start =
Angle<fltp08>(
DEGREES, 0.0f),
Angle<fltp08> phi_length =
Angle<fltp08>(
DEGREES, 360.0f),
bool draw_top_circle =
true,
bool draw_bottom_circle =
true);
71 static void Sphere(
Geometry&
mesh,
uint04 width_segments = 44,
uint04 height_segments = 32,
Angle<fltp08> phi_start =
Angle<fltp08>(
DEGREES, 0.0f),
Angle<fltp08> phi_length =
Angle<fltp08>(
DEGREES, 360.0f),
Angle<fltp08> theta_start =
Angle<fltp08>(
DEGREES, 0.0f),
Angle<fltp08> theta_length =
Angle<fltp08>(
DEGREES, 180.0f));
75 static void SetupStaticGeometry(
Geometry& geo);
Stores an angle in an optimized format.
Definition StringStream.h:352
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:57
Definition Matrix.hpp:173
Definition ShapeConstructors.h:59
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
A vertex.
Definition Vertex.hpp:54
@ DEGREES
Definition Angle.h:66
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181
Definition ShapeConstructors.h:43
Vector< 2, uint04 > size
Definition ShapeConstructors.h:47
Bounds< 2, Angle< fltp08 > > radial_bounds
Definition ShapeConstructors.h:48
Vector< 2, fltp08 > angleToTextureCoord(Vector< 2, Angle< fltp08 > > angle) const
Definition ShapeConstructors.cpp:757
ZippedRadialMeshOptions(uint04 width, uint04 height)
Definition ShapeConstructors.h:44
uint04 angleToVertexIndex(Vector< 2, Angle< fltp08 > > angle) const
Definition ShapeConstructors.cpp:751
Vector< 2, Angle< fltp08 > > vertexIndexToAngle(uint04 index) const
Definition ShapeConstructors.cpp:745
uint04 _angleToVertexIndex(Vector< 2, Angle< fltp08 > > angle) const
Definition ShapeConstructors.cpp:787
Vector< 2, Angle< fltp08 > > _vertexIndexToAngle(uint04 index) const
Definition ShapeConstructors.cpp:766