Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Namespaces | Enumerations | Functions

C:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlut/GeometryPrimitives.hpp File Reference

#include <vl/Vector4.hpp>
#include <vl/Geometry.hpp>
#include <vlut/Colors.hpp>

Namespaces

namespace  vlut
 

Visualization Library utility namespace.


Enumerations

enum  vlut::ECapsuleCap { vlut::CC_FlatCap, vlut::CC_RoundedCap, vlut::CC_NoCap }

Functions

vl::ref< vl::Geometryvlut::makeIcosphere (const vl::vec3 &pos, vl::Real diameter=1, int detail=2, bool remove_doubles=true)
 Creates a sphere by iteratively subdividing an icosahedron.
vl::ref< vl::Geometryvlut::makeCylinder (const vl::vec3 &origin, vl::Real diameter=1, vl::Real height=1, int phi=20, int theta=2, bool top=true, bool bottom=true)
 Creates a cylinder.
vl::ref< vl::Geometryvlut::makeUVSphere (const vl::vec3 &origin, vl::Real diameter=1, int phi=20, int theta=20)
 Creates a uv sphere.
vl::ref< vl::Geometryvlut::makeTorus (const vl::vec3 &origin, vl::Real diameter=1, vl::Real thickness=0.2, int phi=10, int theta=10, float tex_coords=0.0f)
 Creates torus. This function generates also appropriate normals.
vl::ref< vl::Geometryvlut::makeCone (const vl::vec3 &origin, vl::Real diameter=1, vl::Real height=1, int phi=10, bool bottom=true)
 Creates a cone.
vl::ref< vl::Geometryvlut::makePyramid (const vl::vec3 &origin, vl::Real side=1, vl::Real height=1)
 Creates a pyramid.
vl::ref< vl::Geometryvlut::makeBox (const vl::vec3 &origin, vl::Real xside=1, vl::Real yside=1, vl::Real zside=1, bool tex_coords=true)
 Creates a box.
vl::ref< vl::Geometryvlut::makeBox (const vl::vec3 &min, const vl::vec3 &max, bool tex_coords=true)
 Creates a box.
vl::ref< vl::Geometryvlut::makeBox (const vl::AABB &aabb, bool tex_coords=true)
 Creates a box.
vl::ref< vl::Geometryvlut::makeGrid (const vl::vec3 &origin, vl::Real xside, vl::Real zside, int x, int z, bool gen_texcoords=false, vl::fvec2 uv0=vl::fvec2(), vl::fvec2 uv1=vl::fvec2())
 Creates a 2D grid.
vl::ref< vl::Geometryvlut::makeIcosahedron (const vl::vec3 &origin, vl::Real diameter)
 Creates an icosahedron.
vl::ref< vl::Geometryvlut::makePoints (const std::vector< vl::vec3 > &pos, const vl::fvec4 &color=vlut::white)
 Creates a Geometry representing a set of points.
vl::ref< vl::Geometryvlut::makeCircle (vl::vec3 origin, vl::Real radius, int slices=60)
 Creates a 2D circle.
vl::ref< vl::Geometryvlut::makeCapsule (float radius, float height, int segments, ECapsuleCap top_cap, ECapsuleCap bottom_cap, const vl::fvec4 &top_col, const vl::fvec4 &bottom_col)
 Creates a 3d capsule with rounded, flat or no caps.

Visualization Library v2010.11.1123 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Thu Nov 18 2010 02:07:55.
Permission is granted to use this page to write and publish articles regarding Visualization Library.