PartDesign: Fix App::Line as ref for polar pattern

This commit is contained in:
PaddleStroke
2025-03-06 17:31:38 +01:00
committed by GitHub
parent 4448d6c95d
commit 1b154a6182

View File

@@ -129,6 +129,8 @@ const std::list<gp_Trsf> PolarPattern::getTransformations(const std::vector<App:
axdir = gp_Dir(dir.x, dir.y, dir.z);
} else if (refObject->isDerivedFrom<App::Line>()) {
App::Line* line = static_cast<App::Line*>(refObject);
Base::Vector3d base = line->getBasePoint();
axbase = gp_Pnt(base.x, base.y, base.z);
Base::Vector3d d = line->getDirection();
axdir = gp_Dir(d.x, d.y, d.z);
} else if (refObject->isDerivedFrom<Part::Feature>()) {