SessionPtr aMgr = ModelAPI_Session::get();
aMgr->startOperation("Change Sketch plane");
myOpenTransaction = true;
+ myWorkshop->viewer()->update();
}
}
const Handle(Prs3d_Presentation)& thePresentation,
const Standard_Integer theMode)
{
+ if (!plane().get())
+ return;
gp_Pnt aFirstPoint, aSecondPoint, aCenterPoint;
bool aReadyToDisplay = readyToDisplay(myConstraint, plane(),
aFirstPoint, aSecondPoint, aCenterPoint);
const Handle(Prs3d_Presentation)& thePresentation,
const Standard_Integer theMode)
{
+ if (!plane().get())
+ return;
gp_Pnt aPnt1, aPnt2;
bool aReadyToDisplay = readyToDisplay(myConstraint, plane(), aPnt1, aPnt2);
if (aReadyToDisplay) {
const Handle(Prs3d_Presentation)& thePresentation,
const Standard_Integer theMode)
{
+ if (!plane().get())
+ return;
gp_Circ aCircle;
gp_Pnt anAnchorPoint;
bool aReadyToDisplay = readyToDisplay(myConstraint, plane(), aCircle, anAnchorPoint);
const Handle(Prs3d_Presentation)& thePresentation,
const Standard_Integer theMode)
{
+ if (!plane().get())
+ return;
// Create an icon
prepareAspect();