MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / updateImpl

Method updateImpl

apps/modeler/src/surface_actor_item.cpp:93–102  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

91
92//////////////////////////////////////////////////////////////////////////////////////////////
93void
94pcl::modeler::SurfaceActorItem::updateImpl()
95{
96 vtkSmartPointer<vtkDataArray> scalars;
97 cloud_mesh_->getColorScalarsFromField(scalars, "random");
98 poly_data_->GetPointData()->SetScalars(scalars);
99 double minmax[2];
100 scalars->GetRange(minmax);
101 actor_->GetMapper()->SetScalarRange(minmax);
102}
103
104//////////////////////////////////////////////////////////////////////////////////////////////
105void

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected