mirror of
https://github.com/OpenCMT/uLib.git
synced 2025-12-06 07:21:31 +01:00
fixed raytracer test (not working yet .. )
This commit is contained in:
@@ -103,10 +103,10 @@ int main()
|
|||||||
|
|
||||||
// muon scatter //
|
// muon scatter //
|
||||||
MuonScatter muon;
|
MuonScatter muon;
|
||||||
muon.LineIn().origin << -6, 12, -6, 1;
|
muon.LineIn().origin() << -6, 12, -6, 1;
|
||||||
muon.LineIn().direction << 1 , -1 , 1 , 0;
|
muon.LineIn().direction() << 1 , -1 , 1 , 0;
|
||||||
muon.LineOut().origin << 6 , -4 , 6 , 1;
|
muon.LineOut().origin() << 6 , -4 , 6 , 1;
|
||||||
muon.LineOut().direction << 1 , -1 , 1 , 0;
|
muon.LineOut().direction() << 1 , -1 , 1 , 0;
|
||||||
|
|
||||||
Vtk::vtkMuonScatter v_muon(muon);
|
Vtk::vtkMuonScatter v_muon(muon);
|
||||||
|
|
||||||
@@ -122,7 +122,7 @@ int main()
|
|||||||
|
|
||||||
// voxraytracer //
|
// voxraytracer //
|
||||||
VoxRaytracer rt(grid);
|
VoxRaytracer rt(grid);
|
||||||
HPoint3f pt;
|
Vector4f pt;
|
||||||
rt.GetEntryPoint(muon.LineIn(),pt);
|
rt.GetEntryPoint(muon.LineIn(),pt);
|
||||||
std::cout << pt.transpose() << "\n";
|
std::cout << pt.transpose() << "\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user