Choreonoid  1.5
Classes | Public Types | Public Member Functions | List of all members
cnoid::MeshGenerator Class Reference

#include <MeshGenerator.h>

Classes

struct  Extrusion
 

Public Types

typedef std::vector< Vector2, Eigen::aligned_allocator< Vector2 > > Vector2Array
 
typedef std::vector< Vector3, Eigen::aligned_allocator< Vector3 > > Vector3Array
 
typedef std::vector< AngleAxis, Eigen::aligned_allocator< AngleAxis > > AngleAxisArray
 

Public Member Functions

 MeshGenerator ()
 
 MeshGenerator (const MeshGenerator &org)
 
 ~MeshGenerator ()
 
void setDivisionNumber (int n)
 
int divisionNumber () const
 
void enableNormalGeneration (bool on)
 
bool isNormalGenerationEnabled () const
 
SgMeshgenerateBox (Vector3 size)
 
SgMeshgenerateSphere (double radius)
 
SgMeshgenerateCylinder (double radius, double height, bool bottom=true, bool top=true, bool side=true)
 
SgMeshgenerateCone (double radius, double height, bool bottom=true, bool side=true)
 
SgMeshgenerateDisc (double radius, double innerRadius)
 
SgMeshgenerateArrow (double length, double width, double coneLengthRatio=0.1, double coneWidthRatio=2.5)
 
SgMeshgenerateTorus (double radius, double crossSectionRadius)
 
SgMeshgenerateExtrusion (const Extrusion &extrusion)
 
SgLineSetgenerateExtrusionLineSet (const Extrusion &extrusion, SgMesh *mesh)
 

Member Typedef Documentation

typedef std::vector<AngleAxis, Eigen::aligned_allocator<AngleAxis> > cnoid::MeshGenerator::AngleAxisArray
typedef std::vector<Vector2, Eigen::aligned_allocator<Vector2> > cnoid::MeshGenerator::Vector2Array
typedef std::vector<Vector3, Eigen::aligned_allocator<Vector3> > cnoid::MeshGenerator::Vector3Array

Constructor & Destructor Documentation

MeshGenerator::MeshGenerator ( )
cnoid::MeshGenerator::MeshGenerator ( const MeshGenerator org)
MeshGenerator::~MeshGenerator ( )

Member Function Documentation

int MeshGenerator::divisionNumber ( ) const
void MeshGenerator::enableNormalGeneration ( bool  on)
SgMesh * MeshGenerator::generateArrow ( double  length,
double  width,
double  coneLengthRatio = 0.1,
double  coneWidthRatio = 2.5 
)
SgMesh * MeshGenerator::generateBox ( Vector3  size)
SgMesh * MeshGenerator::generateCone ( double  radius,
double  height,
bool  bottom = true,
bool  side = true 
)
SgMesh * MeshGenerator::generateCylinder ( double  radius,
double  height,
bool  bottom = true,
bool  top = true,
bool  side = true 
)
SgMesh * MeshGenerator::generateDisc ( double  radius,
double  innerRadius 
)
SgMesh * MeshGenerator::generateExtrusion ( const Extrusion extrusion)
SgLineSet * MeshGenerator::generateExtrusionLineSet ( const Extrusion extrusion,
SgMesh mesh 
)
SgMesh * MeshGenerator::generateSphere ( double  radius)
Todo:
set normals directly without using the following function
SgMesh * MeshGenerator::generateTorus ( double  radius,
double  crossSectionRadius 
)
bool MeshGenerator::isNormalGenerationEnabled ( ) const
void MeshGenerator::setDivisionNumber ( int  n)

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