Skip to content

Libs/Analyze/MeshWorker.h

Worker class for parallel mesh reconstruction. More...

Namespaces

Name
shapeworks
User usage reporting (telemetry)

Classes

Name
class shapeworks::MeshWorker

Functions

Name
Q_DECLARE_METATYPE(vtkSmartPointer< vtkPolyData > )

Detailed Description

Worker class for parallel mesh reconstruction.

The MeshWorker implements each thread's mesh construction management

Functions Documentation

function Q_DECLARE_METATYPE

cpp Q_DECLARE_METATYPE( vtkSmartPointer< vtkPolyData > )

Source code

```cpp

pragma once

include

include

include

include

include "MeshWorkQueue.h"

include "MeshCache.h"

include "MeshGenerator.h"

Q_DECLARE_METATYPE(vtkSmartPointer);

namespace shapeworks {

class MeshWorker : public QObject, public QRunnable { Q_OBJECT

public: MeshWorker(MeshWorkQueue* queue, std::shared_ptr generator); ~MeshWorker();

void run();

Q_SIGNALS: void result_ready(const MeshWorkItem& item, MeshHandle mesh); void finished();

private: std::shared_ptr mesh_generator_; MeshWorkQueue* queue_; }; } ```


Updated on 2026-03-31 at 16:02:10 +0000