mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
have make_shared call default constructor
This commit is contained in:
parent
3fae21fa7d
commit
8a38717c38
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user