aFeatures.push_back(createPoint(aDoc));
aFeatures.push_back(createPlane(aDoc, 1., 0., 0.));
- aFeatures.push_back(createPlane(aDoc, 0., 1., 0.));
+ aFeatures.push_back(createPlane(aDoc, 0., -1., 0.));
aFeatures.push_back(createPlane(aDoc, 0., 0., 1.));
// for PartSet it is done outside of the transaction, so explicitly flush this creation
Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED));
anAngle = aPositiveNormal ? theAngle : 360 - theAngle;
break;
case SketcherPrs_Tools::ANGLE_COMPLEMENTARY:
- anAngle = 180 - theAngle;
+ anAngle = fabs(180 - theAngle);
break;
case SketcherPrs_Tools::ANGLE_BACKWARD:
anAngle = aPositiveNormal ? 360 - theAngle : theAngle;
// Angle value is in degrees
AttributeDoublePtr aVal = aData->real(SketchPlugin_ConstraintAngle::ANGLE_VALUE_ID());
- SetCustomValue(aVal->value() * PI / 180.0);
+ SetCustomValue(aVal->value());
myAspect->SetExtensionSize(myAspect->ArrowAspect()->Length());
myAspect->SetArrowTailSize(myAspect->ArrowAspect()->Length());
- AttributeDoublePtr aValue = myConstraint->data()->real(SketchPlugin_ConstraintAngle::ANGLE_VALUE_ID());
- SketcherPrs_Tools::setDisplaySpecialSymbol(this, aValue->usedParameters().size() > 0);
-
- myStyleListener->updateDimensions(this, aValue);
+ SketcherPrs_Tools::setDisplaySpecialSymbol(this, aVal->usedParameters().size() > 0);
+ myStyleListener->updateDimensions(this, aVal);
AIS_AngleDimension::Compute(thePresentationManager, thePresentation, theMode);
}