MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #23501 All Revisions ] Back to Issue ]
Summary 0023501: Redundant triangulation cleaning/generation (1) in AIS_Shape.cxx
Revision 2012-11-06 16:08 by Pawel
Steps To Reproduce Draw reproducer:

box b 10 20 30
vinit
vsetshading b 0.001 #!!! Take the standard coefficient value for the drawer so that no change takes effect !!!
vdisplay b
vsetdispmode b 1 #Triangulation cleared

=====================
or directly in C++:

TopoDS_Shape box = BRepPrimAPI_MakeBox(gp_Pnt(0, 0, 0), gp_Pnt(10, 30, 20));
Handle (AIS_InteractiveObject) AISshape = new AIS_Shape(box);
myAISContext->Display(AISshape, Standard_False);
myAISContext->SetDeviationCoefficient(AISshape, myAISContext->DeviationCoefficient(), Standard_False);
myAISContext->SetDisplayMode(AISshape, AIS_Shaded, Standard_False);
myAISContext->UpdateCurrentViewer();
Revision 2012-10-30 18:01 by Pawel
Steps To Reproduce Draw reproducer:

box b 10 20 30
vinit
vsetshading b 0.001 #!!! Take the standard coefficient value for the drawer so that no change takes effect !!!
vdisplay b
vsetdispmode b 1 #Triangulation cleared

=====================
or directly in C++:

TopoDS_Shape box = BRepPrimAPI_MakeBox(gp_Pnt(0, 0, 0), gp_Pnt(10, 30, 20));
Handle (AIS_InteractiveObject) AISshape = new AIS_Shape(box);
myAISContext->Display(AISshape, Standard_False);
myAISContext->SetDeviationCoefficient(AISshape, myAISContext->DeviationCoefficient(), Standard_False);
myAISContext->SetDisplayMode(gE->GetAISShape(), AIS_Shaded, Standard_False);
myAISContext->UpdateCurrentViewer();


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker