The MayaGeometrySet class provides a geometric instance linked to several frames.
More...
|
| MayaGeometrySet () |
| Empty.
|
|
| MayaGeometrySet (const QString &, const MayaMaterial &=MayaMaterial::None) |
| Create a geometry set. More...
|
|
| MayaGeometrySet (const QString &, const FrameScaled &, const MayaMaterial &=MayaMaterial::None) |
| Create a geometry set and one instance. More...
|
|
| MayaGeometrySet (const MayaGeometry &) |
| Create a set of geometric instances. More...
|
|
| MayaGeometrySet (const MayaGeometry &, const FrameScaled &) |
| Create a set of geometric instances. More...
|
|
| MayaGeometrySet (const MayaGeometry &, const QVector< FrameScaled > &) |
| Create a set of geometric instances. More...
|
|
| MayaGeometrySet (const MayaGeometry &, const QVector< Vector > &) |
| Create a set of geometric instances. More...
|
|
| ~MayaGeometrySet () |
| Empty.
|
|
void | Append (const FrameScaled &) |
| Adds a frame to the list of instances. More...
|
|
void | SetName (const QString &) |
| Set the name. More...
|
|
void | SetFrames (QVector< FrameScaled >) |
| Set the set of frames that define the locations of the instances. More...
|
|
void | ApplyFrames (QVector< FrameScaled >) |
| Add a frame to the list of instances. More...
|
|
void | Rotate (const Vector &) |
| Rotates a set of geometrical objects. More...
|
|
void | Translate (const Vector &) |
| Translates a set of geometrical objects. More...
|
|
void | Scale (const Vector &) |
| Scales a set of geometrical objects. More...
|
|
void | Clear () |
| Clear the instance set.
|
|
void | Remove (int) |
| Remove a given instance from the set. More...
|
|
QString | GetName () const |
| Get the name of the geometry set.
|
|
Box | GetBox () const |
| Compute the bounding box.
|
|
FrameScaled | GetFrameScaled (int) const |
| Get the i-th frame. More...
|
|
QVector< FrameScaled > | GetFrames () const |
| Get the set of frames.
|
|
int | count () const |
| Get the number of frames in the instance set.
|
|
MayaGeometry | Collapse () const |
| Merge all the instances into a signel Maya geometry structure.
|
|
bool | Save_VueScript (QTextStream &out) const |
| Export instances in Vue Software format.
|
|
bool | Save_VUE (QTextStream &out) const |
| Save the instances as a Vue python script. More...
|
|
MayaStatistics | GetStatistics () const |
| Compute the statistics of the geometry set. More...
|
|
QString | GetText (int=0, bool=false) const |
| Get the text information. More...
|
|
| MayaGeometry () |
| Creates an empty mesh structure.
|
|
| MayaGeometry (const QString &, const MayaMaterial &=MayaMaterial::None) |
| Creates an empty mesh structure. More...
|
|
| MayaGeometry (const QString &, const QVector< Vector > &, const QVector< Vector > &, const QVector< MayaIndexVertexData > &, const MayaMaterial &=MayaMaterial::None) |
| Creates a mesh given an array of vertices and normals, and an array of integers defining the (possibly smooth) triangles of the mesh. More...
|
|
| MayaGeometry (const QString &, const QVector< Vector > &, const QVector< Vector > &, const QVector< Vector > &, const QVector< MayaIndexVertexData > &, const MayaMaterial &=MayaMaterial::None) |
| Creates a mesh. More...
|
|
| MayaGeometry (const QString &, const QVector< Vector > &, const QVector< Vector > &, const QVector< Vector2 > &, const QVector< MayaIndexVertexData > &, const MayaMaterial &=MayaMaterial::None) |
| Creates a mesh given an array of vertices, normals and colors, and an array of integers defining the (possibly smooth) triangles of the mesh. More...
|
|
| MayaGeometry (const QString &, const Mesh &, const MayaMaterial &=MayaMaterial::None) |
| Creates an geometry from a mesh. More...
|
|
| MayaGeometry (const QString &, const MeshColor &, const MayaMaterial &=MayaMaterial::None) |
| Creates an geometry from a mesh. More...
|
|
| MayaGeometry (const QString &, const Mesh2 &, const MayaMaterial &=MayaMaterial::None) |
| Creates an geometry from a mesh. More...
|
|
| MayaGeometry (const QString &, const QVector< Triangle > &, const MayaMaterial &=MayaMaterial::None) |
| Creates a geometry from a set of triangles. More...
|
|
| ~MayaGeometry () |
| Empty.
|
|
| MayaGeometry (const QString &, const Vector *, int, const Vector *, int, const int *, int, const MayaMaterial &=MayaMaterial::None) |
| Create a mesh. More...
|
|
void | AddTriangle (const Vector &, const Vector &, const Vector &) |
| Adds a triangle to the mesh. More...
|
|
void | AddSmoothTriangle (const Vector &, const Vector &, const Vector &, const Vector &, const Vector &, const Vector &) |
| Adds a smooth triangle to the mesh. More...
|
|
void | SetName (const QString &) |
| Set the name. More...
|
|
void | SetMaterial (const MayaMaterial &) |
| Set the MayaMaterial. More...
|
|
void | Merge (const MayaGeometry &) |
| Merges an argument mesh with the existing mesh. More...
|
|
Triangle | GetTriangle (int) const |
| Get the i-th triangle from the mesh as a flat triangle. More...
|
|
QVector< Triangle > | GetTriangles () const |
| Returns the geometry as a set of triangles.
|
|
QString | GetName () const |
| Get the name of the geometry.
|
|
MayaMaterial | GetMaterial () const |
| Get the material of the geometry.
|
|
Box | GetBox () const |
| Compute the bounding box of the object.
|
|
MayaGeometry & | Transform (const FrameScaled &) |
| Transforms the geometry given a transformation operator. More...
|
|
MayaGeometry & | InverseTransform (const FrameScaled &) |
| Inverse transforms the geometry given a transformation operator. More...
|
|
bool | Load_OBJ (const QString &) |
| Loads the geometry from a OBJ file into a single MayaGeometry. More...
|
|
bool | find_MTL_Address (const QString &url, const QString &name, QString &nameR, QString &nameA) |
| Loads the geometrys from an .obj file into a MayaGeometryAll. More...
|
|
bool | Save_OBJ (const QString &) const |
| Save the geometry as a Maya .obj file. More...
|
|
bool | Save_OBJ_forVUE (const QString &url) const |
| Save the geometry as a Maya .obj file. !!!! Y up for VUE. More...
|
|
bool | Save_OBJ (QTextStream &, int=1, int=1, int=1) const |
| Save the geometry as a Maya .obj file (QTextStream). More...
|
|
bool | Save_PLY (const QString &) const |
| Save the geometry as a Maya .obj file. More...
|
|
bool | Save_PBRT (QTextStream &) const |
| Save the geometry as a pbrt file (QTextStream). More...
|
|
MayaStatistics | GetStatistics () const |
| Compute the statistics of the object. More...
|
|
QString | GetText (int=0, bool=false) const |
| Get the text information. More...
|
|
const Vector & | GetVertex (int, int) const |
| Get the k-th vertex of the i-th triangle. More...
|
|
const Vector & | GetVertex (int) const |
| Get the i-th vertec in the array. More...
|
|
const Vector & | GetNormal (int, int) const |
| Get the normal of the k-th vertexof the i-th triangle. More...
|
|
const Vector & | GetNormal (int) const |
| Get the i-th normal in the array. More...
|
|
const Vector & | GetColor (int, int) const |
| Get the color of the k-th vertex of the i-th triangle. More...
|
|
const Vector & | GetColor (int) const |
| Get the i-th color in the array. More...
|
|
const Vector2 & | GetUV (int, int) const |
| Get the i-th UV in the array. More...
|
|
const Vector2 & | GetUV (int) const |
| Get the i-th UV in the array. More...
|
|
void | Clear () |
| Clear every data and set a neutral grey material.
|
|
void | generatePlannarZ_Mapping (Box2) |
| Apply a planar mapping onto the object. More...
|
|
void | generatePlannarMapping (const Vector &dir, const double &step) |
| Apply a planar mapping onto the object using a given normal direction. More...
|
|
|
static MayaGeometrySet | CreateVoxel (const Voxel &, bool=false) |
| Create a set of cubes representing a voxel. More...
|
|
static MayaGeometryAll | CreateVectorField (const VectorField &, const double &=1.0) |
| Create a set of arrows representing a vector field. More...
|
|
static MayaGeometry | extrusion8new (const QString &, QVector< Vector >, double, double, double) |
| Warning Extrusion en pointillés
|
|
static MayaGeometry | extrusion5new (const QString &, Vector, Vector, QVector< QVector< Vector > >, QVector< QVector< Vector > >) |
| Warning Extrusion d'un ensemble de contours autour d'une position et en fonction d'une direction ou chaque contour a une normale.
|
|
static MayaGeometry | extrusion4new (const QString &, Vector, Vector, QVector< QVector< Vector > >) |
| Warning Extrusion d'un ensemble de contours autour d'une position et en fonction d'une direction.
|
|
static MayaGeometry | extrusion3new (const QString &, QVector< Vector >, QVector< QVector< Vector > >, QVector< int >, QVector< double >) |
| Warning Extrusion le long d'une courbe en utilisant différents profils. Le choix des profils est paramétré par des indices et des distances.
|
|
static MayaGeometry | extrusion9new (const QString &, Vector, QVector< Vector >, double, double, double) |
| extrusion circulaire
|
|
The MayaGeometrySet class provides a geometric instance linked to several frames.