API Documentation
Loading...
Searching...
No Matches
ShapeConstructors Class Reference

#include <ShapeConstructors.h>

Static Public Member Functions

static Geometry StaticLine (Scene &parent)
 
static Geometry StaticCircleOutline (Scene &parent)
 
static Geometry StaticRectangleFilled (Scene &parent)
 
static Geometry StaticRectangularPrismFilled (Scene &parent)
 
static void Quad (Geometry &mesh, const Matrix< fltp08 > &trans, Vertex< 3, fltp08 > p1, Vertex< 3, fltp08 > p2, Vertex< 3, fltp08 > p3, Vertex< 3, fltp08 > p4)
 
static void Rectangle (Geometry &mesh, const Matrix< fltp08 > &trans=Matrix< fltp08 >(1), fltp08 top_length=2.0, fltp08 bottom_length=2.0, fltp08 left_length=2.0, fltp08 right_length=2.0, fltp08 vertical_scew=0.0, fltp08 horizontal_scew=0.0)
 
static void RectangularPrism (Geometry &mesh, const Matrix< fltp08 > &trans=Matrix< fltp08 >(1))
 
static void Circle (Geometry &mesh, const Matrix< fltp08 > &trans=Matrix< fltp08 >(1), uint04 width_segments=128, fltp08 radius=1.0f, Angle< fltp08 > phi_start=Angle< fltp08 >(DEGREES, 0.0f), Angle< fltp08 > phi_length=Angle< fltp08 >(DEGREES, 360.0f), bool join=true)
 
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)
 
static void Cone (Geometry &mesh, const Matrix< fltp08 > &trans=Matrix< fltp08 >(1), uint04 width_segments=44, 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_bottom_circle=true)
 
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))
 
static void ZippedRadialMesh (Geometry &mesh, const ZippedRadialMeshOptions &options)
 
static void ZippedTorus (Geometry &mesh, uint04 width_segments=44, uint04 height_segments=32)
 

Static Protected Member Functions

static void SetupStaticGeometry (Geometry &geo)
 

Member Function Documentation

◆ Circle()

void Circle ( Geometry & mesh,
const Matrix< fltp08 > & trans = Matrix<fltp08>(1),
uint04 width_segments = 128,
fltp08 radius = 1.0f,
Angle< fltp08 > phi_start = Angle<fltp08>(DEGREES, 0.0f),
Angle< fltp08 > phi_length = Angle<fltp08>(DEGREES, 360.0f),
bool join = true )
static

◆ Cone()

void Cone ( Geometry & mesh,
const Matrix< fltp08 > & trans = Matrix<fltp08>(1),
uint04 width_segments = 44,
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_bottom_circle = true )
static

◆ Cylinder()

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 )
static

◆ Quad()

void Quad ( Geometry & mesh,
const Matrix< fltp08 > & trans,
Vertex< 3, fltp08 > p1,
Vertex< 3, fltp08 > p2,
Vertex< 3, fltp08 > p3,
Vertex< 3, fltp08 > p4 )
static

◆ Rectangle()

void Rectangle ( Geometry & mesh,
const Matrix< fltp08 > & trans = Matrix<fltp08>(1),
fltp08 top_length = 2.0,
fltp08 bottom_length = 2.0,
fltp08 left_length = 2.0,
fltp08 right_length = 2.0,
fltp08 vertical_scew = 0.0,
fltp08 horizontal_scew = 0.0 )
static

◆ RectangularPrism()

void RectangularPrism ( Geometry & mesh,
const Matrix< fltp08 > & trans = Matrix<fltp08>(1) )
static

◆ SetupStaticGeometry()

void SetupStaticGeometry ( Geometry & geo)
staticprotected

◆ Sphere()

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) )
static

◆ StaticCircleOutline()

Geometry StaticCircleOutline ( Scene & parent)
static

◆ StaticLine()

Geometry StaticLine ( Scene & parent)
static

◆ StaticRectangleFilled()

Geometry StaticRectangleFilled ( Scene & parent)
static

◆ StaticRectangularPrismFilled()

Geometry StaticRectangularPrismFilled ( Scene & parent)
static

◆ ZippedRadialMesh()

void ZippedRadialMesh ( Geometry & mesh,
const ZippedRadialMeshOptions & options )
static

◆ ZippedTorus()

void ZippedTorus ( Geometry & mesh,
uint04 width_segments = 44,
uint04 height_segments = 32 )
static

The documentation for this class was generated from the following files: