| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/polygonsetbuilder.h>
Static Public Member Functions | |
| static Mesh * | createMesh (VertexAttributeGenerator *, const VertexAttributeMap *) |
| static Mesh * | createTransformedMesh (VertexAttributeGenerator *, const VertexAttributeMap *) |
| static Mesh * | createMesh (Engine *, VertexAttributeGenerator *) |
| Same as above, but using an engine to determine the VertexAttributeMap-attribute. | |
| static PolygonSet * | create (const Box *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0) |
| Creates a box-like PolygonSet. | |
| static Mesh * | create (const Cone *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0) |
| Creates a cone-like PolygonSet. | |
| static Mesh * | create (const Cylinder *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0) |
| Creates a cylinder-like PolygonSet. See create(const Cone*, ...). | |
| static Mesh * | create (const Disc *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0) |
| Creates a disc-like PolygonSet. See create(const Cone*, ...). | |
| static Mesh * | create (const Hyperboloid *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0) |
| Creates a hyperboloid-like PolygonSet. See create(const Cone*, ...). | |
| static Mesh * | create (const Knot *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0) |
| Creates a knot-like PolygonSet. See create(const Cone*, ...). | |
| static Mesh * | create (const Paraboloid *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0) |
| Creates a paraboloid-like PolygonSet. See create(const Cone*, ...). | |
| static Mesh * | create (const Sphere *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0) |
| Creates a sphere-like PolygonSet. See create(const Cone*, ...). | |
| static Mesh * | create (const SuperQuad *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0) |
| Creates a superquad-like PolygonSet. See create(const Cone*, ...). | |
| static Mesh * | create (const Torus *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0) |
| Creates a torus-like PolygonSet. See create(const Cone*, ...). | |
| static Mesh* VRS::PolygonSetBuilder::createMesh | ( | VertexAttributeGenerator * | , | |
| const VertexAttributeMap * | ||||
| ) | [static] |
Given a VertexAttributeGenerator, generates vertex data as indicated by the VertexAttributeMap-attribute and creates a mesh using this information.
| static Mesh* VRS::PolygonSetBuilder::createTransformedMesh | ( | VertexAttributeGenerator * | , | |
| const VertexAttributeMap * | ||||
| ) | [static] |
Given a VertexAttributeGenerator, generates vertex data as indicated by the VertexAttributeMap-attribute and creates a mesh using this information. Also transforms the mesh by the transformation given by the generator.
| static Mesh* VRS::PolygonSetBuilder::createMesh | ( | Engine * | , | |
| VertexAttributeGenerator * | ||||
| ) | [static] |
Same as above, but using an engine to determine the VertexAttributeMap-attribute.
| static PolygonSet* VRS::PolygonSetBuilder::create | ( | const Box * | , | |
| unsigned int | nx = 16, |
|||
| unsigned int | ny = 16, |
|||
| const VertexAttributeMap * | = 0 | |||
| ) | [static] |
Creates a box-like PolygonSet.
Creates a PolygonSet with form of a box. The six sides each have a resolution of nx*ny, and vertex attributes indicated by the vertex attribute map parameter. If the latter is 0, standard vertex attributes will be created
| static Mesh* VRS::PolygonSetBuilder::create | ( | const Cone * | , | |
| unsigned int | nx = 16, |
|||
| unsigned int | ny = 16, |
|||
| const VertexAttributeMap * | = 0 | |||
| ) | [static] |
Creates a cone-like PolygonSet.
Creates a PolygonSet with form of a cone, a resolution of nx*ny, and vertex attributes indicated by the vertex attribute map parameter. If the latter is 0, standard vertex attributes will be created
| static Mesh* VRS::PolygonSetBuilder::create | ( | const Cylinder * | , | |
| unsigned int | nx = 16, |
|||
| unsigned int | ny = 16, |
|||
| const VertexAttributeMap * | = 0 | |||
| ) | [static] |
Creates a cylinder-like PolygonSet. See create(const Cone*, ...).
| static Mesh* VRS::PolygonSetBuilder::create | ( | const Disc * | , | |
| unsigned int | nx = 16, |
|||
| unsigned int | ny = 16, |
|||
| const VertexAttributeMap * | = 0 | |||
| ) | [static] |
Creates a disc-like PolygonSet. See create(const Cone*, ...).
| static Mesh* VRS::PolygonSetBuilder::create | ( | const Hyperboloid * | , | |
| unsigned int | nx = 16, |
|||
| unsigned int | ny = 16, |
|||
| const VertexAttributeMap * | = 0 | |||
| ) | [static] |
Creates a hyperboloid-like PolygonSet. See create(const Cone*, ...).
| static Mesh* VRS::PolygonSetBuilder::create | ( | const Knot * | , | |
| unsigned int | nx = 16, |
|||
| unsigned int | ny = 16, |
|||
| const VertexAttributeMap * | = 0 | |||
| ) | [static] |
Creates a knot-like PolygonSet. See create(const Cone*, ...).
| static Mesh* VRS::PolygonSetBuilder::create | ( | const Paraboloid * | , | |
| unsigned int | nx = 16, |
|||
| unsigned int | ny = 16, |
|||
| const VertexAttributeMap * | = 0 | |||
| ) | [static] |
Creates a paraboloid-like PolygonSet. See create(const Cone*, ...).
| static Mesh* VRS::PolygonSetBuilder::create | ( | const Sphere * | , | |
| unsigned int | nx = 16, |
|||
| unsigned int | ny = 16, |
|||
| const VertexAttributeMap * | = 0 | |||
| ) | [static] |
Creates a sphere-like PolygonSet. See create(const Cone*, ...).
| static Mesh* VRS::PolygonSetBuilder::create | ( | const SuperQuad * | , | |
| unsigned int | nx = 16, |
|||
| unsigned int | ny = 16, |
|||
| const VertexAttributeMap * | = 0 | |||
| ) | [static] |
Creates a superquad-like PolygonSet. See create(const Cone*, ...).
| static Mesh* VRS::PolygonSetBuilder::create | ( | const Torus * | , | |
| unsigned int | nx = 16, |
|||
| unsigned int | ny = 16, |
|||
| const VertexAttributeMap * | = 0 | |||
| ) | [static] |
Creates a torus-like PolygonSet. See create(const Cone*, ...).