Fem: Expose Constraint view provider symbol node to Python

This commit is contained in:
marioalexis
2024-02-13 20:17:24 -03:00
committed by Chris Hennes
parent b23c5f6721
commit c1efba0704
5 changed files with 114 additions and 0 deletions

View File

@@ -47,6 +47,7 @@
#include "TaskFemConstraint.h"
#include "ViewProviderFemConstraint.h"
#include "ViewProviderFemConstraintPy.h"
using namespace FemGui;
@@ -215,6 +216,15 @@ void ViewProviderFemConstraint::unsetEdit(int ModNum)
}
}
}
PyObject* ViewProviderFemConstraint::getPyObject()
{
if (!pyViewObject) {
pyViewObject = new ViewProviderFemConstraintPy(this);
}
pyViewObject->IncRef();
return pyViewObject;
}
/*
// Create a local coordinate system with the z-axis given in dir
void getLocalCoordinateSystem(const SbVec3f& z, SbVec3f& y, SbVec3f& x)