have make_shared call default constructor

This commit is contained in:
mclarsen 2019-02-22 08:49:42 -08:00
parent 3fae21fa7d
commit 8a38717c38
4 changed files with 4 additions and 8 deletions

@ -184,8 +184,7 @@ void MapperCylinder::RenderCells(const vtkm::cont::DynamicCellSet& cellset,
if (cylExtractor.GetNumberOfCylinders() > 0)
{
auto cylIntersector =
std::make_shared<raytracing::CylinderIntersector>(raytracing::CylinderIntersector());
auto cylIntersector = std::make_shared<raytracing::CylinderIntersector>();
cylIntersector->SetData(coords, cylExtractor.GetCylIds(), cylExtractor.GetRadii());
this->Internals->Tracer.AddShapeIntersector(cylIntersector);
shapeBounds.Include(cylIntersector->GetShapeBounds());

@ -182,8 +182,7 @@ void MapperPoint::RenderCells(const vtkm::cont::DynamicCellSet& cellset,
if (sphereExtractor.GetNumberOfSpheres() > 0)
{
auto sphereIntersector =
std::make_shared<raytracing::SphereIntersector>(raytracing::SphereIntersector());
auto sphereIntersector = std::make_shared<raytracing::SphereIntersector>();
sphereIntersector->SetData(coords, sphereExtractor.GetPointIds(), sphereExtractor.GetRadii());
this->Internals->Tracer.AddShapeIntersector(sphereIntersector);
shapeBounds.Include(sphereIntersector->GetShapeBounds());

@ -104,8 +104,7 @@ void MapperQuad::RenderCells(const vtkm::cont::DynamicCellSet& cellset,
quadExtractor.ExtractCells(cellset);
if (quadExtractor.GetNumberOfQuads() > 0)
{
auto quadIntersector =
std::make_shared<raytracing::QuadIntersector>(raytracing::QuadIntersector());
auto quadIntersector = std::make_shared<raytracing::QuadIntersector>();
quadIntersector->SetData(coords, quadExtractor.GetQuadIds());
this->Internals->Tracer.AddShapeIntersector(quadIntersector);
shapeBounds.Include(quadIntersector->GetShapeBounds());

@ -108,8 +108,7 @@ void MapperRayTracer::RenderCells(const vtkm::cont::DynamicCellSet& cellset,
triExtractor.ExtractCells(cellset);
if (triExtractor.GetNumberOfTriangles() > 0)
{
auto triIntersector =
std::make_shared<raytracing::TriangleIntersector>(raytracing::TriangleIntersector());
auto triIntersector = std::make_shared<raytracing::TriangleIntersector>();
triIntersector->SetData(coords, triExtractor.GetTriangles());
this->Internals->Tracer.AddShapeIntersector(triIntersector);
shapeBounds.Include(triIntersector->GetShapeBounds());