38 #include <vtkTransform.h>
40 #include <vtkProperty.h>
45 class LVRMeshBufferBridge;
60 m_meshBridge->getMeshActor()->GetProperty()->BackfaceCullingOff();
64 vtkSmartPointer<vtkProperty> prop = vtkProperty::New();
65 prop->BackfaceCullingOff();
66 m_meshBridge->getTexturedActors()->ApplyProperties(prop);
85 return (
m_meshBridge->getNumTriangles() > 0) ? true :
false;
91 vtkSmartPointer<vtkTransform>
transform = vtkSmartPointer<vtkTransform>::New();
104 vtkSmartPointer<vtkTransform> t = vtkSmartPointer<vtkTransform>::New();
105 vtkSmartPointer<vtkMatrix4x4> m = vtkSmartPointer<vtkMatrix4x4>::New();
111 for(
int i = 0; i < 16; i++)
118 m->SetElement(i / 4, j, v);
142 vtkSmartPointer<vtkActorCollection> col =
m_meshBridge->getTexturedActors();
143 col->InitTraversal();
144 for (
int i = 0; i < col->GetNumberOfItems(); i++)
146 col->GetNextActor()->SetUserTransform(
transform);
172 vtkSmartPointer<vtkActor> actor =
m_meshBridge->getMeshActor();
173 renderer->AddActor(actor);
174 actor->GetProperty()->BackfaceCullingOff();
178 vtkSmartPointer<vtkActorCollection> collection =
m_meshBridge->getTexturedActors();
179 collection->InitTraversal();
180 for(vtkIdType i = 0; i < collection->GetNumberOfItems(); i++)
182 renderer->AddActor(collection->GetNextActor());