Commit 5ace52bc authored by Jan Möbius's avatar Jan Möbius

More docs

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15720 383ad7c9-94d9-4d36-a494-682f7c89f535
parent dad10229
...@@ -61,6 +61,8 @@ ...@@ -61,6 +61,8 @@
* distance. No new vertices will be introduced on either edge, so they are just * distance. No new vertices will be introduced on either edge, so they are just
* snapped to existing ones. * snapped to existing ones.
* *
* If vertices in the interior are selected, they will also get snapped to the
* opposite boundary, if in range.
*/ */
template<class MeshT> template<class MeshT>
class BoundarySnappingT { class BoundarySnappingT {
......
...@@ -647,7 +647,7 @@ There is no automatic algorithm to fix these foldovers here. So you will have to ...@@ -647,7 +647,7 @@ There is no automatic algorithm to fix these foldovers here. So you will have to
<item> <item>
<widget class="QPushButton" name="snapBoundaryButton"> <widget class="QPushButton" name="snapBoundaryButton">
<property name="toolTip"> <property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Snaps selected boundary vertices together if they are closer than the given distance. No new vertices will be introduced on either edge, so they are just snapped to existing ones.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Snaps selected boundary vertices if they are closer than the given distance. No new vertices will be introduced on either boundary side, so they are just snapped to existing ones.&lt;/p&gt;&lt;p&gt;If vertices in the interior are selected, they will also get snapped to the opposite boundary, if in range.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="text"> <property name="text">
<string>Snap Boundary</string> <string>Snap Boundary</string>
......
...@@ -338,11 +338,6 @@ void MeshRepairPlugin::pluginsInitialized() { ...@@ -338,11 +338,6 @@ void MeshRepairPlugin::pluginsInitialized() {
QString(tr("objectId,angle,remove")).split(","), QString(tr("objectId,angle,remove")).split(","),
QString(tr("ID of an object;Minimum angle threshold")).split(";")); QString(tr("ID of an object;Minimum angle threshold")).split(";"));
emit setSlotDescription("snapBoundary(int,double)",tr("Snaps selected and boundary vertices if the distance is less than the given max. distance."),
QString(tr("objectId,epsilon")).split(","),
QString(tr("ID of an object;Max Distance")).split(";"));
...@@ -371,6 +366,10 @@ void MeshRepairPlugin::pluginsInitialized() { ...@@ -371,6 +366,10 @@ void MeshRepairPlugin::pluginsInitialized() {
// General Mesh fixing // General Mesh fixing
// =============================== // ===============================
emit setSlotDescription("snapBoundary(int,double)",tr("Snaps selected boundary vertices if the distance is less than the given maximal distance."),
QString(tr("objectId,epsilon")).split(","),
QString(tr("ID of an object;Max Distance")).split(";"));
emit setSlotDescription("(int)",tr("Fixes non manifold vertices."), emit setSlotDescription("(int)",tr("Fixes non manifold vertices."),
QString(tr("objectId")).split(","), QString(tr("objectId")).split(","),
QString(tr("ID of an object;Non manifold vertices are splitted.")).split(";")); QString(tr("ID of an object;Non manifold vertices are splitted.")).split(";"));
......
...@@ -207,14 +207,6 @@ public slots: ...@@ -207,14 +207,6 @@ public slots:
void detectFlatValence3Vertices(int _objectId, double _angle); void detectFlatValence3Vertices(int _objectId, double _angle);
// ================================================== // ==================================================
// Normal recomputations // Normal recomputations
// ================================================== // ==================================================
...@@ -243,12 +235,19 @@ public slots: ...@@ -243,12 +235,19 @@ public slots:
*/ */
void updateNormals(int _objectId); void updateNormals(int _objectId);
// ================================================== // ==================================================
// General // General
// ================================================== // ==================================================
/** \brief Snaps selected vertices at boundaries
*
* Snaps selected boundary vertices together if they are closer than the given
* distance. No new vertices will be introduced on either edge, so they are just
* snapped to existing ones.
*
* @param _objectId Id of the object
* @param _eps Distance of vertices to snap
*/
void snapBoundary(int _objectId, double _eps); void snapBoundary(int _objectId, double _eps);
/** \brief remove non-manifold vertices by duplicating them /** \brief remove non-manifold vertices by duplicating them
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment