83 auto geo_cshape =
dynamic_cast<TGeoCompositeShape *
>(node->GetDaughter(0)->GetVolume()->GetShape());
86 throw std::runtime_error(
"The first vshape is not a CSG shape.");
88 bool poly_first =
false;
107 eve_pshape->
Draw(
"ogl");
externTGeoManager * gGeoManager
static void SetAutoEnforceTriangles(Bool_t f)
void BuildFromComposite(TGeoCompositeShape *cshp, Int_t n_seg=60)
Produce all polygons from composite shape.
void SetNSegments(Int_t s)
Set number of segments.
void SaveExtract(const char *file, const char *name)
Save the shape tree as REveGeoShapeExtract.
TGeoShape * GetShape() const
void SetShape(TGeoShape *s)
Set TGeoShape shown by this object.
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
void SetMainColor(Color_t color) override
Set main color.
Composite shapes are Boolean combinations of two or more shape components.
The manager class for any TGeo geometry.
Base class describing materials.
virtual void RegisterYourself()
Register the matrix in the current manager, which will become the owner.
Media are used to store properties related to tracking and which are useful only when using geometry ...
void Draw(Option_t *option="") override
Draw this shape.
Class describing translations.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual TGeoNode * AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=nullptr, Option_t *option="")
Add a TGeoNode to the list of nodes.
void SetLineColor(Color_t lcolor) override
Set the line color.
virtual void SetName(const char *name)
Set the name of the TNamed.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Namespace for ROOT features in testing.