44#ifndef MESHREPAIRPLUGIN_HH
45#define MESHREPAIRPLUGIN_HH
61#include "MeshRepairToolbar.hh"
74 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-MeshRepair")
81 void updatedObject(
int _identifier,
const UpdateType& _type);
82 void setSlotDescription(QString _slotName, QString _slotDescription,
83 QStringList _parameters, QStringList _descriptions);
86 void log(
Logtype _type, QString _message);
87 void log(QString _message);
90 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
96 void pluginExists( QString _pluginName ,
bool& _exists ) ;
97 void functionExists( QString _pluginName , QString _functionName ,
bool& _exists );
100 void scriptInfo( QString _functionName );
104 void initializePlugin();
114 return (QString(
"MeshRepair"));
117 return (QString(
"Functionality to repair meshes"));
314 void fixMesh(
int _objectId,
double _epsilon);
336 template<
typename MeshT>
341 QString version() {
return QString(
"1.3"); };
344#if defined(INCLUDE_TEMPLATES) && !defined(MESHREPAIRPLUGINT_CC)
345#define MESHREPAIRPLUGIN_TEMPLATES
346#include "MeshRepairPluginT_impl.hh"
Logtype
Log types for Message Window.
Interface class for backup handling.
Interface class from which all plugins have to be created.
Interface for all Plugins which do logging to the logging window of the framework.
void removeSelectedEdges(int _objectId)
Removes all selected edges.
void fixMesh(int _objectId, double _epsilon)
Fix a mesh.
void slotDetectFoldover()
Button slot.
void updateNormals(int _objectId)
Recomputes the face and vertex normals of an object.
void slotUpdateFaceNormals()
Button slot.
QString description()
Return a description of what the plugin is doing.
void removeSelectedVal3Vertices(int _objectId)
Remove all selected valence 3 vertices.
void slotFlipOrientation()
Button slot.
void slotSnapBoundary()
Button slot.
void updateVertexNormals(int _objectId)
Recomputes the vertex normals of an object.
void slotFixNonManifoldVertices()
Button slot.
void updateHalfedgeNormals(int _objectId)
Recomputes the halfedge normals of an object.
void slotRemoveSelectedVal3Vertices()
Button slot.
void detectSkinnyTriangleByAngle(int _objectId, double _angle, bool _remove)
Detect/Remove edges where neighboring faces form angle > _angle degrees.
void slotFixMesh()
Button slot.
void detectFlatValence3Vertices(int _objectId, double _angle)
Detect valence 3 vertices with faces that lie in the plane of their adjacent triangles.
void fixNonManifoldVertices(int _objectId)
remove non-manifold vertices by duplicating them
void slotRemoveSelectedEdges()
Button slot.
void slotDetectEdgesLonger()
Button Slot.
void updateFaceNormals(int _objectId)
Recomputes the face normals of an object.
void slotDetectFlatValence3Vertices()
Button slot.
void flipOrientation(int _objectId)
Flips the normals of all selected faces by changing the vertex order.
void slotUpdateVertexNormals()
Button slot.
MeshRepairToolbarWidget * tool_
Widget for Toolbox.
void selectEdgesLongerThan(int _objectId, double _length)
Selects all edges of an object which are larger than the given length.
void slotDetectTriangleAspect()
Button slot.
void slotUpdateNormals()
Button slot.
void slotRemoveSkinnyTriangleByAngle()
Button slot.
void detectFoldover(int _objectId, float _angle)
Detect folded-over configurations by the dihedral angle.
void selectEdgesShorterThan(int _objectId, double _length)
Selects all edges of an object which are shorter than the given length.
void selectionEdgeLength(int _objectId, double _length, bool _larger)
select edges based on length
void snapBoundary(int _objectId, double _eps)
Snaps selected vertices at boundaries.
void pluginsInitialized()
Initialization of the plugin when it is loaded by the core.
void detectTriangleAspect(int _objectId, float _aspect)
Detect triangles with aspect ratio greater than _aspect and select them.
void slotUpdateHalfedgeNormals()
Button slot.
QString name()
Return a name for the plugin.
void slotDetectEdgesShorter()
Button Slot.
void slotDetectSkinnyTriangleByAngle()
Button slot.
Interface class for exporting functions to python.
Interface to call functions across plugins.
Interface for all Plugins which provide scriptable Functions.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.