refactor: improve Geant4 solid synchronization and update documentation for VTK integration

This commit is contained in:
AndreaRigoni
2026-04-16 06:51:16 +00:00
parent 24ec326715
commit 865282aefc
6 changed files with 68 additions and 25 deletions

View File

@@ -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");