refactor: remove Math library build configuration and add support for BoxSolid in vtkObjectsContext
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
#include "Vtk/Math/vtkCylinder.h"
|
||||
#include "Vtk/Math/vtkAssembly.h"
|
||||
#include "Vtk/Math/vtkVoxImage.h"
|
||||
|
||||
#include "HEP/Detectors/vtkDetectorChamber.h"
|
||||
#include "HEP/Geant/vtkBoxSolid.h"
|
||||
|
||||
#include <vtkAssembly.h>
|
||||
#include <vtkPropCollection.h>
|
||||
@@ -127,6 +129,9 @@ Puppet* vtkObjectsContext::CreatePuppet(uLib::Object* obj) {
|
||||
} else if (auto* assembly = dynamic_cast<uLib::Assembly*>(obj)) {
|
||||
return new Assembly(assembly);
|
||||
}
|
||||
else if (auto* box = dynamic_cast<uLib::Geant::BoxSolid*>(obj)) {
|
||||
return new vtkBoxSolid(box);
|
||||
}
|
||||
|
||||
// Fallback if we don't know the exact class but it might be a context itself
|
||||
if (auto subCtx = dynamic_cast<uLib::ObjectsContext*>(obj)) {
|
||||
|
||||
Reference in New Issue
Block a user