73 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Remesher")
79 void updatedObject(
int _id,
const UpdateType& _type);
81 void setSlotDescription(QString _slotName, QString _slotDescription,
82 QStringList _parameters, QStringList _descriptions);
85 void log(
Logtype _type, QString _message );
86 void log( QString _message );
89 void pluginExists( QString _pluginName ,
bool& _exists ) ;
90 void functionExists( QString _pluginName , QString _functionName ,
bool& _exists );
93 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
96 void startJob( QString _jobId, QString _description,
int _min,
int _max,
bool _blocking =
false);
97 void setJobState(QString _jobId,
int _value);
98 void setJobName(QString _jobId, QString _name);
99 void finishJob(QString _jobId);
100 void setJobDescription(QString _jobId, QString _description);
106 void scriptInfo(QString _functionName);
120 QString
name() {
return (QString(
"Remesher")); };
121 QString
description( ) {
return (QString(
"Remeshing plugin with isotropic and adaptive remesher.")); };
131 enum RemeshingOperation { REMESH_UNIFORM, REMESH_ADAPTIVE };
133 RemeshingOperation operation_;
139 void adaptiveRemeshingButtonClicked();
141 void adaptiveRemeshing();
145 void uniformRemeshingButtonClicked();
147 void uniformRemeshing();
151 void threadFinished(QString _jobId);
158 void slotAdaptiveRemeshing(
int _objectId,
160 double _min_edge_length,
161 double _max_edge_length,
163 bool _use_projection =
true,
164 bool _vertex_selection =
true);
166 void slotUniformRemeshing(
int _objectId,
169 unsigned int _area_iters,
170 bool _use_projection =
true,
171 bool _vertex_selection =
true);
177 void adaptiveRemeshing(
int _objectId,
179 double _min_edge_length,
180 double _max_edge_length,
182 bool _use_projection =
true);
184 void adaptiveRemeshingFaceSelection(
int _objectId,
186 double _min_edge_length,
187 double _max_edge_length,
189 bool _use_projection =
true);
191 void uniformRemeshing(
int _objectId,
194 unsigned int _area_iters,
195 bool _use_projection =
true);
197 void uniformRemeshingFaceSelection(
int _objectId,
200 unsigned int _area_iters,
201 bool _use_projection =
true);
204 QString version() {
return QString(
"1.0"); };