1
0
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:
btokarev
2021-09-01 16:29:33 +03:00
committed by smoskvin
parent ca65b1ae37
commit 5c38397303
9 changed files with 36 additions and 24 deletions

View File

@@ -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);