Commit 1f51ebf8 authored by logari81's avatar logari81 Committed by wmayer
Browse files

Sketcher: Enable positioning of sketches with the manual alignment tool

parent 85585cf4
......@@ -186,6 +186,16 @@ void Part2DObject::positionBySupport(void)
void Part2DObject::transformPlacement(const Base::Placement &transform)
Part::Feature *part = static_cast<Part::Feature*>(Support.getValue());
if (part && part->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) {
} else
int Part2DObject::getAxisCount(void) const
return 0;
......@@ -68,6 +68,10 @@ public:
* postion of the 2D shape on the supporting Face
void positionBySupport(void);
/** applies a transform on the Placement of the Sketch or its
* support if it has one
virtual void transformPlacement(const Base::Placement &transform);
/// returns the number of construction lines (to be used as axes)
virtual int getAxisCount(void) const;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment