Furkan Tuzemen
Looking around for some CAD
I am trying to render a OpenCascade shape using VTK and while setting the Input Connection to Mapper in VTK I am getting error.
vtkNew<IVtkTools_ShapeDataSource> occDataSource;
occDataSource->SetShape(new IVtkOCC_Shape(shape));
vtkNew<vtkPolyDataMapper> mapper;
mapper->SetInputConnection(occDataSource->GetOutputPort());
Exception thrown at 0x00007FF8788B2DFA (msvcp140d.dll) in OcctVtkTutorialYoutube.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
However, this error is only happening in debug mode and not in Release mode.
My Occt version: OpenCASCADE-7.7.0-vc14-64
Vtk Version: 9.2
vtkNew<IVtkTools_ShapeDataSource> occDataSource;
occDataSource->SetShape(new IVtkOCC_Shape(shape));
vtkNew<vtkPolyDataMapper> mapper;
mapper->SetInputConnection(occDataSource->GetOutputPort());
Exception thrown at 0x00007FF8788B2DFA (msvcp140d.dll) in OcctVtkTutorialYoutube.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
However, this error is only happening in debug mode and not in Release mode.
My Occt version: OpenCASCADE-7.7.0-vc14-64
Vtk Version: 9.2