Skip to content

Commit c849b3d

Browse files
committed
Ported Visualization to occt720
1 parent 3ab567f commit c849b3d

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

src/Visualization/Display3d.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ static Handle(OpenGl_GraphicDriver)& GetGraphicDriver()
3939
// Function : WClass
4040
// Purpose :
4141
//=========================================================
42-
static const Handle(MMgt_TShared)& WClass()
42+
static const Handle(Standard_Transient)& WClass()
4343
{
44-
static Handle(MMgt_TShared) aWindowClass;
44+
static Handle(Standard_Transient) aWindowClass;
4545
#ifdef WNT
4646
if (aWindowClass.IsNull())
4747
{
@@ -70,7 +70,7 @@ Standard_Boolean Display3d::InitOffscreen(int size_x, int size_y)
7070
}
7171
printf("Graphic_Driver created.\n");
7272
// Create V3dViewer and V3d_View
73-
myV3dViewer = new V3d_Viewer(GetGraphicDriver(), (short* const)"viewer");
73+
myV3dViewer = new V3d_Viewer(GetGraphicDriver());
7474
printf("V3d_Viewer created.\n");
7575
// Create AISInteractiveViewer
7676
myAISContext = new AIS_InteractiveContext(myV3dViewer);
@@ -164,7 +164,7 @@ void Display3d::Init(long window_handle)
164164
}
165165
printf("Graphic_Driver created.\n");
166166
// Create V3dViewer and V3d_View
167-
myV3dViewer = new V3d_Viewer(GetGraphicDriver(), (short* const)"viewer");
167+
myV3dViewer = new V3d_Viewer(GetGraphicDriver());
168168
printf("V3d_Viewer created.\n");
169169
// Create AISInteractiveViewer
170170
myAISContext = new AIS_InteractiveContext(myV3dViewer);
@@ -240,7 +240,7 @@ void Display3d::Test()
240240
{
241241
BRepPrimAPI_MakeBox S(100,50,40);
242242
Handle(AIS_Shape) anAISShape = new AIS_Shape(S.Shape());
243-
myAISContext->Display(anAISShape);
243+
myAISContext->Display(anAISShape, Standard_False);
244244
myV3dView->ZFitAll();
245245
myV3dView->FitAll();
246246
}

src/Visualization/Tesselator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//---------------------------------------------------------------------------
2525
#include <TopExp_Explorer.hxx>
2626
#include <Bnd_Box.hxx>
27-
#include <StdPrs_ToolShadedShape.hxx>
27+
#include <StdPrs_ToolTriangulatedShape.hxx>
2828
#include <BRepMesh_IncrementalMesh.hxx>
2929
#include <TopoDS.hxx>
3030
#include <Poly_Connect.hxx>
@@ -146,7 +146,7 @@ void Tesselator::SetDeviation(Standard_Real aDeviation)
146146
void Tesselator::Tesselate(bool compute_edges, float mesh_quality, bool parallel)
147147
{
148148
TopExp_Explorer ExpFace;
149-
StdPrs_ToolShadedShape SST;
149+
StdPrs_ToolTriangulatedShape SST;
150150

151151
gp_Dir d;
152152
gp_Pnt p;
@@ -239,7 +239,7 @@ void Tesselator::TesselateWithUVCoords(bool compute_edges, float mesh_quality, b
239239
Standard_Real dVmax;
240240

241241
TopExp_Explorer ExpFace;
242-
StdPrs_ToolShadedShape SST;
242+
StdPrs_ToolTriangulatedShape SST;
243243

244244
gp_Dir d;
245245
gp_Pnt p;

src/Visualization/Visualization.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#include <V3d_Viewer.hxx>
3636
#include <V3d_View.hxx>
3737
#include <AIS_Shape.hxx>
38-
#include <Handle_Graphic3d_GraphicDriver.hxx>
3938
#include <Graphic3d_Camera.hxx>
4039
#include <Graphic3d_RenderingParams.hxx>
4140
#include <Graphic3d_RenderingMode.hxx>

0 commit comments

Comments
 (0)