42 #include "PluginAlignMeshes.hh" 50 PluginAlignMeshes::PluginAlignMeshes() :
57 PluginAlignMeshes::~PluginAlignMeshes() {
60 void PluginAlignMeshes::initializePlugin() {
62 if ( OpenFlipper::Options::gui()) {
65 toolIcon_ =
new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"alignMeshes.png");
66 emit addToolbox(
"Align Meshes", toolBox_, toolIcon_);
68 connect(toolBox_->alignMeshesButton, SIGNAL(pressed()), SLOT(alignMeshes()));
72 void PluginAlignMeshes::alignMeshes() {
82 align::moveToCOG( mesh );
83 align::rotate( mesh );
85 emit log(
LOGINFO,
"Moved Triangle mesh alignMeshes");
91 align::moveToCOG( mesh );
92 align::rotate( mesh );
94 emit log(
LOGINFO,
"Moved Poly mesh alignMeshes");
const QStringList TARGET_OBJECTS("target")
Iterable object range.
TriMesh * triMesh(BaseObjectData *_object)
Get a triangle mesh from an object.
const UpdateType UPDATE_GEOMETRY(UpdateTypeSet(1)<< 2)
Geometry updated.
DLLEXPORT ObjectIterator objectsEnd()
Return Iterator to Object End.
PolyMesh * polyMesh(BaseObjectData *_object)
Get a poly mesh from an object.
#define DATA_TRIANGLE_MESH