26 lines
733 B
C++
26 lines
733 B
C++
#pragma once
|
|
#include <App/V8/Tree/Instance.hpp>
|
|
#include <App/V8/Tree/ModelInstance.hpp>
|
|
#include <App/V8/DataModel/PartInstance.hpp>
|
|
#include <App/V8/World/Weld.hpp>
|
|
|
|
namespace RNR
|
|
{
|
|
class JointsService : public Instance
|
|
{
|
|
public:
|
|
JointsService();
|
|
virtual std::string getClassName() { return "JointsService"; }
|
|
Snap* snap(PartInstance* a, PartInstance* b);
|
|
|
|
void makeJoints(Instance* w, PartInstance* p);
|
|
void makeJoints(PartInstance* p);
|
|
void breakJoints(PartInstance* b);
|
|
void makeModelJoints(ModelInstance* m);
|
|
void breakModelJoints(ModelInstance* m);
|
|
|
|
void fixWelds();
|
|
|
|
bool isWelded(PartInstance* a, PartInstance* b);
|
|
};
|
|
} |