refactor: improve Geant4 solid synchronization and update documentation for VTK integration
This commit is contained in:
@@ -25,6 +25,32 @@ int main() {
|
||||
TEST1(solid.GetMaterial()->GetName() == "G4_AIR");
|
||||
}
|
||||
|
||||
// Test BoxSolid //
|
||||
{
|
||||
Geant::BoxSolid boxsolid("test_boxsolid");
|
||||
boxsolid.SetNistMaterial("G4_AIR");
|
||||
TEST1(boxsolid.GetLogical() != nullptr);
|
||||
// TEST1(boxsolid.GetSolid() != nullptr);
|
||||
}
|
||||
|
||||
// Test BoxSolid with a container box //
|
||||
{
|
||||
ContainerBox box;
|
||||
|
||||
// box.SetPosition(Vector3f(1,1,1));
|
||||
// box.SetRotation(Rotation(Vector3f(0,1,0), 45_deg));
|
||||
|
||||
Geant::BoxSolid boxsolid("test_boxsolid", &box);
|
||||
boxsolid.SetNistMaterial("G4_AIR");
|
||||
TEST1(boxsolid.GetLogical() != nullptr);
|
||||
// TEST1(boxsolid.GetSolid() != nullptr);
|
||||
// TEST1(boxsolid.GetSolid()->GetXHalfLength() == 0.5);
|
||||
// TEST1(boxsolid.GetSolid()->GetYHalfLength() == 0.5);
|
||||
// TEST1(boxsolid.GetSolid()->GetZHalfLength() == 0.5);
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Test TessellatedSolid with a simple mesh //
|
||||
{
|
||||
Geant::TessellatedSolid tsolid("test_tessellated");
|
||||
|
||||
Reference in New Issue
Block a user