42 #include "PluginAlignMeshes.hh"
50 PluginAlignMeshes::PluginAlignMeshes() :
57 PluginAlignMeshes::~PluginAlignMeshes() {
58 if ( OpenFlipper::Options::gui()) {
64 void PluginAlignMeshes::initializePlugin() {
66 if ( OpenFlipper::Options::gui()) {
69 toolIcon_ =
new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"alignMeshes.png");
70 emit addToolbox(
"Align Meshes", toolBox_, toolIcon_);
72 connect(toolBox_->alignMeshesButton, SIGNAL(pressed()), SLOT(alignMeshes()));
76 void PluginAlignMeshes::alignMeshes() {
86 align::moveToCOG( mesh );
87 align::rotate( mesh );
89 emit log(
LOGINFO,
"Moved Triangle mesh alignMeshes");
95 align::moveToCOG( mesh );
96 align::rotate( mesh );
98 emit log(
LOGINFO,
"Moved Poly mesh alignMeshes");
106 #if QT_VERSION < 0x050000
const UpdateType UPDATE_GEOMETRY(UpdateTypeSet(1)<< 2)
Geometry updated.
PolyMesh * polyMesh(BaseObjectData *_object)
Get a poly mesh from an object.
const QStringList TARGET_OBJECTS("target")
Iterable object range.
TriMesh * triMesh(BaseObjectData *_object)
Get a triangle mesh from an object.
DLLEXPORT ObjectIterator objectsEnd()
Return Iterator to Object End.
#define DATA_TRIANGLE_MESH