Merge pull request #13906 from Rexbas/align-camera

Align camera to faces and edges
This commit is contained in:
Chris Hennes
2024-05-20 11:28:24 -05:00
committed by GitHub
11 changed files with 278 additions and 1 deletions

View File

@@ -209,6 +209,13 @@ void GeoFeature::setMaterialAppearance(const App::Material& material)
Q_UNUSED(material)
}
bool GeoFeature::getCameraAlignmentDirection(Base::Vector3d& direction, const char* subname) const
{
Q_UNUSED(subname)
Q_UNUSED(direction)
return false;
}
#ifdef FC_USE_TNP_FIX
bool GeoFeature::hasMissingElement(const char* subname)
{

View File

@@ -141,6 +141,15 @@ public:
* appearance from an App::Material object.
*/
virtual void setMaterialAppearance(const App::Material& material);
/**
* @brief Virtual function to get the camera alignment direction
*
* Finds a direction to align the camera with.
*
* @return bool whether or not a direction is found.
*/
virtual bool getCameraAlignmentDirection(Base::Vector3d& direction, const char* subname = nullptr) const;
#ifdef FC_USE_TNP_FIX
/** Search sub element using internal cached geometry
*