[TD]fix centerline rotation

This commit is contained in:
wandererfan
2023-09-23 12:16:17 -04:00
committed by WandererFan
parent a51c54e7f0
commit 084b33d3e4
5 changed files with 161 additions and 50 deletions

View File

@@ -88,6 +88,7 @@ public:
const int mode = 0,
const bool flip = false);
TechDraw::BaseGeomPtr scaledGeometry(const TechDraw::DrawViewPart* partFeat);
TechDraw::BaseGeomPtr scaledAndRotatedGeometry(TechDraw::DrawViewPart* partFeat);
static std::pair<Base::Vector3d, Base::Vector3d> rotatePointsAroundMid(
const Base::Vector3d& p1,
@@ -139,6 +140,8 @@ public:
double getExtend() const;
void setFlip(const bool f);
bool getFlip() const;
void setType(const int type) { m_type = type; };
int getType() const { return m_type; }
Base::Vector3d m_start;
Base::Vector3d m_end;