Skip to content

VRML Visualization  #7

@yacubus-bishcus

Description

@yacubus-bishcus

This block of code in grasshopper does not work. The trajectory color is blue regardless of particle type.

#ifdef G4VIS_USE
// visualization manager
G4VisManager* visManager = new VisManager;
visManager->Initialize();

G4TrajectoryDrawByParticleID* model = new G4TrajectoryDrawByParticleID;

model->SetDefault("cyan");
model->Set("neutron","green");
model->Set("gamma", "red");
model->Set("e+", "magenta");
model->Set("e-", "blue");

visManager->RegisterModel(model);
visManager->SelectTrajectoryModel(model->Name());
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions