mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0032550: Documentation - Proofreading for "Tutorials and Samples -> Tutorial"
New images added for better representation of solid model; Minor fixes for misprints and old classes; Proofreading done.
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <AIS_Shape.hxx>
|
||||
#include <V3d_View.hxx>
|
||||
#include <V3d_Viewer.hxx>
|
||||
|
||||
TopoDS_Shape
|
||||
MakeBottle(const Standard_Real myWidth , const Standard_Real myHeight , const Standard_Real myThickness);
|
||||
@@ -23,6 +25,17 @@ DocumentTut::~DocumentTut()
|
||||
|
||||
void DocumentTut::onMakeBottle()
|
||||
{
|
||||
Handle(AIS_InteractiveContext) aCtx = getContext();
|
||||
for (V3d_ListOfView::Iterator aViewIter (aCtx->CurrentViewer()->ActiveViews()); aViewIter.More(); aViewIter.Next())
|
||||
{
|
||||
const Handle(V3d_View)& aView = aViewIter.Value();
|
||||
Graphic3d_RenderingParams& aParams = aView->ChangeRenderingParams();
|
||||
aParams.RenderResolutionScale = 2.0f;
|
||||
}
|
||||
|
||||
const Handle(Prs3d_Drawer)& aDefDrawer = aCtx->DefaultDrawer();
|
||||
aDefDrawer->SetIsoOnTriangulation (true);
|
||||
|
||||
QApplication::setOverrideCursor( Qt::WaitCursor );
|
||||
TopoDS_Shape aBottle=MakeBottle(50,70,30);
|
||||
Handle(AIS_Shape) AISBottle=new AIS_Shape(aBottle);
|
||||
|
Reference in New Issue
Block a user