KrisLibrary  1.0.0
Namespaces | Functions
MeshPrimitives.h File Reference

Constructors for basic mesh primitives. More...

#include "TriMesh.h"

Go to the source code of this file.

Namespaces

 Math3D
 Contains all the definitions in the Math3D package.
 
 Meshing
 The namespace for all classes/functions in the Meshing package.
 

Functions

void Meshing::MakeTriPlane (int m, int n, TriMesh &mesh)
 makes a unit square on z=0 with m,n divisions in the x,y directions
 
void Meshing::MakeTriPlane (int m, int n, Real x, Real y, TriMesh &mesh)
 makes a square of size [x,y] with m,n divisions in the x,y directions
 
void Meshing::MakeTriCube (int m, int n, int p, TriMesh &mesh)
 makes a unit cube with m,n,p divisions in the x,y,z directions
 
void Meshing::MakeTriBox (int m, int n, int p, Real x, Real y, Real z, TriMesh &mesh)
 makes a [x,y,z] sized box with m,n,p divisions in the x,y,z directions
 
void Meshing::MakeTriCenteredCube (int m, int n, int p, TriMesh &mesh)
 makes a unit cube centered at 0 with m,n,p divisions in the x,y,z directions
 
void Meshing::MakeTriCenteredBox (int m, int n, int p, Real x, Real y, Real z, TriMesh &mesh)
 makes a [x,y,z] sized cube centered at 0 with m,n,p divisions in the x,y,z directions
 
void Meshing::MakeTriSphere (int numStacks, int numSlices, TriMesh &mesh)
 makes a unit sphere with the given stacks and slices (axis in z direction)
 
void Meshing::MakeTriSphere (int numStacks, int numSlices, Real r, TriMesh &mesh)
 makes a radius r sphere with the given stacks and slices (axis in z direction)
 
void Meshing::MakeTriCone (int numSlices, TriMesh &mesh)
 makes a unit height cone with unit base radius (base at origin, tip pointing in z direction)
 
void Meshing::MakeTriCone (int numSlices, Real h, Real rbase, TriMesh &mesh)
 makes a cone with height h, base radius rbase
 
void Meshing::MakeTriCylinder (int numSlices, TriMesh &mesh)
 makes a unit height cylinder with unit base radius (centered at origin, extending in z direction)
 
void Meshing::MakeTriCylinder (int numSlices, Real h, Real rbase, TriMesh &mesh)
 makes a cylinder with height h, base radius rbase
 
void Meshing::MakeTriMesh (const Sphere3D &geom, int numStacks, int numSlices, TriMesh &mesh)
 makes a triangle mesh from a sphere
 
void Meshing::MakeTriMesh (const Triangle3D &geom, TriMesh &mesh)
 makes a triangle mesh from a triangle
 
void Meshing::MakeTriMesh (const AABB3D &geom, TriMesh &mesh)
 makes a triangle mesh from an AABB
 
void Meshing::MakeTriMesh (const Box3D &geom, TriMesh &mesh)
 makes a triangle mesh from a box
 
void Meshing::MakeTriMesh (const Ellipsoid3D &geom, int numStacks, int numSlices, TriMesh &mesh)
 makes a triangle mesh from an ellipsoid
 
void Meshing::MakeTriMesh (const Cylinder3D &geom, int numSlices, TriMesh &mesh)
 makes a triangle mesh from a cylinder
 
void Meshing::MakeTriMesh (const Polygon3D &geom, TriMesh &mesh)
 makes a triangle mesh from a polygon (one sided) More...
 
void Meshing::MakeTriMesh (const GeometricPrimitive3D &geom, TriMesh &mesh, int numDivs)
 makes a triangle mesh from a generic geometric primitive
 

Detailed Description

Constructors for basic mesh primitives.